Jump to content

How to adapt product.tpl


Recommended Posts

This is a part of the product.tpl of my theme.

{if isset($packItems) && $packItems|@count > 0}
	<div id="blockpack" class="block">
		<h2>{l s='Pack content'}</h2>
        <ul id="pack_items">
        {foreach from=$packItems item=packitem name=$packitemlist}
        <li class="clearfix">
<a href="{$packitemLink|escape:'htmlall':'UTF-8'}" title="{$packitem.legend|escape:'htmlall':'UTF-8'}" class="product_image"><img src="{$link->getImageLink($packitem.link_rewrite, $packitem.id_image, 'small')}" alt="{$packitem.legend|escape:'htmlall':'UTF-8'}" />
<div>
<h3><a href="{$packitemLink|escape:'htmlall':'UTF-8'}">{$packitem.name|truncate:34:'...':true|escape:'htmlall':'UTF-8'}</a></h3>
							<p class="product_accessories_price">
								{if $packitem.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<span class="price_pack">{if $priceDisplay != 1}{displayWtPrice p=$packitem.price}{else}{displayWtPrice p=$packitem.price_tax_exc}{/if}</span>
                                {if isset($packitem.reduction) && $packitem.reduction}
           <span class="old_price_pack">{convertPrice price=$packitem.price_without_reduction}</span>
           {/if}
                                {/if}
							</p></div>
</li>{/foreach}
</ul>
	</div>
{/if}

The links (of words and images) from the pack don't works. What could I change so it works?

 

Thanks a lot.

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