Jump to content

tvillalbac

Members
  • Posts

    16
  • Joined

  • Last visited

Profile Information

  • Location
    Vila-real
  • Activity
    Freelancer

Recent Profile Visitors

1,886,454 profile views

tvillalbac's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. I find the simple solution!! I found in code it shows each modal window with its reference to id_ product but all modal windows has the same target class (.quickview) and then when I click each quickview link it shows just the first modal window, in this case product 1. To solve this I created the modal target class .quickviewmodal-{$product.id_product} and put it on quickview link in product.tpl and on modal window in quickview.tpl. Solved mytheme/templates/catalog/_partials/miniatures/product.tpl code: " {block name='product_miniature_item'} <article class="nk-product" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product"> {block name='product_thumbnail'} <a href="{$product.url}" class="nk-product-image" title="{$product.name}" style=" {if $product.id_image == $product.id_image2} background-image: url('{$link->getImageLink($product.link_rewrite, $product.id_image1, 'home_default')|escape:'html':'UTF-8'}') {else} background-image: url('{$link->getImageLink($product.link_rewrite, $product.id_image2, 'home_default')|escape:'html':'UTF-8'}') {/if} "> <img class = "nk-img-stretch" src = "{$product.cover.bySize.home_default.url}" alt = "{$product.cover.legend}" data-full-size-image-url = "{$product.cover.large.url}" > </a> {/block} {block name='product_category_name'} <div class="nk-product-category"> In <a href="{$product.id_category_default}-{$product.category}">{$product.category_name}</a> </div> {/block} {block name='product_name'} <h2 class="nk-product-title h5" itemprop="name"><a href="{$product.url}">{$product.name}</a></h2> {/block} {block name='product_variants'} {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants} {/block} {block name='product_reviews'} <div class="hook-reviews"> {hook h='displayProductListReviews' product=$product} </div> {/block} {block name='product_price_and_shipping'} {if $product.show_price} <div class="product-price-and-shipping left"> {hook h='displayProductPriceBlock' product=$product type="before_price"} <span itemprop="price" class="price left">{$product.price}</span> {if $product.has_discount} {hook h='displayProductPriceBlock' product=$product type="old_price"} {if $product.discount_type === 'percentage'} <span class="discount-percentage bg-main-1 text-white">{$product.discount_percentage}</span> {/if} <span class="regular-price text-danger">{$product.regular_price}</span> {/if} {hook h='displayProductPriceBlock' product=$product type="unit_price"} {hook h='displayProductPriceBlock' product=$product type="weight"} </div> {/if} {/block} {block name='product_flags'} <ul class="product-flags"> {foreach from=$product.flags item=flag} <li class="{$flag.type}">{$flag.label}</li> {/foreach} </ul> {/block} {block name='product_availability'} {if $product.show_availability} {* availability may take the values "available" or "unavailable" *} <span class='product-availability {$product.availability}'>{$product.availability_message}</span> {/if} {/block} <div class="nk-product-button"> {block name='product_list_actions'} <div class=""> {block name='quick_view'} <a class="nk-product-quick-view quick-view" href="#" data-toggle="modal" title="{l s='Quick view' d='Shop.Theme.Actions'}" data-target=".quickviewmodal-{$product.id_product}" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}"> <span class="icon"> <i class="ion-eye"></i> </span> </a> {/block} {if $product.add_to_cart_url} <a class = "add-to-cart" href = "{$product.add_to_cart_url}" rel = "nofollow" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" data-link-action="add-to-cart" > <span class="icon"><em class="ion-bag"></em></span> {l s='Add to cart' d='Shop.Theme.Actions'} </a> {/if} {hook h='displayProductListFunctionalButtons' product=$product} </div> {/block} </div> </article> {block name='product_quick_view'} {include file='catalog/_partials/quickview.tpl'} {/block} {/block} " --Here's my SOLVED mytheme/templates/catalog/_partials/quickview.tpl file: " <div id="quickview-modal-{$product.id_product}-{$product.id_product_attribute}" class="modal fade quickview quickviewmodal quickviewmodal-{$product.id_product}" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="row"> <div class="col-md-6 col-sm-6 hidden-xs-down"> {block name='product_cover_thumbnails'} {include file='catalog/_partials/product-cover-thumbnails.tpl'} {/block} <div class="arrows js-arrows"> <i class="material-icons arrow-up js-arrow-up"></i> <i class="material-icons arrow-down js-arrow-down"></i> </div> </div> <div class="col-md-6 col-sm-6"> <h1 class="h1">{$product.name}</h1> {block name='product_prices'} {include file='catalog/_partials/product-prices.tpl'} {/block} {block name='product_description_short'} <div id="product-description-short" itemprop="description">{$product.description_short nofilter}</div> {/block} {block name='product_buy'} <div class="product-actions"> <form action="{$urls.pages.cart}" method="post" id="add-to-cart-or-refresh"> <input type="hidden" name="token" value="{$static_token}"> <input type="hidden" name="id_product" value="{$product.id}" id="product_page_product_id"> <input type="hidden" name="id_customization" value="{$product.id_customization}" id="product_customization_id"> {block name='product_variants'} {include file='catalog/_partials/product-variants.tpl'} {/block} {block name='product_add_to_cart'} {include file='catalog/_partials/product-add-to-cart.tpl'} {/block} {block name='product_refresh'} <input class="product-refresh" data-url-update="false" name="refresh" type="submit" value="{l s='Refresh' d='Shop.Theme.Actions'}" hidden> {/block} </form> </div> {/block} </div> </div> </div> <div class="modal-footer"> {hook h='displayProductAdditionalInfo' product=$product} </div> </div> </div> </div> " Best regards!!!
  2. Hello everybody! I'm programming a new theme based on starter theme and fully bootstrap 4 and now customizing the file mytheme/templates/catalog/_partials/miniatures/product.tpl. My issue is related to mytheme/templates/catalog/_partials/quickview.tpl that I created because it don't exist in Starter theme. I wanted to use a bootstrap 4 modal window for show a quickview window when you click on quickview link in product lists miniatures as I want to minimize the javascript code in my theme and leave just the embed bootstrap 4 javascript. I created the modal bootstrap 4 link for show the quickview in product.tpl and add a include of my quickview.tpl file at the end too. Then created my quickview.tpl file and include $product.id_product and $product.id_product_attribute variables. The issue I found is when I click wichever product quickview link in product list it shows always modal window I created but with product id 1. It always shows the same product in modal window. I hope that someone has an idea of what I'm doing wrong. Thank you very much in advance! -Here's my mytheme/templates/catalog/_partials/miniatures/product.tpl code: " {block name='product_miniature_item'} <article class="nk-product" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product"> {block name='product_thumbnail'} <a href="{$product.url}" class="nk-product-image" title="{$product.name}" style=" {if $product.id_image == $product.id_image2} background-image: url('{$link->getImageLink($product.link_rewrite, $product.id_image1, 'home_default')|escape:'html':'UTF-8'}') {else} background-image: url('{$link->getImageLink($product.link_rewrite, $product.id_image2, 'home_default')|escape:'html':'UTF-8'}') {/if} "> <img class = "nk-img-stretch" src = "{$product.cover.bySize.home_default.url}" alt = "{$product.cover.legend}" data-full-size-image-url = "{$product.cover.large.url}" > </a> {/block} {block name='product_category_name'} <div class="nk-product-category"> In <a href="{$product.id_category_default}-{$product.category}">{$product.category_name}</a> </div> {/block} {block name='product_name'} <h2 class="nk-product-title h5" itemprop="name"><a href="{$product.url}">{$product.name}</a></h2> {/block} {block name='product_variants'} {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants} {/block} {block name='product_reviews'} <div class="hook-reviews"> {hook h='displayProductListReviews' product=$product} </div> {/block} {block name='product_price_and_shipping'} {if $product.show_price} <div class="product-price-and-shipping left"> {hook h='displayProductPriceBlock' product=$product type="before_price"} <span itemprop="price" class="price left">{$product.price}</span> {if $product.has_discount} {hook h='displayProductPriceBlock' product=$product type="old_price"} {if $product.discount_type === 'percentage'} <span class="discount-percentage bg-main-1 text-white">{$product.discount_percentage}</span> {/if} <span class="regular-price text-danger">{$product.regular_price}</span> {/if} {hook h='displayProductPriceBlock' product=$product type="unit_price"} {hook h='displayProductPriceBlock' product=$product type="weight"} </div> {/if} {/block} {block name='product_flags'} <ul class="product-flags"> {foreach from=$product.flags item=flag} <li class="{$flag.type}">{$flag.label}</li> {/foreach} </ul> {/block} {block name='product_availability'} {if $product.show_availability} {* availability may take the values "available" or "unavailable" *} <span class='product-availability {$product.availability}'>{$product.availability_message}</span> {/if} {/block} <div class="nk-product-button"> {block name='product_list_actions'} <div class=""> {block name='quick_view'} <a class="nk-product-quick-view quick-view" href="#" data-toggle="modal" title="{l s='Quick view' d='Shop.Theme.Actions'}" data-target=".quickviewmodal" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}"> <span class="icon"> <i class="ion-eye"></i> </span> </a> {/block} {if $product.add_to_cart_url} <a class = "add-to-cart" href = "{$product.add_to_cart_url}" rel = "nofollow" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" data-link-action="add-to-cart" > <span class="icon"><em class="ion-bag"></em></span> {l s='Add to cart' d='Shop.Theme.Actions'} </a> {/if} {hook h='displayProductListFunctionalButtons' product=$product} </div> {/block} </div> </article> {/block} {block name='product_quick_view'} {include file='catalog/_partials/quickview.tpl'} {/block} " -Here's my mytheme/templates/catalog/_partials/quickview.tpl file: " <div id="quickview-modal-{$product.id_product}-{$product.id_product_attribute}" class="modal fade quickview quickviewmodal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="row"> <div class="col-md-6 col-sm-6 hidden-xs-down"> {block name='product_cover_thumbnails'} {include file='catalog/_partials/product-cover-thumbnails.tpl'} {/block} <div class="arrows js-arrows"> <i class="material-icons arrow-up js-arrow-up"></i> <i class="material-icons arrow-down js-arrow-down"></i> </div> </div> <div class="col-md-6 col-sm-6"> <h1 class="h1">{$product.name}</h1> {block name='product_prices'} {include file='catalog/_partials/product-prices.tpl'} {/block} {block name='product_description_short'} <div id="product-description-short" itemprop="description">{$product.description_short nofilter}</div> {/block} {block name='product_buy'} <div class="product-actions"> <form action="{$urls.pages.cart}" method="post" id="add-to-cart-or-refresh"> <input type="hidden" name="token" value="{$static_token}"> <input type="hidden" name="id_product" value="{$product.id}" id="product_page_product_id"> <input type="hidden" name="id_customization" value="{$product.id_customization}" id="product_customization_id"> {block name='product_variants'} {include file='catalog/_partials/product-variants.tpl'} {/block} {block name='product_add_to_cart'} {include file='catalog/_partials/product-add-to-cart.tpl'} {/block} {block name='product_refresh'} <input class="product-refresh" data-url-update="false" name="refresh" type="submit" value="{l s='Refresh' d='Shop.Theme.Actions'}" hidden> {/block} </form> </div> {/block} </div> </div> </div> <div class="modal-footer"> {hook h='displayProductAdditionalInfo' product=$product} </div> </div> </div> </div> "
  3. Hola a todos y muchs gracias de antemano por interesaros por este topic. Resulta que tengo un amigo que le hice una instalacion de Presta para su tienda de colchones. Resulta que ayer me llama y me dice que no se ve la página. que no había hecho nada. REsulta que las carpetas de themes tanto la personalizada como la "default" habían sido eliminadas. Cargue una copia desactualizada que tenía del theme y arreglado pero resulta que aún hay más: -Ahora la tienda no acepta pedidos, por lo tanto no aparece el botón de adquirir y si lo hago aparecer modificando en .tpl y lo pulso aparece el mensaje que la tienda no acepta pedidos. Los botones de añadir al carrito tb están desactivados. Lo que he comprobado es que NO está la tienda en modo catálogo y que todos los productos están disponibles para la compra y con stock (más bien se desactivó el control de stock por preferencias de mi amigo). Dejo este mensaje por si alguien se le ocurre que puede ser. La url es: http://www.mobihogar2000.com/ No os asusteis por el tiempo de carga. Está en modo "Forzar compilación" y todo lo demas para el mantenimiento. Muchísimas gracias por la colaboración.
  4. Esta es una posible causa de los que no pueden hacer login en prestashop 1.5 y han modificado el theme o tema por defecto. La historia: A mi me ha pasado que estando creando una nueva tienda en 1.5.3 (así de chulo soy) toda terminada pensando que no se que dicen si Prestashop 1.5.3 va de P..M...., voy a probar la pasarela de pago con la tarjeta de pruebas y resulta que no me puedo loggear. m... el primer fallo. Si que puedo entrar con una cuenta nueva y si pongo un correo de una cuenta ya creada para registrarme de nuevo me dice que ya hay una cuenta con ese correo. por ahí bien. Desinstalo el 1.5.3 e instalo el 1.5.2 me da el mismo fallo. Realizo la exportación de la página de nuevo y caigo en que el fallo viene cuando sustituyo el header.tpl de mi plantilla en uso en la nueva instalación. !bingo! me estaba acercando. Resulta que al hacer la modificación del template eliminé el identificador id="center_column". -Este es el código que no registra: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}"> <head> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" /> {/if} <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta http-equiv="content-language" content="{$meta_language}" /> <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" /> <link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" /> <script type="text/javascript"> var baseDir = '{$content_dir}'; var baseUri = '{$base_uri}'; var static_token = '{$static_token}'; var token = '{$token}'; var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals}; var priceDisplayMethod = {$priceDisplay}; var roundMode = {$roundMode}; </script> {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} {if isset($js_files)} {foreach from=$js_files item=js_uri} <script type="text/javascript" src="{$js_uri}"></script> {/foreach} {/if} {$HOOK_HEADER} </head> <body onload="replaceHover()" {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column{/if} {if $hide_right_column}hide-right-column{/if}"> {if !$content_only} {if isset($restricted_country_mode) && $restricted_country_mode} <div id="restricted-country"> <p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p> </div> {/if} <div class="container"> <!-- Header --> <div id="header" class="row"> <div id="logo" class="threecol"> <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> </div> <div class="ninecol last" id="fixed"> {$HOOK_MENUUSUARIO} {$HOOK_MENUPRINCIPAL} {$HOOK_TOP} </div> </div> {if $page_name == 'index'} {$HOOK_BANNERPRINCIPAL} <div class="clearfix"> </div> {else} <div class="linea"> </div> <div class="row clearfix"> <div id="right_column" class="threecol last clearfix"> {$HOOK_LEFT_COLUMN} </div> <div class="ninecol clearfix"> {/if} {/if} -Y este el que sí: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}"> <head> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" /> {/if} <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta http-equiv="content-language" content="{$meta_language}" /> <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" /> <link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" /> <script type="text/javascript"> var baseDir = '{$content_dir}'; var baseUri = '{$base_uri}'; var static_token = '{$static_token}'; var token = '{$token}'; var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals}; var priceDisplayMethod = {$priceDisplay}; var roundMode = {$roundMode}; </script> {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} {if isset($js_files)} {foreach from=$js_files item=js_uri} <script type="text/javascript" src="{$js_uri}"></script> {/foreach} {/if} {$HOOK_HEADER} </head> <body onload="replaceHover()" {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column{/if} {if $hide_right_column}hide-right-column{/if}"> {if !$content_only} {if isset($restricted_country_mode) && $restricted_country_mode} <div id="restricted-country"> <p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p> </div> {/if} <div class="container"> <!-- Header --> <div id="header" class="row"> <div id="logo" class="threecol"> <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> </div> <div class="ninecol last" id="fixed"> {$HOOK_MENUUSUARIO} {$HOOK_MENUPRINCIPAL} {$HOOK_TOP} </div> </div> {if $page_name == 'index'} {$HOOK_BANNERPRINCIPAL} <div class="clearfix"> </div> {else} <div class="linea"> </div> <div class="row clearfix"> <div id="right_column" class="threecol last clearfix"> {$HOOK_LEFT_COLUMN} </div> <div id="center_column" class="ninecol clearfix"> {/if} {/if} Sólo había que añadir el id="center_column". Espero que a alguien le solucione el asunto. a mi me hizo perder día y medio en instalaciones y reinstalaciones y pruebas hasta dar con esto. que vaya moñada.... Y me quedo con la espinita de si Presta 1.5.3 va tan bien como parecía (rápido, cómodo, gestión optimizada,...)
  5. A mi me pasaba lo mismo y lo solucioné. Me aparecía el menú instalado si lo buscaba por nombre pero en la sección de modulos de pago no aparece, que es de donde Prestashop 1.5.3 coge los módulos que son válidos para el pago. Para eso han inventado una etiqueta nueva en el archivo "modulodepagoelquesea.php". Me explico: yo tengo un modulo de ruralcaja que es de versiones anteriores, simplemente accediendo a la carpeta del modulo en cuestión (modules/"nombredelmódulo")hay un archivo de configuración "nombredelmodulo.php" y tiene unas líneas en módulos de versiones anteriores a la 1.5.3: public function __construct(){ $this->name = 'cajarural'; $this->tab = 'Payment'; $this->version = 0.1; Y hay que sustituir 'Payment' por 'payments_gateways' que es la nueva etiqueta de los módulos de pago y te quedará así: public function __construct(){ $this->name = 'cajarural'; $this->tab = 'payments_gateways'; $this->version = 0.1; Ahora ya verás el módulo en la sección de módulos de pago y lo podrás seleccionar para pagar.
  6. Gracias, lo voy a probar ahora. En esta página ya lo di por perdido pero a la que estoy acabando ahora le vendra de perlas. Es que creo que es la mejor manera de presentar la sección tiendas, combinando las dos versiones. Muchas gracias [email protected].
  7. Siento ser pesado pero he estado investigando y sigo sin encontrar una respuesta, ya que el código debería funcionar tal cual lo he modificado y no se por qué.... ayudaaaa!
  8. Pues eso, que quería que en la sección nuestras tiendas me apareciera el mapa de google aún teniendo activada la opción de muestra simplificada de localización de la tienda. TEngo la versión 1.4.9. el código de stores.tpl dentro de mi carpeta de theme es: {* * 2007-2012 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.or...ses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 14008 $ * @license http://opensource.or...ses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {capture name=path}{l s='Our stores'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"} <script src="http://maps.google.com/maps/api/js?sensor=true">// DEBUG </script> <h1>{l s='Our stores'}</h1> {if $simplifiedStoresDiplay} {if $stores|@count} <p>{l s='Here are the details of our stores, feel free to contact us:'}</p> {foreach from=$stores item=store} <div class="store-small"> {if $store.has_picture}<p><img src="{$img_store_dir}{$store.id_store}.jpg" alt="" width=640px height=480px /></p>{/if} <p> <b>{$store.name|escape:'htmlall':'UTF-8'}</b><br /> {$store.address1|escape:'htmlall':'UTF-8'}<br /> {if $store.address2}{$store.address2|escape:'htmlall':'UTF-8'}{/if}<br /> {$store.postcode} {$store.city|escape:'htmlall':'UTF-8'}{if $store.state}, {$store.state}{/if}<br /> {$store.country|escape:'htmlall':'UTF-8'}<br /> {if $store.phone}{l s='Phone:' js=0} {$store.phone}{/if} </p> </div> {/foreach} {/if} {else} <script type="text/javascript"> // <![CDATA[ var map; var markers = []; var infoWindow; var locationSelect; var defaultLat = '{$defaultLat}'; var defaultLong = '{$defaultLong}'; var translation_1 = '{l s='No store found, try to select a wider radius' js=1}'; var translation_2 = '{l s='store found - see details:' js=1}'; var translation_3 = '{l s='stores found - see all results:' js=1}'; var translation_4 = '{l s='Phone:' js=1}'; var translation_5 = '{l s='Get Directions' js=1}'; var translation_6 = '{l s='Not found' js=1}'; var hasStoreIcon = '{$hasStoreIcon}'; var distance_unit = '{$distance_unit}'; var img_store_dir = '{$img_store_dir}'; var img_ps_dir = '{$img_ps_dir}'; var searchUrl = '{$searchUrl}'; //]]> </script> <p>{l s='Enter a location (eg.: a zip/postal code, an address, a city or a country) in order to find the nearest stores.'}</p> <p>{l s='Your location:'} <input type="text" name="location" id="addressInput" value="{l s='Address, zip/postal code, city, state or country'}" onclick="this.value='';" /></p> <p style="margin-top: 15px;"> {l s='Radius:'} <select name="radius" id="radiusSelect"> <option value="15">15</option> <option value="25">25</option> <option value="50">50</option> <option value="100">100</option> </select> {$distance_unit} <input type="button" class="button" onclick="searchLocations();" value="{l s='Search'}" style="display: inline;" /> <img src="{$img_ps_dir}loader.gif" class="middle" alt="" id="stores_loader" /> </p> <div><select id="locationSelect"></select></div> <div id="map"></div> <table cellpadding="0" cellspacing="0" id="stores-table"> <tr> <th>{l s='#'}</th> <th>{l s='Store'}</th> <th>{l s='Address'}</th> <th>{l s='Distance'}</th> </tr> </table> {/if} lo que ya tengo hecho es cambiar el tamaño de la imagen de la tienda y el enlace para que me muestre la foto en grande del archivo imagenes de tienda. Se me había ocurrido copiar todo lo que hay entre el {else} y el {/if} del final y meterlo dentro del {if $simplifiedStoresDiplay} como aquí: {* * 2007-2012 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 14008 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {capture name=path}{l s='Our stores'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"} <script src="http://maps.google.com/maps/api/js?sensor=true">// DEBUG </script> <h1>{l s='Our stores'}</h1> {if $simplifiedStoresDiplay} {if $stores|@count} <p>{l s='Here are the details of our stores, feel free to contact us:'}</p> {foreach from=$stores item=store} <div class="store-small"> {if $store.has_picture}<p><img src="{$img_store_dir}{$store.id_store}.jpg" alt="" width=640px height=480px /></p>{/if} <p> <b>{$store.name|escape:'htmlall':'UTF-8'}</b><br /> {$store.address1|escape:'htmlall':'UTF-8'}<br /> {if $store.address2}{$store.address2|escape:'htmlall':'UTF-8'}{/if}<br /> {$store.postcode} {$store.city|escape:'htmlall':'UTF-8'}{if $store.state}, {$store.state}{/if}<br /> {$store.country|escape:'htmlall':'UTF-8'}<br /> {if $store.phone}{l s='Phone:' js=0} {$store.phone}{/if} </p> <script type="text/javascript"> // <![CDATA[ var map; var markers = []; var infoWindow; var locationSelect; var defaultLat = '{$defaultLat}'; var defaultLong = '{$defaultLong}'; var translation_1 = '{l s='No store found, try to select a wider radius' js=1}'; var translation_2 = '{l s='store found - see details:' js=1}'; var translation_3 = '{l s='stores found - see all results:' js=1}'; var translation_4 = '{l s='Phone:' js=1}'; var translation_5 = '{l s='Get Directions' js=1}'; var translation_6 = '{l s='Not found' js=1}'; var hasStoreIcon = '{$hasStoreIcon}'; var distance_unit = '{$distance_unit}'; var img_store_dir = '{$img_store_dir}'; var img_ps_dir = '{$img_ps_dir}'; var searchUrl = '{$searchUrl}'; //]]> </script> <p>{l s='Enter a location (eg.: a zip/postal code, an address, a city or a country) in order to find the nearest stores.'}</p> <p>{l s='Your location:'} <input type="text" name="location" id="addressInput" value="{l s='Address, zip/postal code, city, state or country'}" onclick="this.value='';" /></p> <p style="margin-top: 15px;"> {l s='Radius:'} <select name="radius" id="radiusSelect"> <option value="15">15</option> <option value="25">25</option> <option value="50">50</option> <option value="100">100</option> </select> {$distance_unit} <input type="button" class="button" onclick="searchLocations();" value="{l s='Search'}" style="display: inline;" /> <img src="{$img_ps_dir}loader.gif" class="middle" alt="" id="stores_loader" /> </p> <div><select id="locationSelect"></select></div> <div id="map"></div> <table cellpadding="0" cellspacing="0" id="stores-table"> <tr> <th>{l s='#'}</th> <th>{l s='Store'}</th> <th>{l s='Address'}</th> <th>{l s='Distance'}</th> </tr> </table> </div> {/foreach} {/if} {else} <script type="text/javascript"> // <![CDATA[ var map; var markers = []; var infoWindow; var locationSelect; var defaultLat = '{$defaultLat}'; var defaultLong = '{$defaultLong}'; var translation_1 = '{l s='No store found, try to select a wider radius' js=1}'; var translation_2 = '{l s='store found - see details:' js=1}'; var translation_3 = '{l s='stores found - see all results:' js=1}'; var translation_4 = '{l s='Phone:' js=1}'; var translation_5 = '{l s='Get Directions' js=1}'; var translation_6 = '{l s='Not found' js=1}'; var hasStoreIcon = '{$hasStoreIcon}'; var distance_unit = '{$distance_unit}'; var img_store_dir = '{$img_store_dir}'; var img_ps_dir = '{$img_ps_dir}'; var searchUrl = '{$searchUrl}'; //]]> </script> <p>{l s='Enter a location (eg.: a zip/postal code, an address, a city or a country) in order to find the nearest stores.'}</p> <p>{l s='Your location:'} <input type="text" name="location" id="addressInput" value="{l s='Address, zip/postal code, city, state or country'}" onclick="this.value='';" /></p> <p style="margin-top: 15px;"> {l s='Radius:'} <select name="radius" id="radiusSelect"> <option value="15">15</option> <option value="25">25</option> <option value="50">50</option> <option value="100">100</option> </select> {$distance_unit} <input type="button" class="button" onclick="searchLocations();" value="{l s='Search'}" style="display: inline;" /> <img src="{$img_ps_dir}loader.gif" class="middle" alt="" id="stores_loader" /> </p> <div><select id="locationSelect"></select></div> <div id="map"></div> <table cellpadding="0" cellspacing="0" id="stores-table"> <tr> <th>{l s='#'}</th> <th>{l s='Store'}</th> <th>{l s='Address'}</th> <th>{l s='Distance'}</th> </tr> </table> {/if} y me muestra el selector de distancia del mapa pero el mapa no se ve. El enlace a mi chapucilla es el siguiente: http://monnalisa-shop.com/tiendas A ver si a alguien se le ocurre algo.
  9. Jajajajaja cómo mola cuando dices lo del mundo oscuro y tenebroso!!! Suele ser buena señal!! un saludo, amigo!
  10. jajajaja, que despistado, disculpa por darte la brasa. Era ese cambio de sintaxis lo que fallaba y no volví a forzar compilación. Ahora funciona. Muchisísimas gracias, "Don" Nadie. Curioso verdad?? Ahora cómo cambio el título del topic con solucionado delante??
  11. He provado cambiar el enlace de los links a uno fijo, por ejemplo: a la página de la categoría niña y tampoco funciona. ¿Es posible que no sea el archivo .tpl?
  12. Ya he provado el cambio de sintaxis. Y no lo he solucionado. ¿Es rarísimo verdad? modifique el .tpl para que no salieran los nombres; repasaré el archivo de la instalación limpia a ver si van por ahí los tiros. Pero analizando el código está correcto, no?
  13. Estoy provando en varios navegadores y nada. No va. gracias Nadie por tu interés!!
×
×
  • Create New...