Page 1 of 1

7.01 to 7.06 commercebuilder basket.recalc & custom prices

Posted: Tue Sep 20, 2011 4:50 pm
by wprevett
Hello!

I'm having some difficulty with some custom functionality we had made for our Ablecommerce implementation.

We have a back-end order entry application, with which we can enter custom prices. There are a few product SKUS without a price for this particular case.

With the new Commercebuilder version, once Basket.Recalculate() is called, these custom prices are no longer retained because the default price appears to be re-assigned.

Is it possible to recalculate the basket with a modified Unit Price in 7.06?

Any help would be greatly appreciated.

Thanks

Re: 7.01 to 7.06 commercebuilder basket.recalc & custom prices

Posted: Wed Sep 21, 2011 7:04 am
by jmestep
You can set the product to use a variable price with a minimum price of the lowest you want to sell it for and customize the pages so that the variable price doesn't display as editable.
Whenever we deal with something like this where you have to override what is going on in the basket as far as prices, coupons, discounts we create our own basket class and override the Able one with our own calculations.

Re: 7.01 to 7.06 commercebuilder basket.recalc & custom prices

Posted: Wed Dec 28, 2011 5:04 pm
by sfeher
Hi Judy --
I'm attempting to do something very close to this.

- I have our product updated to use the variable price so that custom pricing can be assigned by sales reps using the Admin section of the site.
- I've updated the BuyProductDialog page so that the variable price display is NOT editable.

However, on product with options (with price variations) the ajax function to update the price does not work on the variable price display. How did you code this so that if the option is selected, the ajax panel will enforce a price change to the variable price. Have you been able to accomplish this?

Thanks!

Re: 7.01 to 7.06 commercebuilder basket.recalc & custom prices

Posted: Tue Jan 03, 2012 9:20 am
by jmestep
I'm sorry, I don't have time to look at this and I never tried it with options. Plus I'm allergic to Ajax from trying to customize the one page checkout. But you might find something in the producthelper.cs that builds the options.