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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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! |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| Thanks Jon, Ill try to figure somthing out. |
|
#4
| ||||
| ||||
| 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 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! |
|
#5
| |||
| |||
| ah yes I just remembered about that one! Ignore me please. jon |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| no text field in attributes - please help! | johnr3 | osCMax v2 Installation issues | 4 | 05-16-2006 10:47 AM |
| Lets See What We Have Here FIELD | Milmod | osCommerce 2.2 Modification Help | 2 | 02-28-2005 01:41 PM |
| Adding a field in customer database | ksl8313 | osCommerce 2.2 Modification Help | 3 | 02-27-2005 12:21 AM |
| Add extra form field | Pappa | osCommerce 2.2 Modification Help | 1 | 09-08-2004 09:22 AM |
| Adding a new field (checkout) | j1tters | osCommerce 2.2 Modification Help | 1 | 04-28-2004 08:33 AM |