![]() |
Add Extra field to "Add new product" Page!
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:
<tr> 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. |
Re: Add Extra field to "Add new product" Page!
In /include/product_modify.php search for...
Code:
# Update product data Code:
"free_tax" => $free_tax, Code:
"cost_price" => $cost_price, |
Re: Add Extra field to "Add new product" Page!
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.
|
Re: Add Extra field to "Add new product" Page!
Thank you guys, :)
|
All times are GMT -8. The time now is 07:28 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.