Page 1 of 1
Recalculating pricing during checkout
Posted: Mon Nov 23, 2009 4:20 pm
by jmestep
I am doing some coding for a client who wants product special prices applied based on the shipping state for the order. I've got that all working fine based on a special group. What would trigger the basket to re-calculate at checkout? I've taken myself in and out of groups and if I have the product in my basket and I should not be getting the discount after I've removed myself from the group, the price doesn't change to the non-special price, even if I click to recalculate basket on the basket page. Is there a guaranteed routine to make the prices be recalcuated?
This is Able 7.0.0.
Thanks.
Re: Recalculating pricing during checkout
Posted: Wed Dec 02, 2009 1:23 pm
by Shopping Cart Admin
Hello Judy,
The attributes of a product when added to the basket, typically won't change even if the product changes. Same with a completed order. Both should be a snapshot in time. As far as a way to accomplish this we'd want to get more information on flow to pinpoint the areas that require the recalc.
Off hand:
1. when an user logs in and the state is identified.
2. shipping address change
one page checkout
ship to multiple checkout
3. ?
Re: Recalculating pricing during checkout
Posted: Wed Dec 02, 2009 2:54 pm
by jmestep
I was able to work around it. In newer versions of Able, the price would recalculate. For example, I put a product in the basket, went to the admin and created a special price and the product price in the basket changed, which is good. It just wasn't happening in 7.0.0, so I called the ProductCalculator on the items in the basket and changed the price to that price, then saved the basket. It is working fine now.