View Full Version : s01_BasketItems override price
alexboyer
07-02-08, 08:01 PM
Hello,
I'm trying to get a script to override the pricing in the basket so I can have multiple price lists based on different pricing algorithms... I thought all I would need to do is update the price field for s01_BasketItems, but it appears Miva is overriding those fields with the default price for the item...
Any ideas about how to get the custom prices in the basket in such a way that they're sent to the payment processor?
Thanks,
Alex
eMediaSales
07-02-08, 08:18 PM
Try our ePriceManager - let's you setup pricing tiers for customers. This way the invoice they get has the right price, they see the right price in the store, etc.
I thought all I would need to do is update the price field for s01_BasketItems, but it appears Miva is overriding those fields with the default price for the item...
Alex
Writing the price to the basket items should carry on to checkout. Are you sure you successfully replaced the price in the basket items? You don't have a module that recalculates the basket price when the customer logs in, do you?
alexboyer
07-02-08, 08:29 PM
Yeah, I checked the table using the basket id in s01_BasketItems and the price was what I wanted it to be. It just wasn't changed on the BASK screen or any other screen that used basket items...
I don't believe I have anything recalculating that, but also don't believe it would be relevant as all my experiments have been using the Checkout without an Account option.
When are you changing the price? Is it in a log module function?
alexboyer
07-02-08, 08:32 PM
No, wait, damn, you're right Bill, there is something tweaking it... Ok, thanks for getting me closer.
alexboyer
07-02-08, 08:47 PM
Ok, it's fixed. Thanks for the help!!!
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.