You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I worked long and hard on this and need some help.
I wonder if there were a patch for this or what.
When adding a product to the cart, the cart shows a zero price.
I looked at the "cart" table in the db and the correct prices are there for sinoptprice.
However, the cart display has a total of zero for the product.
I analyzed cartdisplay.php [corrected this filename] and yes, the total is zero there.
We're working with either a Regular price or Option-based price model.
The regular price is set to zero.
We want to add the prices of the options.
The cart comes up with zero price even if the price model is set to Option-based.
What files read the cart and can change the price?
Any and all help will be appreciated.
Last edited by Blitzen (05-05-2009 09:12:32)
Offline
Are we talking about CCP6, because with a file named cartdisplay.pl it would be ccp5.1 and you should ask your question in the forum for that version where you will get more help than here.
John
Offline
Sorry, CCP6, cartdisplay.php. I don't believe CCP5 uses the sinoptprice in the program or cart.
Anyway, when I analyze the cartdisplay array, here are the results.
cartdata[subtotal] = 0
cartdata[sinoptprice][] has the correct price.
(cartdata[sinprodprice][] is blank as expected).
$66 is the correct price after adding all selected options.
The cart db table has this
... {s:4:"type";s:1:"R";s:8:"displayb";s:6:"$66.00";s:7:"actualb";s:5:"66.00"; ...
Last edited by Blitzen (05-05-2009 10:41:51)
Offline
CCP_Cart.pl - build_item, $item['subtotal'] has the correct subtotal.
In cartdisplay.php, total_amount: 0 and cartdata['subtotal']: 0
Last edited by Blitzen (05-05-2009 11:45:36)
Offline
Did I stump the crew there?
Offline
A little help, please....
Offline
Do you have the "Pricing Type" field in the product details set to "Option Based"? That is the "trigger" that will cause CCP to use the price of options as the price of the product. Since you may only have prices for product option selection items the product option(s) associated with the product will have to be selection list, radio buttons or check boxes since those are the only form field types that make use of product option selection items.
Offline