Modificar galería d...
 
Avisos
Vaciar todo

Modificar galería de imágenes en la página de producto

20 Respuestas
3 Usuarios
0 Reactions
1,437 Visitas
Respuestas: 30
Eminent Member
Topic starter
 

Hola,
a ver si me podéis echar una mano porque no se solucionar esto. Tengo un página de producto poor ejemplo http://areab2b.lenubu.com/es/inicio/8-classic-7-speed-aqua.html que como veis muestra la galeria de imágenes de forma vertical, quiero que la muestre de forma horizontal y debajo de la imagen principal.

He copiado el código del product.tpl del theme por defecto para ver si lo corrige y nada, también he copiado el código del product.tpl de la plantilla minimal(una free bastante común) y lo he subido y el resultado es el actual

¿dónde y cómo hay que modificar esa galería para que salga en horizontal debajo de la imagen principal?

Gracias

URL del sitio: Contenido solo visible a usuarios registrados


 
Respondido : 25/10/2016 2:11 pm
Jhon
 Jhon
Respuestas: 44989
Illustrious Member Moderator
 

Hola

Depende de tu theme, es decir veo por ejemplo que si haces click en alguna imagen se abre una nueva ventana con la imagen, esto es asi en tu theme original?, puedes enviarnos el link desde donde descargaste el theme para verificar.

Saludos.


 
Respondido : 25/10/2016 5:36 pm
Respuestas: 30
Eminent Member
Topic starter
 

El theme es este http://www.templatemonster.com/demo/54008.html
Gracias por la ayuda!


 
Respondido : 25/10/2016 5:39 pm
Jhon
 Jhon
Respuestas: 44989
Illustrious Member Moderator
 

Hola

El diseño de las miniaturas es vertical en la demo de la plantilla.
http://livedemo00.template-help.com/prestashop_54008/index.php?id_product=3&controller=product&id_lang=4

De manera general depende de la estructura, lo veo complicado cambiarlo a horizontal, mejor evalúa otro theme que tenga esta estructura.

Saludos


 
Respondido : 25/10/2016 9:49 pm
Respuestas: 30
Eminent Member
Topic starter
 

Hola,
ok, opto entonces por otra solución pero en esta también tengo dudas.

Dejando el theme original necesitaría que en la página de producto se imprimiera, a la derecha de la imagen, la descripción corta que completas del producto.

Supongo que tengo que insertar algún código en el product.tpl pero no sé que código ni a que altura.

¿Podrías orientarme?? Muchas gracias!!!

El código actual del product.tpl


Esta publicación ha sido modificada el hace 5 años por Gerard Martínez
 
Respondido : 26/10/2016 10:13 am
Pepe
 Pepe
Respuestas: 41133
Illustrious Member Admin
 

Hola Santiago.

No se exactamente que es lo que quieres ocultar ¿ es lo que te marco en la captura ?

Un saludo


 
Respondido : 26/10/2016 10:56 am
Respuestas: 30
Eminent Member
Topic starter
 

Hola Pepe,
sí, te cuento. Como sabes cuando creas un producto en prestashop, en la pestaña información tienes dos campos uno que llaman "descripción corta" y otro "descripción"

Pues bien, el theme que viene por defecto en presashop te muestra esta descripción corta entre la imagen del producto y el bloque con el precio y botón de comprar. Ejemplo en http://www.firstbikeespana.es/inicio/9-street-azul-con-freno.html

Sin embargo, en mi página web y con el theme que utilizo no se imprime/muestra la descripción corto. Sólo la larga. Lo que quiero es que al igual que en el ejemplo, el theme muestre la descripción corta entre la imagen y el bloque de comprar

Para ello, entiendo que hay que agregar alguna línea de código en el tpl que os pasaba

Muchas gracias!


 
Respondido : 26/10/2016 11:50 am
Pepe
 Pepe
Respuestas: 41133
Illustrious Member Admin
 

Hola Santiago.
Perdona por la demora, lo siento :blush:

Es complicado ya que tienes una versión de pago de la plantilla y no podemos revisarla, el problema lo tenemos si te paso algún código y después no responde, por que igual es bueno para lo que buscamos pero estropeamos otra cosa.

La mejor solución es que te pongas en contacto con los desarrolladores, al ser una plantilla de pago tienes soporte y seguro que te podrán informar mejor que nosotros.

Nota: Me gusta mucho tu producto 😉

Un saludo


 
Respondido : 26/10/2016 2:07 pm
Respuestas: 30
Eminent Member
Topic starter
 

Hola Pepe,
no es de pago, es gratuita http://www.templatemonster.com/fashion-store-free-prestashop-theme.html

Lo que necesito es eso, el código en el product.tpl para que muestre la descripción corta.

Si me lo pasas te lo agradezco

Gracias!


 
Respondido : 26/10/2016 2:15 pm
Respuestas: 30
Eminent Member
Topic starter
 

El código que hay que añadir para mostrar la descripción corta es

{if $product->description_short || $packItems|@count > 0}

{if $product->description_short}

{$product->description_short}

{/if}

{/if}

Ahora tengo el problema que no soy capaz de que se muestre esa descripción corta en a los visitantes. Me explico, en clientes>grupos tengo configurado que sólo los clientes puedan ver los precios.

Por alguna razón, y seguramente debido a la zona del product.tpl en la que inserto el código de la descripción corta, lo toma prestashop como si fuera un precio y solo muestra la descripción corta a los clientes pero no a los visitantes.

Me podrías ayudar a mostrar la descripción corta también a los visitante teniendo en cuenta que la descripción corta la quiero mostrar entre la imagen de producto y el bloque de atributos, precio, carrito..etc??

Gracias!


{include file="$tpl_dir./errors.tpl"}

{if (($hide_left_column || $hide_right_column) && ($hide_left_column !='true' || $hide_right_column !='true')) && !$content_only}
	{assign var="columns" value="2"}
{elseif (($hide_left_column && $hide_right_column) && ($hide_left_column =='true' && $hide_right_column =='true')) && !$content_only}
	{assign var="columns" value="1"}
{elseif $content_only}
	{assign var="columns" value="1"}
{else}
	{assign var="columns" value="3"}
{/if}

{if $errors|@count == 0}
	{if !isset($priceDisplayPrecision)}
		{assign var='priceDisplayPrecision' value=2}
	{/if}
	{if !$priceDisplay || $priceDisplay == 2}
		{assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)}
		{assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL, $priceDisplayPrecision)}
	{elseif $priceDisplay == 1}
		{assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL, $priceDisplayPrecision)}
		{assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL, $priceDisplayPrecision)}
	{/if}
{if isset($adminActionDisplay) && $adminActionDisplay}

{l s='This product is not visible to your customers.'} id}" />

{/if} {if isset($confirmation) && $confirmation}

{$confirmation}

{/if}
0} is_caroucel{/if}"> {if $product->new} {l s='New'} {/if} {if $product->on_sale} {l s='Sale!'} {/if} {if $have_image} {if $jqZoomEnabled && $have_image && !$content_only} name|escape:'html':'UTF-8'}{/if}" rel="gal1" href="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'tm_thickbox_default')|escape:'html':'UTF-8'}" itemprop="url"> getImageLink($product->link_rewrite, $cover.id_image, 'tm_large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}"/> {else} getImageLink($product->link_rewrite, $cover.id_image, 'tm_large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" width="{$largeSize.width}" height="{$largeSize.height}"/> {if !$content_only} {l s='View larger'} {/if} {/if} {else} name|escape:'html':'UTF-8'}" width="{$largeSize.width}" height="{$largeSize.height}"/> {if !$content_only} {l s='View larger'} {/if} {/if}
{if isset($images) && count($images) > 0} <div id="views_block" class="clearfix{if isset($images) && count($images) {if isset($images) && count($images) > 0} {l s='Previous'} {/if} {if isset($images) && count($images) > 0} {l s='Next'} {/if}
{/if} {if isset($images) && count($images) > 1}

getProductLink($product)|escape:'html':'UTF-8'}" data-id="resetImages"> {l s='Display all pictures'}

{/if}
{if $product->online_only}

{l s='Online only'}

{/if}

reference) || !$product->reference} style="display: none;"{/if}> {if !isset($groups)}{$product->reference|escape:'html':'UTF-8'}{/if}

