Product description in product box is not showen

Hi Experts,

i have really strange case by my shope:

i have 7 product categies = 7 webpages.

6 of them load the products list with 3 column product boxs with the following product attributes:

                     product–info
           1- class="product–image.
           2- class="product–rating-container.
           3- class=„product–price-info“.
           4-class=„product–actions“

so the product description is missing !! 

but one of categories page load the products list with 2 column product boxs with the following product attributes:

                   product–info
           1- class="product–image.
           2- class="product–rating-container.
     — >  3- class="product–description.
           4-class=„product–price-info“.
           5-class=„product–actions“

in this list the product description is shown !! and everything is okay !

 

the source code for all categories and pages is the same the path of it is:

\themes\Frontend\Bare\frontend\listing\product-box\box-basic.tpl  

 

{namespace name="frontend/listing/box_article"}

{block name="frontend_listing_box_article"}
    

        {block name="frontend_listing_box_article_content"}
            

                {* Product box badges - highlight, newcomer, ESD product and discount *}
                {block name='frontend_listing_box_article_badges'}
                    {include file="frontend/listing/product-box/product-badges.tpl"}
                {/block}

                {block name='frontend_listing_box_article_info_container'}
                    

                        {* Product image *}
                        {block name='frontend_listing_box_article_picture'}
                            {include file="frontend/listing/product-box/product-image.tpl"}
                        {/block}

                        {* Customer rating for the product *}
                        {block name='frontend_listing_box_article_rating'}
                            {if !{config name=VoteDisable}}
                                
                                    {if $sArticle.sVoteAverage.average}
                                        {include file='frontend/_includes/rating.tpl' points=$sArticle.sVoteAverage.average type="aggregated" label=false microData=false}
                                    {/if}
                                
                            {/if}
                        {/block}

                        {* Product name *}
                        {block name='frontend_listing_box_article_name'}
                            
                                {$sArticle.articleName|truncate:50|escapeHtml}
                            
                        {/block}

                        {* Variant description *}
                        {block name='frontend_listing_box_variant_description'}
                            {if $sArticle.attributes.swagVariantConfiguration}
                                
                                    
                                        {foreach $sArticle.attributes.swagVariantConfiguration->get('value') as $group}
                                            
                                                {$group.groupName}: {$group.optionName} {if !$group@last}|{/if}
                                            
                                        {/foreach}
                                    
                                
                            {/if}
                        {/block}

                        {* Product description *}
                        {block name='frontend_listing_box_article_description'}
                            
                                {$sArticle.description_long|strip_tags|truncate:240}
                            
                        {/block}

                        {block name='frontend_listing_box_article_price_info'}
                            

                                {* Product price - Unit price *}
                                {block name='frontend_listing_box_article_unit'}
                                    {include file="frontend/listing/product-box/product-price-unit.tpl"}
                                {/block}

                                {* Product price - Default and discount price *}
                                {block name='frontend_listing_box_article_price'}
                                    {include file="frontend/listing/product-box/product-price.tpl"}
                                {/block}
                            
                        {/block}

                        {block name="frontend_listing_box_article_buy"}
                            {if {config name="displayListingBuyButton"}}
                                
                                    {if $sArticle.allowBuyInListing}
                                        {include file="frontend/listing/product-box/button-buy.tpl"}
                                    {else}
                                        {include file="frontend/listing/product-box/button-detail.tpl"}
                                    {/if}
                                
                            {/if}
                        {/block}

                        {* Product actions - Compare product, more information *}
                        {block name='frontend_listing_box_article_actions'}
                            {include file="frontend/listing/product-box/product-actions.tpl"}
                        {/block}
                    
                {/block}
            
        {/block}
    
{/block}

 

 

So i spent 2 day to find a solution and until now i couldnt … any body can help ! 

Thanks in Advanced

Hey,

did you checked the content from the variable sArticle.description_long ? If not you can check if with the following code:

{$sArticle.description_long|@print_r} 

Add this codeline to your template and look what comes out of it. If there is no output the variable is not filled with content what means the problems is deeper in the shopware system. 

You can also try to change the following codeline (Remove the strip_tags or truncate function):

{$sArticle.description_long|strip_tags|truncate:240}

Is your template the default shopware template or an custom theme?

Thanks ! i have found the solution …

i have added:

{block name=‘frontend_listing_box_article_description’}

{$sArticle.description_long|strip_tags|truncate:240}

in the following file:

 \themes\Frontend\Bare\frontend\listing\product-box\box-big-image.tpl

and now im able to see the description under the product image in the products list page.