Jump to content

SOLUCIONADO Descripción Corta NO se visualiza


Recommended Posts

Hola, tengo problema con la descripción corta.

No obstante completar el campo de descripción corta del producto y guardarse correctamente, no se visualiza en la página.

Entiendo que debe ser un tema de configuracion de TPL de mi tema (Griffon Shop) o algun módulo que lo bloquea, pero hasta ahora no he podido dar con la solución. 

Mas abajo copio el archivo ProductList.tpl de mi tema, por las dudas que el problema este ahí.

Espero la ayuda de alguno de ustedes. De antemano gracias

{if isset($products) && $products}
  {*define number of products per line in other page for desktop*}
  {if $page_name !='category'}
    {if ($hide_left_column || $hide_right_column) && ($hide_left_column !='true' || $hide_right_column !='true')}   {* left or right column *}
      {assign var='nbItemsPerLine' value=3}
      {assign var='nbItemsPerLineTablet' value=2}
      {assign var='nbItemsPerLineMobile' value=2}
    {elseif ($hide_left_column && $hide_right_column) && ($hide_left_column =='true' && $hide_right_column =='true')} {* no columns *}
      {assign var='nbItemsPerLine' value=4}
      {assign var='nbItemsPerLineTablet' value=3}
      {assign var='nbItemsPerLineMobile' value=2}
    {else}                                                        {* left and right column *}
      {assign var='nbItemsPerLine' value=2}
      {assign var='nbItemsPerLineTablet' value=1}
      {assign var='nbItemsPerLineMobile' value=2}
    {/if}
  {else}                                                          {* category page *}
    {assign var='nbItemsPerLine' value=3}
    {assign var='nbItemsPerLineTablet' value=2}
    {assign var='nbItemsPerLineMobile' value=2}
  {/if}
  {*define numbers of product per line in other page for tablet*}
  
  {assign var='nbLi' value=$products|@count}
  {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
  {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
  
  <!-- Products list -->
  <ul{if isset($id) && $id} id="{$id}"{/if} class="product_list grid row{if isset($class) && $class} {$class}{/if}">
    {foreach from=$products item=product name=products}
      {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo}
      {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
      {math equation="(total%perLineM)" total=$smarty.foreach.products.total perLineM=$nbItemsPerLineMobile assign=totModuloMobile}
      {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
      {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
      {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if}
      <li class="ajax_block_product col-xs-6 col-sm-{12/$nbItemsPerLineTablet} col-md-{12/$nbItemsPerLine}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}">
        <div class="product-container" itemscope itemtype="https://schema.org/Product">
          <div class="left-block">
            <div class="product-image-container">
              <a class="product_img_link"  href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url">
                <img class="replace-2x img-responsive" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'tm_home_default')|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" itemprop="image" />
                {hook h="displayProductListImages" product=$product}
              </a>
              <div class="button-container">
                {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
                  {if ($product.allow_oosp || $product.quantity > 0)}
                    {capture}add=1&amp;id_product={$product.id_product|intval}{if isset($product.id_product_attribute) && $product.id_product_attribute}&amp;ipa={$product.id_product_attribute|intval}{/if}{if isset($static_token)}&amp;token={$static_token}{/if}{/capture}
                    {if (!isset($product.customization_required) || !$product.customization_required)}
                      <a class="ajax_add_to_cart_button btn btn-default {if $page_name != 'index'}responsive-btn{/if}" href="{$link->getPageLink('cart', true, NULL, $smarty.capture.default, false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product-attribute="{$product.id_product_attribute|intval}" data-id-product="{$product.id_product|intval}" data-minimal_quantity="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity >= 1}{$product.product_attribute_minimal_quantity|intval}{else}{$product.minimal_quantity|intval}{/if}">
                        <span>{l s='Add to cart'}</span>
                      </a>
                    {else}
                      <a class="btn btn-default customization {if $page_name != 'index'}responsive-btn{/if}" href="{$product.link|escape:'html':'UTF-8'}"  title="{l s='Customize'}">
                        <span>{l s='Customize'}</span>
                      </a>
                    {/if}
                  {/if}
                {/if}
                {if isset($quick_view) && $quick_view}
                  <a class="quick-view" href="{$product.link|escape:'html':'UTF-8'}" data-href="{$product.link|escape:'html':'UTF-8'}">
                    <span>{l s='Quick view'}</span>
                  </a>
                {/if}
                {if (!isset($product.customization_required) || !$product.customization_required)}
                  <a itemprop="url" class="lnk_view btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}">
                    <span>{if (isset($product.customization_required) && $product.customization_required)}{l s='Customize'}{else}{l s='More'}{/if}</span>
                  </a>
                {/if}
              </div>
              {if isset($product.new) && $product.new == 1}
                <a class="new-box" href="{$product.link|escape:'html':'UTF-8'}">
                  <span class="new-label">{l s='New'}</span>
                </a>
              {/if}
              {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
                <a class="sale-box" href="{$product.link|escape:'html':'UTF-8'}">
                  <span class="sale-label">{l s='Sale!'}</span>
                </a>
              {/if}
            </div>
            {if isset($product.is_virtual) && !$product.is_virtual}{hook h="displayProductDeliveryTime" product=$product}{/if}
            {hook h="displayProductPriceBlock" product=$product type="weight"}
          </div>
          <div class="right-block">
            <h5 itemprop="name">
              {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
              <a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" >
                <span class="list-name">{$product.name|truncate:100:'...'|escape:'html':'UTF-8'}</span>
                <span class="grid-name">{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}</span>
              </a>
            </h5>
            {capture name='displayProductListReviews'}{hook h='displayProductListReviews' product=$product}{/capture}
            {if $smarty.capture.displayProductListReviews}
              <div class="hook-reviews">
                {hook h='displayProductListReviews' product=$product}
              </div>
            {/if}
             <p class="product-desc" itemprop="description">
                <span class="list-desc">{$product.description_short|strip_tags:'UTF-8'|truncate:140:'...'}</span>
                <span class="grid-desc">{$product.description_short|strip_tags:'UTF-8'|truncate:40:'...'}</span>
            </p>
            {if (!$PS_CATALOG_MODE && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
              <div class="content_price {if isset($product.specific_prices) && $product.specific_prices}specific_prices{/if}">
                {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
                  {hook h="displayProductPriceBlock" product=$product type='before_price'}
                  {if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}
                    {hook h="displayProductPriceBlock" product=$product type="old_price"}
                    <span class="old-price product-price">
                      {displayWtPrice p=$product.price_without_reduction}
                    </span>
                    {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"}
                  {/if}
                  <span class="price product-price{if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} product-price-new{/if}">
                    {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
                  </span>
                  {if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}
                    {if $product.specific_prices.reduction_type == 'percentage'}
                      <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span>
                    {/if}
                  {/if}
                  {hook h="displayProductPriceBlock" product=$product type="price"}
                  {hook h="displayProductPriceBlock" product=$product type="unit_price"}
                  {hook h="displayProductPriceBlock" product=$product type='after_price'}
                {/if}
              </div>
            {/if}
            {if isset($product.color_list)}
              <div class="color-list-container">{$product.color_list}</div>
            {/if}
            <div class="product-flags">
              {if (!$PS_CATALOG_MODE && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
                {if isset($product.online_only) && $product.online_only}
                  <span class="online_only">{l s='Online only'}</span>
                {/if}
              {/if}
              {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
              {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
                <span class="discount">{l s='Reduced price!'}</span>
              {/if}
            </div>
            {if (!$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
              {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}
                <span class="availability">
                  {if ($product.allow_oosp || $product.quantity > 0)}
                    <span class="{if $product.quantity <= 0 && isset($product.allow_oosp) && !$product.allow_oosp} label-danger{elseif $product.quantity <= 0} label-warning{else} label-success{/if}">
                      {if $product.quantity <= 0}{if $product.allow_oosp}{if isset($product.available_later) && $product.available_later}{$product.available_later}{else}{l s='In Stock'}{/if}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now}{else}{l s='In Stock'}{/if}{/if}
                    </span>
                  {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}
                    <span class="label-warning">
                      {l s='Product available with different options'}
                    </span>
                  {else}
                    <span class="label-danger">
                      {l s='Out of stock'}
                    </span>
                  {/if}
                </span>
              {/if}
            {/if}
          </div>
          <div class="functional-buttons clearfix">
            {hook h='displayProductListFunctionalButtons' product=$product}
            {if isset($comparator_max_item) && $comparator_max_item}
              <div class="compare">
                <a class="add_to_compare" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product}" title="{l s='Add to Compare'}">{l s='Add to Compare'}</a>
              </div>
            {/if}
          </div>
        </div><!-- .product-container> -->
      </li>
    {/foreach}
  </ul>
  {addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL}
  {addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL}
  {addJsDef comparator_max_item=$comparator_max_item}
  {addJsDef comparedProductsIds=$compared_products}
  {addJsDef nbItemsPerLine=$nbItemsPerLine}
  {addJsDef nbItemsPerLineTablet=$nbItemsPerLineTablet}
  {addJsDef nbItemsPerLineMobile=$nbItemsPerLineMobile}
{/if}

 

 

 

Edited by Luis (see edit history)
Link to comment
Share on other sites

hace 9 horas, Luis dijo:

Hola, tengo problema con la descripción corta.

No obstante completar el campo de descripción corta del producto y guardarse correctamente, no se visualiza en la página.

Entiendo que debe ser un tema de configuracion de TPL de mi tema (Griffon Shop) o algun módulo que lo bloquea, pero hasta ahora no he podido dar con la solución. 

Mas abajo copio el archivo ProductList.tpl de mi tema, por las dudas que el problema este ahí.

Espero la ayuda de alguno de ustedes. De antemano gracias

{if isset($products) && $products}
  {*define number of products per line in other page for desktop*}
  {if $page_name !='category'}
    {if ($hide_left_column || $hide_right_column) && ($hide_left_column !='true' || $hide_right_column !='true')}   {* left or right column *}
      {assign var='nbItemsPerLine' value=3}
      {assign var='nbItemsPerLineTablet' value=2}
      {assign var='nbItemsPerLineMobile' value=2}
    {elseif ($hide_left_column && $hide_right_column) && ($hide_left_column =='true' && $hide_right_column =='true')} {* no columns *}
      {assign var='nbItemsPerLine' value=4}
      {assign var='nbItemsPerLineTablet' value=3}
      {assign var='nbItemsPerLineMobile' value=2}
    {else}                                                        {* left and right column *}
      {assign var='nbItemsPerLine' value=2}
      {assign var='nbItemsPerLineTablet' value=1}
      {assign var='nbItemsPerLineMobile' value=2}
    {/if}
  {else}                                                          {* category page *}
    {assign var='nbItemsPerLine' value=3}
    {assign var='nbItemsPerLineTablet' value=2}
    {assign var='nbItemsPerLineMobile' value=2}
  {/if}
  {*define numbers of product per line in other page for tablet*}
  
  {assign var='nbLi' value=$products|@count}
  {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
  {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
  
  <!-- Products list -->
  <ul{if isset($id) && $id} id="{$id}"{/if} class="product_list grid row{if isset($class) && $class} {$class}{/if}">
    {foreach from=$products item=product name=products}
      {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo}
      {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
      {math equation="(total%perLineM)" total=$smarty.foreach.products.total perLineM=$nbItemsPerLineMobile assign=totModuloMobile}
      {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
      {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
      {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if}
      <li class="ajax_block_product col-xs-6 col-sm-{12/$nbItemsPerLineTablet} col-md-{12/$nbItemsPerLine}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}">
        <div class="product-container" itemscope itemtype="https://schema.org/Product">
          <div class="left-block">
            <div class="product-image-container">
              <a class="product_img_link"  href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url">
                <img class="replace-2x img-responsive" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'tm_home_default')|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" itemprop="image" />
                {hook h="displayProductListImages" product=$product}
              </a>
              <div class="button-container">
                {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
                  {if ($product.allow_oosp || $product.quantity > 0)}
                    {capture}add=1&amp;id_product={$product.id_product|intval}{if isset($product.id_product_attribute) && $product.id_product_attribute}&amp;ipa={$product.id_product_attribute|intval}{/if}{if isset($static_token)}&amp;token={$static_token}{/if}{/capture}
                    {if (!isset($product.customization_required) || !$product.customization_required)}
                      <a class="ajax_add_to_cart_button btn btn-default {if $page_name != 'index'}responsive-btn{/if}" href="{$link->getPageLink('cart', true, NULL, $smarty.capture.default, false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product-attribute="{$product.id_product_attribute|intval}" data-id-product="{$product.id_product|intval}" data-minimal_quantity="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity >= 1}{$product.product_attribute_minimal_quantity|intval}{else}{$product.minimal_quantity|intval}{/if}">
                        <span>{l s='Add to cart'}</span>
                      </a>
                    {else}
                      <a class="btn btn-default customization {if $page_name != 'index'}responsive-btn{/if}" href="{$product.link|escape:'html':'UTF-8'}"  title="{l s='Customize'}">
                        <span>{l s='Customize'}</span>
                      </a>
                    {/if}
                  {/if}
                {/if}
                {if isset($quick_view) && $quick_view}
                  <a class="quick-view" href="{$product.link|escape:'html':'UTF-8'}" data-href="{$product.link|escape:'html':'UTF-8'}">
                    <span>{l s='Quick view'}</span>
                  </a>
                {/if}
                {if (!isset($product.customization_required) || !$product.customization_required)}
                  <a itemprop="url" class="lnk_view btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}">
                    <span>{if (isset($product.customization_required) && $product.customization_required)}{l s='Customize'}{else}{l s='More'}{/if}</span>
                  </a>
                {/if}
              </div>
              {if isset($product.new) && $product.new == 1}
                <a class="new-box" href="{$product.link|escape:'html':'UTF-8'}">
                  <span class="new-label">{l s='New'}</span>
                </a>
              {/if}
              {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
                <a class="sale-box" href="{$product.link|escape:'html':'UTF-8'}">
                  <span class="sale-label">{l s='Sale!'}</span>
                </a>
              {/if}
            </div>
            {if isset($product.is_virtual) && !$product.is_virtual}{hook h="displayProductDeliveryTime" product=$product}{/if}
            {hook h="displayProductPriceBlock" product=$product type="weight"}
          </div>
          <div class="right-block">
            <h5 itemprop="name">
              {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
              <a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" >
                <span class="list-name">{$product.name|truncate:100:'...'|escape:'html':'UTF-8'}</span>
                <span class="grid-name">{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}</span>
              </a>
            </h5>
            {capture name='displayProductListReviews'}{hook h='displayProductListReviews' product=$product}{/capture}
            {if $smarty.capture.displayProductListReviews}
              <div class="hook-reviews">
                {hook h='displayProductListReviews' product=$product}
              </div>
            {/if}
             <p class="product-desc" itemprop="description">
                <span class="list-desc">{$product.description_short|strip_tags:'UTF-8'|truncate:140:'...'}</span>
                <span class="grid-desc">{$product.description_short|strip_tags:'UTF-8'|truncate:40:'...'}</span>
            </p>
            {if (!$PS_CATALOG_MODE && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
              <div class="content_price {if isset($product.specific_prices) && $product.specific_prices}specific_prices{/if}">
                {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
                  {hook h="displayProductPriceBlock" product=$product type='before_price'}
                  {if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}
                    {hook h="displayProductPriceBlock" product=$product type="old_price"}
                    <span class="old-price product-price">
                      {displayWtPrice p=$product.price_without_reduction}
                    </span>
                    {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"}
                  {/if}
                  <span class="price product-price{if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} product-price-new{/if}">
                    {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
                  </span>
                  {if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}
                    {if $product.specific_prices.reduction_type == 'percentage'}
                      <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span>
                    {/if}
                  {/if}
                  {hook h="displayProductPriceBlock" product=$product type="price"}
                  {hook h="displayProductPriceBlock" product=$product type="unit_price"}
                  {hook h="displayProductPriceBlock" product=$product type='after_price'}
                {/if}
              </div>
            {/if}
            {if isset($product.color_list)}
              <div class="color-list-container">{$product.color_list}</div>
            {/if}
            <div class="product-flags">
              {if (!$PS_CATALOG_MODE && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
                {if isset($product.online_only) && $product.online_only}
                  <span class="online_only">{l s='Online only'}</span>
                {/if}
              {/if}
              {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
              {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
                <span class="discount">{l s='Reduced price!'}</span>
              {/if}
            </div>
            {if (!$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
              {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}
                <span class="availability">
                  {if ($product.allow_oosp || $product.quantity > 0)}
                    <span class="{if $product.quantity <= 0 && isset($product.allow_oosp) && !$product.allow_oosp} label-danger{elseif $product.quantity <= 0} label-warning{else} label-success{/if}">
                      {if $product.quantity <= 0}{if $product.allow_oosp}{if isset($product.available_later) && $product.available_later}{$product.available_later}{else}{l s='In Stock'}{/if}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now}{else}{l s='In Stock'}{/if}{/if}
                    </span>
                  {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}
                    <span class="label-warning">
                      {l s='Product available with different options'}
                    </span>
                  {else}
                    <span class="label-danger">
                      {l s='Out of stock'}
                    </span>
                  {/if}
                </span>
              {/if}
            {/if}
          </div>
          <div class="functional-buttons clearfix">
            {hook h='displayProductListFunctionalButtons' product=$product}
            {if isset($comparator_max_item) && $comparator_max_item}
              <div class="compare">
                <a class="add_to_compare" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product}" title="{l s='Add to Compare'}">{l s='Add to Compare'}</a>
              </div>
            {/if}
          </div>
        </div><!-- .product-container> -->
      </li>
    {/foreach}
  </ul>
  {addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL}
  {addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL}
  {addJsDef comparator_max_item=$comparator_max_item}
  {addJsDef comparedProductsIds=$compared_products}
  {addJsDef nbItemsPerLine=$nbItemsPerLine}
  {addJsDef nbItemsPerLineTablet=$nbItemsPerLineTablet}
  {addJsDef nbItemsPerLineMobile=$nbItemsPerLineMobile}
{/if}

 

 

 

En tu código que pegas, lo veo aquí:

<p class="product-desc" itemprop="description">
                <span class="list-desc">{$product.description_short|strip_tags:'UTF-8'|truncate:140:'...'}</span>
                <span class="grid-desc">{$product.description_short|strip_tags:'UTF-8'|truncate:40:'...'}</span>
            </p>

Ahora mismo, aparece "cortada" como puedes ver con el "truncate", si colocas un tamaño mayor (valor mayor) del truncate, la descripción se cortara más tarde, y si colocas un valor mas pequeña, la descripción se cortara antes. También puedes quitar directamente el truncate, para que se ve a toda la descripción corta. Lo que ocurre es que muchas plantillas la ocultan (entiendo que hablamos de los listados de los productos) o la cortan para que no se vean una descripción más alta que otra y la dejan ajustada a un renglón.

¿O directamente no se ve nada de nada? (Si no se ve nada de nada, deja la dirección de tu web, para que los usuarios del foro vean si es porque esta oculta por CSS en tu plantilla, etc..)

Link to comment
Share on other sites

Hola Nadie, te confirmo que directamente no se ve nada. La pagina la tengo oculta ya que esta en construcción, pero adjunto foto de pantallas de como se visualiza el producto en la pagina. En caso de no se suficiente, avisame y pongo publica la pagina para este fin. 

Por otro lado, adjunto los archivos CSS product y product list. Los he revisado, pero quizás mi inexperiencia no me deja ver el error. 

Agradezco tu ayuda. 

Vista del producto (rapida y completa).pptx

product_list.css

product.css

Link to comment
Share on other sites

hace 1 hora, Luis dijo:

Hola Nadie, te confirmo que directamente no se ve nada. La pagina la tengo oculta ya que esta en construcción, pero adjunto foto de pantallas de como se visualiza el producto en la pagina. En caso de no se suficiente, avisame y pongo publica la pagina para este fin. 

Por otro lado, adjunto los archivos CSS product y product list. Los he revisado, pero quizás mi inexperiencia no me deja ver el error. 

Agradezco tu ayuda. 

Vista del producto (rapida y completa).pptx

product_list.css

product.css

Pero esa captura que pegas es de la ficha del producto, no del listado de productos.  

Ficha producto -> product.tpl
Listado productos -> product-list.tpl

En el css product_list.css que me pasas veo:

ul.product_list.list > li .product-desc span.grid-desc {
    display: none; }

y

 ul.product_list.list > li .center-block .product-desc {
    display: none; } 

Vamos que en los listados de productos esta ocultada con el display:none,

---

Pero en el word que me pasas solo veo la ficha del producto y la vista rapida, que son cosas diferente a ver los productos en los listados de productos.

Para la ficha del producto, enseñame la demo de la plantilla en la ficha para que vea si esta oculta, y busca en el product.tpl si existe alguna linea parecida a la siguiente (en PS 1.6):

{$product->description_short}

 

Link to comment
Share on other sites

En 18/4/2018 a las 11:33 PM, Luis dijo:

Hola Nadie, gracias por la aclararme la diferencia de listado y ficha de producto.

En el product.tpl no existe la linea que me señalas. Lo adjunto para que lo puedas ver.

Te paso el link del demo de la plantilla que estoy utilizando. En el demo la descripción corta esta oculta,  

 

https://addons.prestashop.com/demo/FO15839.html

product.tpl

He visto tu fichero "product.tpl" y no tienes ninguna referencia a la instrucción:

 

{$product->description_short}

Añade debajo de:

      <h1 itemprop="name" class="mobile-product-name">{$product->name|escape:'html':'UTF-8'}</h1>

que corresponde al título del mismo, el siguiente código (sacado de la plantilla por defecto)

	{if $product->description_short}
						<div id="short_description_content" class="rte align_justify" itemprop="description">{$product->description_short}</div>
					{/if}

Recuerda limpiar caché en la pestaña Parámetros Avanzados -> Rendimiento

Y comprueba si se ve o no..

Edited by nadie (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

Hola Nadie, excelente. Hice las modificaciones que me señalaste. Apareció pero fuera de lugar (arriba de la foto principal de producto). Pero lo solucione añadiendolo debajo de la linea siguiente y funcionó.

   <span class="editable">{l s='Refurbished'}</span>
              {/if}

Solo me falta centrarla bien ya que el margen izquierdo queda cortado. Esto lo  ya lo estoy solucionando modificando el archivo product.CSS.

Muchisimas gracias por tu ayuda y doy por solucionado el asunto.

Saludos,

Link to comment
Share on other sites

  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...