Results 1 to 5 of 5

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

      
  1. #1
    New Member
    Join Date
    Oct 2003
    Posts
    23
    Rep Power
    0


    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!

  2. #2
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    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

  3. #3
    New Member
    Join Date
    Oct 2003
    Posts
    23
    Rep Power
    0


    Default

    Thanks Jon, Ill try to figure somthing out.

  4. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


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

  5. #5
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    Default

    ah yes I just remembered about that one!

    Ignore me please.



    jon

Similar Threads

  1. no text field in attributes - please help!
    By johnr3 in forum osCmax v2 Installation issues
    Replies: 4
    Last Post: 05-16-2006, 10:47 AM
  2. Lets See What We Have Here FIELD
    By Milmod in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 02-28-2005, 01:41 PM
  3. Adding a field in customer database
    By ksl8313 in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 02-27-2005, 12:21 AM
  4. Add extra form field
    By Pappa in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 09-08-2004, 09:22 AM
  5. Adding a new field (checkout)
    By j1tters in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 04-28-2004, 08:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •