Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where to add/change the Manufacturers id?


Broadsword

Recommended Posts

Hi - this is probably somehting very basic but i can't seem to find the answer!

 

I want to add or change where certain images within my site link to - at present one image links to a 'manufacturer' with the id of '15', and takes the user to the relevant page. But i want to manually change the id from within the .php file so that the link goes to a different manufacturer.

 

However, i don't know how to add or change an id for a manufacturer.

 

If someone can explain how and where this is done that would be great.

 

Thanks

Link to comment
Share on other sites

You have to find where the code for the link is and look for something like manufacturer_id=XX, where XX is the id, in the link and change as you want.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

You have to find where the code for the link is and look for something like manufacturer_id=XX, where XX is the id, in the link and change as you want.

 

Jack

 

Hi - thanks for the reply.

 

Yes, ive found where the id is witin the .php file - but what i want to know is how this is generated, where do i see that id number 15 is for, say, Adidas, and how do i add or edit these id's?

Link to comment
Share on other sites

It's not a good idea to edit these id's manually, cause they're generated automatically by the system. If you edit them it may happen that 'adidas' becomes manufacturer of orange marmelade all of a sudden. And I guess that's not what you want to accomplish. Those id's are key values that are the basis for the whole system since they determine which cetagories contain which products and which manufacturers are assigned to them and so on.

 

Also they're not displayed in the admin section. If you want to know, which manufacturer has which ID, you got to look at the manufacturers table at the database.

Link to comment
Share on other sites

Hi - thanks for the reply.

 

Yes, ive found where the id is witin the .php file - but what i want to know is how this is generated, where do i see that id number 15 is for, say, Adidas, and how do i add or edit these id's?

You can view the id by going to admin->Catalog->Manufacturers, selecting one and looking at the url. The id will be displayed there. You can't change them unless you edit the database. Since the id is referenced by more than one table, you are asking for trouble in doing so. I don't see a point to changing the id's anyway. It won't make any difference to the code if the id is 1 or 100.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...