Jump to content

Add product reference to product list display in PS 1.7.3


Recommended Posts

Hi,

we are creating a new store on PS1.7.3 and on our old 1.6 we added some features on our product description so that user could see the warranty and reference code right away. But the file and code structure changed in 1.7 and we are not sure where we should place our custom code. the code looked like this.

 

                        {if isset($product.features)}
                                    {foreach from=$product.features item=feature}
                                        
                                        <p {if empty($feature.value) || !$feature.value} style="display: none;"{/if}>
                                        <label>{l s='Garantía: '} </label>
                                        <span class="editable" itemprop="sku">{$feature.value}</span>
                                        </p>
                                        
                                    {/foreach}
                        {/if}
                                
                        <p {if empty($product.reference) || !$product.reference} style="display: none;"{/if}>
                            <label>{l s='Referencia: '} </label>
                            <span class="editable" itemprop="sku">{$product.reference}</span>
                        </p>

We placed it right under the product name section but it does not work in 1.7 does anyone know how to achive this in 1.7?

Regards,

Ref&War.png

Link to comment
Share on other sites

  • 1 year later...
  • 5 months later...
  • 5 months later...
  • 3 months later...

hello

it's possible to add this code for product list and features? if yes can you help me please?

{if isset($product.features)}
                                    {foreach from=$product.features item=feature}
                                        
                                        <p {if empty($feature.value) || !$feature.value} style="display: none;"{/if}>
                                        <label>{l s='Garantía: '} </label>
                                        <span class="editable" itemprop="sku">{$feature.value}</span>
                                        </p>
                                        
                                    {/foreach}
                        {/if}
                                
                        <p {if empty($product.reference) || !$product.reference} style="display: none;"{/if}>
                            <label>{l s='Referencia: '} </label>
                            <span class="editable" itemprop="sku">{$product.reference}</span>
                        </p>

Link to comment
Share on other sites

On 10/30/2020 at 12:36 PM, guenievre said:

hello

it's possible to add this code for product list and features? if yes can you help me please?

{if isset($product.features)}
                                    {foreach from=$product.features item=feature}
                                        
                                        <p {if empty($feature.value) || !$feature.value} style="display: none;"{/if}>
                                        <label>{l s='Garantía: '} </label>
                                        <span class="editable" itemprop="sku">{$feature.value}</span>
                                        </p>
                                        
                                    {/foreach}
                        {/if}
                                
                        <p {if empty($product.reference) || !$product.reference} style="display: none;"{/if}>
                            <label>{l s='Referencia: '} </label>
                            <span class="editable" itemprop="sku">{$product.reference}</span>
                        </p>

Maybe this will help

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...