2
Answers
How to prevent products with different currencies being added to the Shopping Cart?
I have several products each being sold under a different currency. Is there any way to prevent products that have different currencies from being added to the same shopping cart. I've had a look at setting up a rule, but found it confusing and didn't get very far.
I don't want to use currency conversion.
thxs
Comments
Your cart is a view. Views can be filtered by pretty much any criteria imagineable, including obviously lanugage. This is a very diffucult question to answer without seeing your configuration.
thanks for your reply talengix,
Language is not relevant here, what i want to be able to do is create a rule that will check, when an item is being added to the shopping cart, if the price has a different currency code from items that are already in the cart. If the currencies differ then the new item is removed and a message displayed to the user stating that products priced in different currencies can not be mixed.
e.g
Product One €100
Product Two $100
When both are added to the shopping cart the cart total is displayed in the currency of the first item in the cart (€300).
I have gotten part of the way thanks to sketman's posting http://www.drupalcommerce.org/discussions/3212/rule-checking-shopping-ca... but i'm unsure of which fields etc I should be using.