Announcement
Collapse
No announcement yet.
Recalculating pricing on login
Collapse
X
-
The Legacy Price group is just there for backwards compatibility. However you should be able to convert any legacy price group into one our newer price groups which leverages our discount engine (legacy do not) and gives you all the functionality you're looking for around price re-calculation, priority and exclusions.
-
D'oh. All I needed to do was edit my existing legacy price groups by recreating the discounting structure using a non-legacy price group option. Now pricing updates automatically and all is good.
- 2 likes
Leave a comment:
-
They're simple to configure if you want to offer a product at cost or at a simple discount to retail price. And in my case, I set these two specific price groups up many years ago before the new price group structure was released. So mine are truly legacy! I now have hundreds of products and customers assigned to them, so I really hope I won't have to convert them to the newer price group structure in order to have the basket recalculate.
Leave a comment:
-
OK, I think I've figured it out. It doesn't have to do with the old Price Group Manager module at all. I don't have that installed.
I did some testing this morning and confirmed that legacy price groups do not have basket pricing updated automatically when a user assigned to that legacy price group logs in.
I have a legacy price group set up to charge price group members cost for the item. I add items at regular price to the basket. When I log in as the user assigned to the price group, the pricing on items in the basket does not change. But pricing on the PROD page now displays cost for all assigned items. And if the customer adds items to the basket after logging in, they get added at cost.
I even tried creating a new legacy price group using cost to see if it was because the price group I am using was created long, long ago. But creating a new legacy price group displays the same behavior.
But if I create a new price group using Markup from Cost and set the markup to 0%, I can add items to the basket at retail price and then when the user in the price group logs in the pricing on items in the basket does update to cost.
So it appears that Miva will update basket pricing after login for new price groups, but it will not update basket pricing for legacy price groups.Last edited by oliverands; 11-23-21, 02:47 AM.
Leave a comment:
-
I re-tested on my price groups as well... I found that re-pricing upon customer login DID work on my Product Discount price groups, but did NOT work on my Legacy Price Groups with prices set by the Price Group Manager module.
My Legacy Price Groups (using rules set via Price Group Manager module,) did show the correct pricing in the basket (but not on PROD or CTGY screens) IF the shopper was logged in when adding the products to their cart. They did not recalculate standard retail prices upon login to an account assigned to the price group.
I guess it might be time to reconfigure my price groups and retire the Price Group Manager module.
Leave a comment:
-
My most used price groups are legacy. For pricing I use either cost or a discount from retail.
Leave a comment:
-
Miva automatically re-calculates the prices of items in the basket when you login. I just tried it and it does work like that for me. What type of price groups are you using?
- 1 like
Leave a comment:
-
Originally posted by delcorsets View PostThat's really strange.. I also thought it used to just work automatically in newer Miva releases. I even think I recall testing by activating price groups which took effect immediately on basket prices, however it does not seem to be the case now. Not sure if I have false memory of this working or something may have changed along the way.. It definitely is a pretty important feature for shoppers who are part of price groups.
- 1 like
Leave a comment:
-
Come to think of it, there have been times when I needed to write code to trigger the store to update pricing. The LSK contains numerous examples of a function call that looks like this:Code:<MvIF EXPR = "{ NOT [ g.Module_Feature_PGR_RT ].Runtime_Discount_Basket( g.Basket ) }"> <MvFUNCTIONRETURN VALUE = 0> </MvIF>
According to the LSK, this function is called whenever a customer changes their basket contents, and also when they log in or out. I hope someone in-house can shed some light on why this doesn't always work.
- 1 like
Leave a comment:
-
There might be differences based on what is changing the price in the basket. maybe the best approch would be to remove everything from the basket and then reinsert it.
Leave a comment:
-
That's really strange.. I also thought it used to just work automatically in newer Miva releases. I even think I recall testing by activating price groups which took effect immediately on basket prices, however it does not seem to be the case now. Not sure if I have false memory of this working or something may have changed along the way.. It definitely is a pretty important feature for shoppers who are part of price groups.
Leave a comment:
-
I just tested, and it doesn't do that automatically now. Pricing remains what it was when the item was added to the cart.
Leave a comment:
-
I'm pretty sure the store does that automatically now. I suggest you try it in your dev store; remember to deactivate the EP module first, so it won't interfere.
Leave a comment:
-
There is SMT code (and API functions) that can "read the basket items", "remove them", and then reinsert them. But I don't have that whole suite handy.
Leave a comment:
Leave a comment: