On a site I'm currently working on I've implemented member specific pricing (so have a property member price on the product doc type and a custom product calculator and orderline calculater) those bits work great but I have a small issue
When you aren't logged in then add items to the cart and log out , the items in the cart don't get updated to the member price...
I assume it's also the other way around so when you are logged in, add items to the cart then come back later but not logged in anymore you get the member prices.
Any ideas on how I can solve this issue? Thanks :)
Most simple way (if you have few currencies) is to make a new currency e.g "USD - B2B". Then just switch to that currency in the right cases. Only thing you need is to server secure the change of currency. For that you use the NotificationCenter and the CurrencyChanging event and check if the user is logged in and allowed to change to the "USD - B2B" currency. Makes sense? :)
Topic author was deleted
Member specific prices and login/out
Hey,
On a site I'm currently working on I've implemented member specific pricing (so have a property member price on the product doc type and a custom product calculator and orderline calculater) those bits work great but I have a small issue
When you aren't logged in then add items to the cart and log out , the items in the cart don't get updated to the member price...
I assume it's also the other way around so when you are logged in, add items to the cart then come back later but not logged in anymore you get the member prices.
Any ideas on how I can solve this issue? Thanks :)
Comment author was deleted
Also the confirmation email doesn't seem to reflect the correct prices (but I think I can update that one directly)
Comment author was deleted
So in the confiration email cshtml it does the following
How would I get the correct discounted price? I would assume that would just happen automatically
Normally the confirmation email does like here - line 193 - 217
https://github.com/TeaCommerce/Starter-kit-for-Umbraco/blob/master/Source/Website/MacroScripts/tea-commerce/email-template-confirmation.cshtml.default
So your code is custom right? You won't want to use the original prices in any way like that :)
Comment author was deleted
Cool thanks for the tip Anders :)
Comment author was deleted
Also have an idea on the cart on login/out issue? Thanks much appreciated :)
Most simple way (if you have few currencies) is to make a new currency e.g "USD - B2B". Then just switch to that currency in the right cases. Only thing you need is to server secure the change of currency. For that you use the NotificationCenter and the CurrencyChanging event and check if the user is logged in and allowed to change to the "USD - B2B" currency. Makes sense? :)
https://documentation.teacommerce.net/net-api/notification-center/
Kind regards
Anders
Comment author was deleted
Only have a single currency so that is definitely an option, will check the docs, thanks again :)
Then that is the most simple way to do it :)
Your welcome. Looking forward to see the site you are doing.
Comment author was deleted
Well it is updating an existing instance so you probably already now about it but having fun with TeaCommerce so far, great job!
Ahh okay :)
Great to hear that you have fun. Any feedback is more than welcome. Just email me or write the good things on twitter :p
is working on a reply...