Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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 :)
Also the confirmation email doesn't seem to reflect the correct prices (but I think I can update that one directly)
So in the confiration email cshtml it does the following
var originalPrice = orderLine.OriginalUnitPrices.FirstOrDefault();
var price = orderLine.UnitPrice.Value.Value;
if (originalPrice != null)
price = originalPrice.Value;
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
So your code is custom right? You won't want to use the original prices in any way like that :)
Cool thanks for the tip Anders :)
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? :)
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.
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...
Write your reply to:
Image will be uploaded when post is submitted