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)
-   -   Need to get a variable value (https://forum.x-cart.com/showthread.php?t=16624)

STORed 09-15-2005 04:29 PM

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?

Dongan 09-15-2005 08:29 PM

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

Could u pls elaborate on it?

shan 09-16-2005 02:06 AM

this will help

http://forum.x-cart.com/viewtopic.php?t=17601

STORed 09-16-2005 12:03 PM

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?

STORed 09-16-2005 01:41 PM

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... :(

shan 09-16-2005 03:21 PM

when you suss something out its good if you post what you did for others to see later


All times are GMT -8. The time now is 03:41 AM.

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