Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default add new field to products_table

    I want to add new fields to products_table.

    this includes adding new column in admin page

    and where should i add the insert query

  2. #2
    Join Date
    Aug 2006
    Location
    Chicago
    Posts
    24
    Plugin Contributions
    0

    Default Re: add new field to products_table

    that question has a really long answer.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: add new field to products_table

    The easiest way to figure out where you have to make a change is to pick a field similar to what you are trying to add ...

    Say you wanted something like products_model

    You would then do a search in the Tools ... Developer's Tool Kit ... and in the bottom input box type:
    products_model

    Pick Catalog/Admin from the dropdown and click search ...

    Now this will include more places than you may need, but it will show you all files that use this field name ...

    NOTE: a field like products_model may later be referred to as model or $model or $products_model etc.

    It really depends on what all you are trying to do and where you need to display/add/edit this field ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: add new field to products_table

    Quote Originally Posted by Ajeh
    The easiest way to figure out where you have to make a change is to pick a field similar to what you are trying to add ...

    Say you wanted something like products_model

    You would then do a search in the Tools ... Developer's Tool Kit ... and in the bottom input box type:
    products_model

    Pick Catalog/Admin from the dropdown and click search ...

    Now this will include more places than you may need, but it will show you all files that use this field name ...

    NOTE: a field like products_model may later be referred to as model or $model or $products_model etc.

    It really depends on what all you are trying to do and where you need to display/add/edit this field ...

    Thank you Ajeh,notrub,

    I would like to add an extra image for my products, I identified where the form has image input and replicated changed its name at all pages as image2 and included an extra field to database.

    If i select the directory to store the extra image.it goes to the database but the filename is not transferred to the database nor the file gets uploaded..

    Can you help

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: add new field to products_table

    Zen Cart already has built in unlimited additional images ...

    Do a search on:

    calico cat
    images/medium
    additional images

    You should find a 10001 threads on how to utilize them ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: add new field to products_table

    Hi linda,

    Can we do that from zen admin without going for ftp,

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: add new field to products_table

    Medium, Large and Additional Images are added via FTP ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: add new field to products_table

    Can pl you tell me which area of code responsible for first image upload and entry indirectory

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: add new field to products_table

    That is more or less a combination of the /admin/modules files ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: add new field to products_table

    Thank u linda,

    I found that collect_info is responsible for outer form which i changed and i need to know what should be changed to upload the image name to database and where it should be modified for an upload

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. should I add new table to store new field?
    By linjuming in forum General Questions
    Replies: 4
    Last Post: 21 Feb 2013, 06:35 PM
  2. Add new product field
    By dannyd in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Mar 2009, 10:14 AM
  3. Add new field to product display
    By mumu77 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 23 Feb 2009, 01:41 PM
  4. Add new field
    By J#xx in forum General Questions
    Replies: 11
    Last Post: 4 Feb 2009, 03:30 PM

Posting Permissions

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