Jump to content

Show Shipping Details in Product Page


Recommended Posts

Hi,

I want to show Product Shipping Details like Width,Height,Depth and ... in Product Page.

But the problem is I don't know which Variables should I use to show this Informations in Product page!

Also , I do not want to use Features ($features) to show this informations becaus I already set them in Shipping Detail!

so, The question is , how can I found variables of width,height and depth and use them in Prestashop 1.6 Smarty engine ?! (product.tpl)

Thanks a lot

Link to comment
Share on other sites

There should already be a section for that on the product.tpl file

 

Looks like this:

 

        {if isset($features) && $features}

 

                    {foreach from=$features item=feature}

                        {if isset($feature.value)}

                          {$feature.name|escape:'html':'UTF-8'}

                          {$feature.value|escape:'html':'UTF-8'}
                        {/if}
 

  • Like 2
Link to comment
Share on other sites

In that case, you'll just need to use something like this:

{if isset($features) && $features}
  {foreach from=$features item=feature}
    {if isset($feature.value) && isset($feature.name) && ($feature.name == "NAME_OF_FEATURE_1_HERE" || $feature.name == "NAME_OF_FEATURE_2_HERE"}
      <br /><strong>{$feature.name|escape:'html':'UTF-8'}:</strong> {$feature.value|escape:'html':'UTF-8'}
    {/if}
  {/foreach}
{/if}

That will print out only the features whose names you put into that code there.. preformatted the html a little, but you'd need to change it to however you wanted to display it

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...