is there any way to display the item code on shoping cart page and orderdetails page
is there any way to display the item code on shoping cart page and orderdetails page
i have managed to insert item code in shoping cart page, but it seems very difficult to display it on both checkout and checkout confirmation page.....any hints...
By item code, do you mean the products_id or the products_model or what?
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!
item code is the field that i newly added ,its same as products attributes weight.i want it to display on check out page as,
products_name
attribute name-attribute value -price- item code
attribute name-attribute value -price- item code
attribute name-attribute value -price- item code
![]()
It sounds like you want this on the Catalog for display about the Product and its Attribtues ... then in the Checkout ... and probably are going to want it in the Admin ...
The best way to manage that for the checkout is to add the field to the orders_products_attributes table so you have this reference in the Admin ...
Then, customize the catalog order class to gather this information and save this information ...
Then, customize the admin order class to allow you to display this information ...
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!
thanks jay,
but its not clear...................im not a expert on zencart
can you please tell me which files do i have to edit.
i have add new field on order_products_attribute table.from where its getting updated? (where the values get inserted to that table)....can u plz explain the files and bit codes..................![]()
You need to edit the order.php class file ...
/includes/classes/order.php
First follow where the table references for:
TABLE_PRODUCTS_ATTRIBUTES
are and add your new field references there ...
Next follow where the table references for:
TABLE_ORDERS_PRODUCTS_ATTRIBUTES
and add your new field references ...
Then, you need to do the same, similar thing in the Admin order.php class:
/admin/includes/classes/order.php
It takes a bit of sorting out, but should help you get this information from the
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!