| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Category Price | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||||
|
|||||||||
|
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:
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?
__________________
xcart 5.1.2 |
|||||||||
|
#2
|
|||||||||
|
|||||||||
|
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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||||
|
|||||||||
|
no such line.
this is 4.1 if that makes a difference. Ash
__________________
xcart 5.1.2 |
|||||||||
|
#4
|
|||||||||
|
|||||||||
|
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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#5
|
|||||||||
|
|||||||||
|
HAHA!! that was it.
thanks
__________________
xcart 5.1.2 |
|||||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||