| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Add Extra field to "Add new product" Page! | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi
I would like to have an extra field (not visible to the clients) such as the cost price. I have added the extra field (Cost price) into the "Add new product " page, by adding the code below to the "product_details.tpl". also i added the field into the database "xcart_products" table. Code:
The problem is the new extra field (cost price) can show the data from the database (if i add it manually into the database by phpMyAdmin), but I can not modify or add it from the form itself. Can any one please tell me what i am missing here? Do i need to modify any PHP file as well? and where i can find the ($product) variable? Thank you PS. I know how to add normal extra fields which they will be visible to the customers.
__________________
Saman ------------------- Having: X-Cart 4.1.9 X-RMA X-Special Offers X-Survey |
|||||||
#2
|
|||||||
|
|||||||
![]() In /include/product_modify.php search for...
Code:
Code:
Code:
__________________
xcartmods.co.uk |
|||||||
#3
|
|||||||
|
|||||||
![]() Saman, you can use regular extra fields for this, just uncheck the 'visible' box next to them to keep them from showing on the customer side.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||
|
|||||||
![]() Thank you guys,
![]()
__________________
Saman ------------------- Having: X-Cart 4.1.9 X-RMA X-Special Offers X-Survey |
|||||||
|
|||
X-Cart forums © 2001-2020
|