{$product->name|escape:'html':'UTF-8'}

quantity available_later && $allow_oosp) || ($product->quantity > 0 && !$product->available_now) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}> {*{l s='Availability:'}*} quantity quantity {if $product->quantity available_later}{else}{l s='This product is no longer in stock'}{/if}{elseif $PS_STOCK_MANAGEMENT}{$product->available_now}{/if}

{*{if !$product->is_virtual && $product->condition}

{if $product->condition == 'new'} {l s='New product'} {elseif $product->condition == 'used'} {l s='Used'} {elseif $product->condition == 'refurbished'} {l s='Refurbished'} {/if}

{/if} *} {if ($display_qties == 1 && !$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && $product->available_for_order)}

quantity {$product->quantity|intval} quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item'} quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items'}

{/if}
{if $PS_STOCK_MANAGEMENT} {hook h="displayProductDeliveryTime" product=$product}

quantity > $last_qties || $product->quantity available_for_order || $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}

{/if}

quantity > 0) || !$product->available_for_order || $PS_CATALOG_MODE || !isset($product->available_date) || $product->available_date {l s='Availability date:'} {dateFormat date=$product->available_date full=false}

quantity > 0} style="display: none;"{/if}> {$HOOK_PRODUCT_OOS}
{if ($product->show_price && !isset($restricted_country_mode)) || isset($groups) || $product->reference || (isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS)} quantity > 0} class="hidden"{/if} action="{$link->getPageLink('cart')|escape:'html':'UTF-8'}" method="post">
{if $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}

specificPrice || !$product->specificPrice.reduction) && $group_reduction == 0} class="unvisible"{/if}> {strip} {if $priceDisplay >= 0 && $priceDisplay <= 2} {hook h="displayProductPriceBlock" product=$product type="old_price"} {if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPriceWithoutReduction}{/if} {/if} {/strip}

specificPrice || $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}> {strip} {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if} {/strip}

specificPrice || $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|floatval ==0} style="display:none"{/if}> {strip} {if $product->specificPrice && $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|floatval !=0} -{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval} {/if} {/strip}

{if $product->description_short || $packItems|@count > 0}
{if $product->description_short}
{$product->description_short}
{/if}
{/if}

{strip} {if $product->quantity > 0}{/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} {convertPrice price=$productPrice} {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) || !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} iso_code}" /> {hook h="displayProductPriceBlock" product=$product type="price"} {/if} {/strip}

{if $priceDisplay == 2}
{convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {l s='tax excl.'} {/if} {if $packItems|@count && $productPrice getNoPackPrice()}

{l s='Instead of'} {convertPrice price=$product->getNoPackPrice()}

{/if} {if $product->ecotax != 0}

{l s='Including'} {if $priceDisplay == 2}{$ecotax_tax_exc|convertAndFormatPrice}{else}{$ecotax_tax_inc|convertAndFormatPrice}{/if} {l s='for ecotax'} {if $product->specificPrice && $product->specificPrice.reduction}
{l s='(not impacted by the discount)'} {/if}

{/if} {if !empty($product->unity) && $product->unit_price_ratio > 0.000000} {math equation="pprice / punit_price" pprice=$productPrice punit_price=$product->unit_price_ratio assign=unit_price}

{convertPrice price=$unit_price} {l s='per'} {$product->unity|escape:'html':'UTF-8'}

{hook h="displayProductPriceBlock" product=$product type="unit_price"} {/if} {if ($product->specificPrice && $product->specificPrice.reduction && $productPriceWithoutReduction > $productPrice) && !$product->on_sale} {l s='Reduced price!'} {/if} {/if} {*close if for show price*} {hook h="displayProductPriceBlock" product=$product type="weight"}
{if isset($groups)}
{foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count}
{assign var="groupName" value="group_$id_attribute_group"}
{if ($group.group_type == 'color')} {elseif ($group.group_type == 'select')} {foreach from=$group.attributes key=id_attribute item=group_attribute} {$group_attribute|escape:'html':'UTF-8'} {/foreach} {elseif ($group.group_type == 'radio')}
    {foreach from=$group.attributes key=id_attribute item=group_attribute}
  • {$group_attribute|escape:'html':'UTF-8'}
  • {/foreach}
{/if}
{/if} {/foreach}
{/if}
{if !$PS_CATALOG_MODE}

quantity available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}> minimal_quantity > 1}{$product->minimal_quantity}{else}1{/if}{/if}" />

