Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding new fields in database


ibenschop

Recommended Posts

Hi Guys,

 

I want to add new fields in my database table products.

I am a newb to programming. Any hints tips?

Oh yah the field has to be editable in admin and has to be viewed on the site.

 

Thanks Ian

Link to comment
Share on other sites

Depending on the table the field is going in.... You just need to make sure the select sql statements and the update sql statments where you want to view and update include that field. Plus you need to show the field and put in the forum that field so it can get updated. So, it really depends on the table and were you want to put it. Once you figure that out, you can edit the sql statements to include that field.

Just someone trying to make sense of all of this code.

Link to comment
Share on other sites

Depending on the table the field is going in.... You just need to make sure the select sql statements and the update sql statments where you want to view and update include that field.  Plus you need to show the field and put in the forum that field so it can get updated.  So, it really depends on the table and were you want to put it. Once you figure that out, you can edit the sql statements to include that field.

OK i want to add a nw record field in table products. Name in stock.

It has to be viewed when selecting a product on the website. And it has t be edited in de admin panel. So which files do i have to edit.

 

Thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...