osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Adding a field

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-03-2004, 01:16 PM
New Member
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mrshlomi
Default Adding a field

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 03-03-2004, 06:24 PM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-03-2004, 07:12 PM
New Member
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mrshlomi
Default

Thanks Jon, Ill try to figure somthing out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-04-2004, 08:51 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,795
Thanks: 5
Thanked 104 Times in 90 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-07-2004, 03:11 PM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

ah yes I just remembered about that one!

Ignore me please.



jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 05:06 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax