Tags/topics: 
2
Answers
Vote up!
1
Vote down!

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

Asked by: jdrpl
on February 5, 2013

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.

- drupalability on February 5, 2013

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.

- jdrpl on February 5, 2013

2 Answers

Vote up!
0
Vote down!

Solved it, just a matter of trial and error with the rules and concentrating on the line-item:commerce-unit-price:currency-code fields. Thanks to sketman for pointing me in the right direction with his post.

Answer by: jdrpl
Posted: Feb 7, 2013

Comments

Hello jdrpl

Can you post here rule.I am facing same issue.Please need your help.

Thank you

- patty on September 14, 2013
Vote up!
0
Vote down!

Hello jdrpl

Can you post here your rule i am facing same issue.

Thank you

Answer by: patty
Posted: Sep 14, 2013