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

Need to get a variable value

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-15-2005, 04:29 PM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default Need to get a variable value

Hi,

I need to insert a name of the manufacturer. I've tried:

{$manufacturers_menu.manufacturer}

but it doesn't seem to work. So I tested it like:

{$manufacturers_menu[1].manufacturer}

and got a name of one of the manufacturers. How can I get the right name without hard-coding an array value?
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #2  
Old 09-15-2005, 08:29 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default

The code may vary dependiing on the place where you want to put.

Could u pls elaborate on it?
Reply With Quote
  #3  
Old 09-16-2005, 02:06 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

this will help

http://forum.x-cart.com/viewtopic.php?t=17601
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 09-16-2005, 12:03 PM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default

I'd like to access manufacturer's name name from skin1/dialog_product.tpl

dialog_product.tpl is my modified version of dialog.tpl and appears only on product pages.

Quote:
then switch on the debug console

Where do I do that?
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #5  
Old 09-16-2005, 01:41 PM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default

OK, After some search on these forums i was able to get manufacturer's name. I'm off not to looking for how to get product type...
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #6  
Old 09-16-2005, 03:21 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

when you suss something out its good if you post what you did for others to see later
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 08:24 PM.

   

 
X-Cart forums © 2001-2020