{/if}
quantity available_for_order || (isset($restricted_country_mode) && $restricted_country_mode) || $PS_CATALOG_MODE} class="unvisible"{/if}>

{if $content_only && (isset($product->customization_required) && $product->customization_required)} {else} {/if}

minimal_quantity available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}> {l s='The minimum purchase order quantity for the product is'} {$product->minimal_quantity}

{if isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS}{$HOOK_PRODUCT_ACTIONS}{/if}
{/if} {if isset($HOOK_EXTRA_RIGHT) && $HOOK_EXTRA_RIGHT}
{$HOOK_EXTRA_RIGHT}
{/if} {if !$content_only} {/if}
{if !$content_only} {if $product->description || (isset($quantity_discounts) && count($quantity_discounts) > 0) || (isset($features) && $features) || (isset($attachments) && $attachments) || (isset($product) && $product->customizable)}
{if $product->description}
{$product->description}
{/if} {if (isset($quantity_discounts) && count($quantity_discounts) > 0)}
{foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'} {/foreach}
{l s='Quantity'} {if $display_discount_price}{l s='Price'}{else}{l s='Discount'}{/if} {l s='You Save'}
{$quantity_discount.quantity|intval} {if $quantity_discount.price >= 0 || $quantity_discount.reduction_type == 'amount'} {if $display_discount_price} {convertPrice price=$productPrice-$quantity_discount.real_value|floatval} {else} {convertPrice price=$quantity_discount.real_value|floatval} {/if} {else} {if $display_discount_price} {convertPrice price = $productPrice-($productPrice*$quantity_discount.reduction)|floatval} {else} {$quantity_discount.real_value|floatval}% {/if} {/if} {l s='Up to'} {if $quantity_discount.price >= 0 || $quantity_discount.reduction_type == 'amount'} {$discountPrice=$productPrice-$quantity_discount.real_value|floatval} {else} {$discountPrice=$productPrice-($productPrice*$quantity_discount.reduction)|floatval} {/if} {$discountPrice=$discountPrice*$quantity_discount.quantity} {$qtyProductPrice = $productPrice*$quantity_discount.quantity} {convertPrice price=$qtyProductPrice-$discountPrice}
{/if} {if isset($features) && $features}
{foreach from=$features item=feature} {if isset($feature.value)} {/if} {/foreach}
{$feature.name|escape:'html':'UTF-8'} {$feature.value|escape:'html':'UTF-8'}
{/if} {if isset($attachments) && $attachments}
{foreach from=$attachments item=attachment name=attachements} {if $smarty.foreach.attachements.iteration %3 == 1}{/if} {/foreach}
{/if} {if isset($product) && $product->customizable}

{l s='After saving your customized product, remember to add it to your cart.'} {if $product->uploadable_files}
{l s='Allowed file formats are: GIF, JPG, PNG'}{/if}

{if $product->uploadable_files|intval}
{l s='Pictures'}
{/if} {if $product->text_fields|intval}
{l s='Text'}
    {counter start=0 assign='customizationField'} {foreach from=$customizationFields item='field' name='customizationFields'} {if $field.type == 1}
  • {counter} {/if} {/foreach}
{/if}

loader

* {l s='required fields'}
{/if} {hook h="displayProductVideoTabContent" product=$product}
{/if} {if (isset($product) && $product->description) || (isset($features) && $features) || (isset($accessories) && $accessories) || (isset($HOOK_PRODUCT_TAB) && $HOOK_PRODUCT_TAB) || (isset($attachments) && $attachments) || isset($product) && $product->customizable} {/if}
{$HOOK_PRODUCT_TAB} {if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}{$HOOK_PRODUCT_TAB_CONTENT}{/if}
{if isset($accessories) && $accessories}

{l s='Accessories'}

{/if} {if isset($HOOK_PRODUCT_FOOTER) && $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if} {if isset($packItems) && $packItems|@count > 0}

{l s='Pack content'}

{include file="$tpl_dir./product-list.tpl" products=$packItems}
{/if} {/if}
{strip} {if isset($smarty.get.ad) && $smarty.get.ad} {addJsDefL name=ad}{$base_dir|cat:$smarty.get.ad|escape:'html':'UTF-8'}{/addJsDefL} {/if} {if isset($smarty.get.adtoken) && $smarty.get.adtoken} {addJsDefL name=adtoken}{$smarty.get.adtoken|escape:'html':'UTF-8'}{/addJsDefL} {/if} {addJsDef allowBuyWhenOutOfStock=$allow_oosp|boolval} {addJsDef availableNowValue=$product->available_now|escape:'quotes':'UTF-8'} {addJsDef availableLaterValue=$product->available_later|escape:'quotes':'UTF-8'} {addJsDef attribute_anchor_separator=$attribute_anchor_separator|addslashes} {addJsDef attributesCombinations=$attributesCombinations} {addJsDef currencySign=$currencySign|html_entity_decode:2:"UTF-8"} {addJsDef currencyRate=$currencyRate|floatval} {addJsDef currencyFormat=$currencyFormat|intval} {addJsDef currencyBlank=$currencyBlank|intval} {addJsDef currentDate=$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'} {if isset($combinations) && $combinations} {addJsDef combinations=$combinations} {addJsDef combinationsFromController=$combinations} {addJsDef displayDiscountPrice=$display_discount_price} {addJsDefL name='upToTxt'}{l s='Up to' js=1}{/addJsDefL} {/if} {if isset($combinationImages) && $combinationImages} {addJsDef combinationImages=$combinationImages} {/if} {addJsDef customizationFields=$customizationFields} {addJsDef default_eco_tax=$product->ecotax|floatval} {addJsDef displayPrice=$priceDisplay|intval} {addJsDef ecotaxTax_rate=$ecotaxTax_rate|floatval} {addJsDef group_reduction=$group_reduction} {if isset($cover.id_image_only)} {addJsDef idDefaultImage=$cover.id_image_only|intval} {else} {addJsDef idDefaultImage=0} {/if} {addJsDef img_ps_dir=$img_ps_dir} {addJsDef img_prod_dir=$img_prod_dir} {addJsDef id_product=$product->id|intval} {addJsDef jqZoomEnabled=$jqZoomEnabled|boolval} {addJsDef maxQuantityToAllowDisplayOfLastQuantityMessage=$last_qties|intval} {addJsDef minimalQuantity=$product->minimal_quantity|intval} {addJsDef noTaxForThisProduct=$no_tax|boolval} {addJsDef customerGroupWithoutTax=$customer_group_without_tax|boolval} {addJsDef oosHookJsCodeFunctions=Array()} {addJsDef productHasAttributes=isset($groups)|boolval} {addJsDef productPriceTaxExcluded=($product->getPriceWithoutReduct(true)|default:'null' - $product->ecotax)|floatval} {addJsDef productBasePriceTaxExcluded=($product->base_price - $product->ecotax)|floatval} {addJsDef productBasePriceTaxExcl=($product->base_price|floatval)} {addJsDef productReference=$product->reference|escape:'html':'UTF-8'} {addJsDef productAvailableForOrder=$product->available_for_order|boolval} {addJsDef productPriceWithoutReduction=$productPriceWithoutReduction|floatval} {addJsDef productPrice=$productPrice|floatval} {addJsDef productUnitPriceRatio=$product->unit_price_ratio|floatval} {addJsDef productShowPrice=(!$PS_CATALOG_MODE && $product->show_price)|boolval} {addJsDef PS_CATALOG_MODE=$PS_CATALOG_MODE} {if $product->specificPrice && $product->specificPrice|@count} {addJsDef product_specific_price=$product->specificPrice} {else} {addJsDef product_specific_price=array()} {/if} {if $display_qties == 1 && $product->quantity} {addJsDef quantityAvailable=$product->quantity} {else} {addJsDef quantityAvailable=0} {/if} {addJsDef quantitiesDisplayAllowed=$display_qties|boolval} {if $product->specificPrice && $product->specificPrice.reduction && $product->specificPrice.reduction_type == 'percentage'} {addJsDef reduction_percent=$product->specificPrice.reduction*100|floatval} {else} {addJsDef reduction_percent=0} {/if} {if $product->specificPrice && $product->specificPrice.reduction && $product->specificPrice.reduction_type == 'amount'} {addJsDef reduction_price=$product->specificPrice.reduction|floatval} {else} {addJsDef reduction_price=0} {/if} {if $product->specificPrice && $product->specificPrice.price} {addJsDef specific_price=$product->specificPrice.price|floatval} {else} {addJsDef specific_price=0} {/if} {addJsDef specific_currency=($product->specificPrice && $product->specificPrice.id_currency)|boolval} {* TODO: remove if always false *} {addJsDef stock_management=$PS_STOCK_MANAGEMENT|intval} {addJsDef taxRate=$tax_rate|floatval} {addJsDefL name=doesntExist}{l s='This combination does not exist for this product. Please select another combination.' js=1}{/addJsDefL} {addJsDefL name=doesntExistNoMore}{l s='This product is no longer in stock' js=1}{/addJsDefL} {addJsDefL name=doesntExistNoMoreBut}{l s='with those attributes but is available with others.' js=1}{/addJsDefL} {addJsDefL name=fieldRequired}{l s='Please fill in all the required fields before saving your customization.' js=1}{/addJsDefL} {addJsDefL name=uploading_in_progress}{l s='Uploading in progress, please be patient.' js=1}{/addJsDefL} {addJsDefL name='product_fileDefaultHtml'}{l s='No file selected' js=1}{/addJsDefL} {addJsDefL name='product_fileButtonHtml'}{l s='Choose File' js=1}{/addJsDefL} {addJsDef productColumns=$columns} {/strip} {/if}
 
Respondido : 26/10/2016 9:05 pm
Pepe
 Pepe
Respuestas: 41133
Illustrious Member Admin
 

Hola Santiago.

Prueba a eliminar la primera linea ' {if $product->description_short || $packItems|@count > 0} '
El parámetro $packItems|@count > 0 es el que le indica si se tiene que mostrar o no.

Recuerda eliminar el ultimo {/if} que tienes después de {/if}

ya que ese cierre pertenece a la linea que eliminamos.

Comprueba si con eso se muestra bien.

Nota: Recuerda realizar una copia del archivo antes de cualquier modificación, solo con un copia y pega en el block de notas tendrás suficiente para dejarlo como estaba anteriormente.

Un saludo


 
Respondido : 27/10/2016 12:22 pm
Respuestas: 30
Eminent Member
Topic starter
 

Hola Pepe
gracias, no funciona... si no estás logueado no lo muestra, solo logueado he identificado como cliente muestra la descripción corta.

yo creo que el problema no está el código que pego, sino que está en que de alguna manera identifica esa parte del código como como si fuera un precio y sólo se lo muestra a los logueados.

Por ejemplo si pego el código para imprimir la descipción corta al final del product.tpl me la muestra siempre, sea o no sea cliente logueado, pero al ponerlo en la zona en esa linea no lo hace.

El tema es que necesito que la descripción corta se muestre entre la imagen del producto y el bloque de precios y carrito, al estilo del theme original

Alguna idea???


 
Respondido : 27/10/2016 1:57 pm
Jhon
 Jhon
Respuestas: 44989
Illustrious Member Moderator
 

Hola

Envía el archivo que estas modificiando para verificar, es posible que tengas que insertarlo en algun otro lugar.
Puedes adjuntar el archivo en formato .zip

Saludos.


 
Respondido : 27/10/2016 5:17 pm
Respuestas: 30
Eminent Member
Topic starter
 

ok, adjunto
si quieres puedes ver el problema en http://areab2b.lenubu.com/es/inicio/8-classic-7-speed.html
y loguearte y desloguearte con mail: prueba@prueba.com y password: prueba


 
Respondido : 27/10/2016 5:26 pm
Jhon
 Jhon
Respuestas: 44989
Illustrious Member Moderator
 

Hola

No se adjuntó, envíalo nuevamente, o mejor subelo a dropbox y envía la url

Saludos.


 
Respondido : 27/10/2016 9:42 pm
Página 1 / 2