Anyone have a how to on how I can add a field to the product discription page? When adding an item I want to be able to fill out a field called size which will display as size: x under the discription on the main page
Thanks!
This is a discussion on Adding a field within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Anyone have a how to on how I can add a field to the product discription page? When adding an ...
Anyone have a how to on how I can add a field to the product discription page? When adding an item I want to be able to fill out a field called size which will display as size: x under the discription on the main page
Thanks!
Hi
It can be quite complicated. Because there are several pages in the product inserting process (ie the prview page and final page) you need to make sure the data persists throughout. Also you need to make sure the form fields are filled when you come back to edit the product or you have to type the data in each time. Also the categories.php file that deals with all this is extremely big (1700+lines) and unwieldy.
The basic method is to add a new database field, then find a similar line (products model would be suitable) and copy it, changing the names a little bit. You will have to edit several sections of categories.php to acheive this.
Then of course on product_info.php (or wherever you want the customer to see it) you will need to gather it from the database.
An even simpler method would be if for example you don't use one field, eg products model, just commandeer that for your new field and move it in the catalog template. You might need to change the database field type.
hope I haven't confused you more there, that wasn't a very well written answer
:-{
but it's late now
jon
Thanks Jon, Ill try to figure somthing out.
There is a "contribution" that SHOWS you how to do exactly this...
Add UPC numbers, SKUs, ISBN/ISSN, etc
http://www.oscommerce.com/community/contributions,126
Just use this as an outline for what you want to add.
Good Luck
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
ah yes I just remembered about that one!
Ignore me please.
jon
Bookmarks