i am using zencart 1.3.8a.
i want to use the attribute "weight" field to another code,that is something like item code which includes numbers and letters.how can thisdone.
i am using zencart 1.3.8a.
i want to use the attribute "weight" field to another code,that is something like item code which includes numbers and letters.how can thisdone.
From the products table the products_weight field and from the products_attributes table the products_attributes_weight field are used all throughout the code and would not make an idea choice of fields to use ...
What is your ultimate goal that you are trying to accomplish?
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,
without changing weight feild i managed to add new feild called "itemcode" under admin->attributer controller.which is a text feild(FTRTGF145).its adding to database corectly in insert and update .now i wont to display that item code in the web like attribute price......
any idea....
Last edited by Dilani_Ruwanmali; 23 Apr 2010 at 10:31 AM.
What is the name of the table and the field that you added?
Where are you trying to display the data that is in this field ... "in the web" is a little too vague for me ...
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!
ajah,
table: product attributes
feild:add a new feild call item_code
like attribute prce and weight,it shoud disply
eg:
plz choose the metress
* double layer mettress($253)(itemcode).
*thrible layer ($350)(itemcode)
item code should be there.
i have tried to use weight feild without doing any changes ,just type item code inthe weight.but it wont display on the web until it starts with numeric.if i typed something like GHFH123 it will saved in the data base but not showing up.if i type the code 1FGHDGH132 it will shown up.by doing substr(1fgdhgfh12) its possible to display the correct code in the web.but the database and enetering value carrying numeric in front......
any idea
thanks for the quick responce.
Change in the file:
/includes/modules/attributes.php
around line 164 to read:
Code:$products_options_display_price .= $price_onetime; $products_options_display_price .= $products_options->fields['item_code'];
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!
yepiiiiiiiiiii it works......................millian thanaks ajeh.................................
is there any way to display the item code on shoping cart page and orderdetails page