Kryptronic Software Support Forum

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.

#1 05-04-2009 21:54:40

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

No Price for Options in Cart

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

 

#2 05-04-2009 22:58:23

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: No Price for Options in Cart

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

 

#3 05-05-2009 09:11:55

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: No Price for Options in Cart

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

 

#4 05-05-2009 11:43:47

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: No Price for Options in Cart

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

 

#5 05-05-2009 19:05:12

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: No Price for Options in Cart

Did I stump the crew there?

Offline

 

#6 05-06-2009 09:29:45

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: No Price for Options in Cart

A little help, please....

Offline

 

#7 05-06-2009 09:46:16

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: No Price for Options in Cart

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

 

Board footer