Closed (fixed)
Project:
Commerce Multicurrency
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2012 at 12:07 UTC
Updated:
6 Mar 2013 at 09:30 UTC
When installing either commerce_shipping-7.x-2.x-dev or commerce_shipping-7.x-2.0-beta1 I get the following error when clicking the checkout button in the shopping cart if product price is converted to any other currency than the default one:
Warning: call_user_func() expects parameter 1 to be a valid callback, function 'rules_events_entity_unchanged' not found or invalid function name in RulesState->get() (line 148 of /home/quickstart/websites/artunika.dk/sites/all/modules/contrib/rules/includes/rules.state.inc).
Moreover if I use the commerce_flat_rate module the subtotal, shipping and order total get calculated in the default currency. I have added screen shots to show both errors.
| Comment | File | Size | Author |
|---|---|---|---|
| Untitled-2.jpg | 17.34 KB | mmncs | |
| Untitled-4.jpg | 57.59 KB | mmncs |
Comments
Comment #1
googletorp commentedThe first error is most likely due to cache or outdated version of rules.
The second error is related to commerce flat rate, so moving the issue.
Comment #2
rszrama commentedActually, the second error is also just a general Commerce Shipping thing. You just need to convert the currency of your shipping line item using a rate calculation rule, which is the same thing Commerce Multicurrency does for products. What happens when it's deciding the order total is it looks at the currency of all the line items on the order. If even one of them is in the default currency, then it calculates the order total in that default currency. So if you convert the shipping line item to another currency, that'll resolve the issue.
Let's actually make this issue a feature request for Commerce Multicurrency so it sets the proper currency for shipping rates like it would for products.
Comment #3
das-peter commentedI've just pushed updated default rules: http://drupalcode.org/project/commerce_multicurrency.git/commit/eb9be8d
If the Commerce Shipping module is enabled a reaction rule with currency conversion is created.