Melinda Posted July 8, 2009 Share Posted July 8, 2009 Hi,How do you move the "more info" section above the "in the same category" section on the product page?Thanks! Link to comment Share on other sites More sharing options...
Melinda Posted July 8, 2009 Author Share Posted July 8, 2009 Well I tried something in the themes/xxxx/product.tpl and it seems to work but don't know why this works. Could someone please explain why it works?Moved <!-- description and features --> {if $product->description || $features || $accessories || $HOOK_PRODUCT_TAB || $attachments} {if $product->description}{l s='More info'}{/if} {if $features}{l s='Data sheet'}{/if} {if $attachments}{l s='Download'}{/if} {if isset($accessories) AND $accessories}{l s='Accessories'}{/if} {$HOOK_PRODUCT_TAB} {if $product->description} <!-- full description --> {$product->description} {/if} {if $features} <!-- product's features --> {foreach from=$features item=feature} {$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'} {/foreach} {/if} {if $attachments} {foreach from=$attachments item=attachment} {$attachment.name|escape:'htmlall':'UTF-8'} {$attachment.description|escape:'htmlall':'UTF-8'} {/foreach} {/if} {if isset($accessories) AND $accessories} <!-- accessories --> {foreach from=$accessories item=accessory name=accessories_list} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} {$accessory.name|truncate:22:'...'|escape:'htmlall':'UTF-8'} getImageLink($accessory.link_rewrite, $accessory.id_image, 'medium')}" alt="{$accessory.legend|escape:'htmlall':'UTF-8'}" /> {$accessory.description_short|strip_tags|truncate:100:'...'} {displayWtPrice p=$accessory.price} {l s='View'} {l s='Add to cart'} {/foreach} {/if} {$HOOK_PRODUCT_TAB_CONTENT} {/if} To about line 292 directly below: and right above: {if $quantity_discounts} <!-- quantity discount --> Or I noticed if this section is moved right above: {$HOOK_PRODUCT_FOOTER} Then it works also ... must have something to do with being above the footer hook? Link to comment Share on other sites More sharing options...
cloudseat Posted July 8, 2009 Share Posted July 8, 2009 Thanks Melinda! I've been trying to do this for ages! Link to comment Share on other sites More sharing options...
Recommended Posts