Forums / General Questions / Manufacturers ID...

Manufacturers ID...

Locked

Started by alex_clarke on 7 Oct 2006, 9:18 PM · Views: 1,364

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
7 Oct 2006, 9:18 PM
#1
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Manufacturers ID...

Is it possible to find out the manufactures ID at product page level?

I would like to display the manufacturers name on the product page (which I have done), but I am also planning to link this to the manufacturers products on my site. Very similar to the Manufacturers sidebox.

Any ideas?

My Contributions: Zen Lightbox | Best Sellers Reloaded

11 Oct 2006, 9:37 PM
#2
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Manufacturers ID...

Ok, I've tried using $manufacturers_id in my php code and this doesn't work! Strange thing is that $manufacturers_name works fine!!

Any ideas?

My Contributions: Zen Lightbox | Best Sellers Reloaded

11 Oct 2006, 9:50 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Manufacturers ID...

Did you try:
$product_info->fields['manufacturers_id']

$manufacturers_name is a variable that has been set from: $product_info->fields['manufacturers_name']

as the variable is much easier to write and remember ...

The manufacturers_id does not have a variable of its own set at this time ... but it is still available by using the:
$product_info->fields['manufacturers_id']

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Oct 2006, 9:56 PM
#4
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Manufacturers ID...

Nice!

It worked. :)

As you can see I'll a little n00bish at php and sql stuff, but I'm sure learning.

Thanks for your help!

My Contributions: Zen Lightbox | Best Sellers Reloaded