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)
-   -   display manufacturer's logo that was upload via backend (https://forum.x-cart.com/showthread.php?t=61060)

plnewton 09-29-2011 04:09 PM

display manufacturer's logo that was upload via backend
 
What is the code I would use to display the manufacturer's logo I uploaded via the backend?

I want to display it on this page; customer_manufacturer_products.tpl


How would I go about this?

totaltec 09-29-2011 11:24 PM

Re: display manufacturer's logo that was upload via backend
 
It should be there already by default, the simplest code to display it would be:
<img src="{$manufacturer.image_url|amp}" />

Of course you should probably do some checking to see if they have an image and add an alt tag:
Code:

{if $manufacturer.image ne ''}
<img src="{$manufacturer.image_url|amp}" alt="{$manufacturer.manufacturer|escape}" />
{/if}


plnewton 09-30-2011 12:40 AM

Re: display manufacturer's logo that was upload via backend
 
Nevermind. I found the code as follows to work;

<img src="{$xcart_web_dir}/image.php?id={$manufacturerid}&type=M">

I couldn't get anything else to work.

gb2world 09-30-2011 11:35 AM

Re: display manufacturer's logo that was upload via backend
 
Read up on webmaster mode - you have a way to see all the smarty variable contents that are available on any page. Different pages have different variables available by default. To add your own, you need to modify the php files.


---


All times are GMT -8. The time now is 07:17 AM.

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