KiralyVlad - search forum about new field in product form
KiralyVlad
2006-11-04 15:29
I've searched the forum. I've found nothing to help me in this problem. I am using Quick.Cart v.1.4. Basicly, as you said, I want to add a new field in the product form.
I've tried playing around... but no success so far.... I've edited the template files: templates/admin/products_list.tpl templates/admin/products_form.tpl
edited the php scripts core/products.php core/products-admin.php core/products-ff.php
I searched for [sShortDescription] , copied all instances of the code containing that and replaced sShortDescription with sProductCode .... I managed to make the code save the productcode in the db/products.php file, but I don't know how to get it out from there, into the templates/admin/products-list.tpl and into the edit page that comes up when you edit a product....
I've added <td>$lang[ProductCode]</td> right after the ID and <td>$aList[sProductCode]</td> right after the $aList[iProduct]</td>
You need to check functions throwProductsData, throwProduct to see results
KiralyVlad
2006-11-04 18:05
The truth is I`m not so good at PHP... I`m so stuck now I can`t even see the way out of this....
Treewood, let`s suppose I've got a fresh, untouched script.... What must I modify, and how? Let's assume I've just entered the html code for the templates, with the variable sProductCode..... Could you please explain from top to bottom what should I modify in the scripting part ? I would greatly appreciate it.
KiralyVlad
2006-11-04 19:43
Anyone ?
KiralyVlad
2006-11-04 23:55
Let me be more specific... I`ll tell you exactly what I did
I've tried inserting $aList[sProductCode] in the templates/products_list.tpl and it doesn't print out anything... (also tried to add it to pa.productsInRow.tpl and as well, it prints out nothing)
KiralyVlad
2006-11-04 23:56
Sorry about the
tags..... I was too tired to notice that its [ p
hp ] not < php >
KiralyVlad
2006-11-05 01:44
Ok.... I've found out the problem.... all was right, When I disabled the Productattributes plugin they showed up..... thanks for your help.