![]() |
Category Price
Ok, so I added a new field to categories called cat_price in phpMy admin.
This is basically a category price (all prods within a cate will have the same price). I added this to category_modify.tpl to get the field to show in the admin. Code:
<tr> But now Im not sure how to get the value to save in the DB. I tried category_modify.php Code:
# but the value is not saving. What am I doing wrong? |
Re: Category Price
No. You need to add the new field to
# # Update general data of category # $data = array( same file. You also need to modify include/import_categories.php if you want to be able to import values for that field |
Re: Category Price
no such line.
this is 4.1 if that makes a difference. Ash |
Re: Category Price
Yes it does make a difference. Sorry didn't get this from your original post. First you were making the change in the right place in the php file. But look at your tpl code - you have for the new price field "name=order_by" when you should have "name=cat_price" as you are reffering to that same name in the sql query. See if that helps
|
Re: Category Price
HAHA!! that was it.
thanks :) |
All times are GMT -8. The time now is 02:54 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.