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
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
that question has a really long answer.
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!
Originally Posted by Ajeh
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
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!
Hi linda,
Can we do that from zen admin without going for ftp,
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!
Can pl you tell me which area of code responsible for first image upload and entry indirectory
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!
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