Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

display manufacturer's logo that was upload via backend

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-29-2011, 04:09 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default 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?
__________________
Version 4.4.3
Reply With Quote
  #2  
Old 09-29-2011, 11:24 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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}
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 09-30-2011, 12:40 AM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default 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.
__________________
Version 4.4.3
Reply With Quote
  #4  
Old 09-30-2011, 11:35 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

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


---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020