X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Modifying product page header (https://forum.x-cart.com/showthread.php?t=17883)

superfish 11-10-2005 02:53 PM

Modifying product page header
 
I currently have the following code in my head.tpl page:

Code:

{if $main eq "manufacturer_products"}
<table cellspacing="0" cellpadding="0" border="0" width="800">
        <tr>
                <td>[img]{$ImagesDir}/spacer.gif[/img]</td>
        </tr>
        <tr>
                <td>[img]{$ImagesDir}/header/header_{$manufacturerid}.jpg[/img]</td>
        </tr>
</table>{/if}


It works great at advertising the different manufacturers on their manufacturer page - is there a way to modify this so that it will appear on product pages? Each product only has one manufacturer, so it stands to reason it's a simple adjustment in the code. Any help would be appreciated!

Matt

superfish 11-11-2005 02:41 PM

Figured it out. Here's the info in case you're curious:

Code:

{if $product.manufacturerid ne ""}
<table cellspacing="0" cellpadding="0" border="0" width="800">
        <tr>
                <td>[img]{$ImagesDir}/spacer.gif[/img]</td>
        </tr>
        <tr>
                <td>[img]{$ImagesDir}/header/header_{$product.manufacturerid}.jpg[/img]</td>
        </tr>
</table>{/if}


Modify the HTML to your needs. :)


All times are GMT -8. The time now is 10:27 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.