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.
Recalculating pricing during checkout
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Recalculating pricing during checkout
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
- Shopping Cart Admin
- AbleCommerce Admin
- Posts: 3055
- Joined: Mon Dec 01, 2003 8:41 pm
- Location: Vancouver, WA
- Contact:
Re: Recalculating pricing during checkout
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. ?
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. ?
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Recalculating pricing during checkout
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.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx