| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Help tracking down $add_product[price] | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
Wondering if anyone can tell me exactly how the form 'orderform' passes the value for price to cart.php when adding a product to cart. I don't seem to see a field/element named 'price' that would hold the price value.
This is a store in development, X-Cart 4.2.2 Gold. Any help would be much appreciated. |
|||||||
|
#2
|
|||||||||
|
|||||||||
|
In the file cart.php I see the line
Code:
And just below there is the call to func_add_to_cart.
__________________
Richard Williams Rogue Wave Limited Initial Inventory Imports Daily Inventory Updates Daily Inventory Reports Drop Ship Support Order Export to Shipper/Supplier Shopping Feeds That Work Programming for X-Cart richard@roguewavelimited.com http://www.roguewavelimited.com |
|||||||||
|
#3
|
|||||||
|
|||||||
|
Thanks for your help, but I think the problem is occurring before cart.php. What I'm having difficulty finding is where the form passes the field value to cart.php. Right now, it is passing $0 as the price, which means it's either not passing the price at all or is passing $0 as a default value. So the price isn't even making it to cart.php.
|
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||