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.

CommentFileSizeAuthor
Untitled-2.jpg17.34 KBmmncs
Untitled-4.jpg57.59 KBmmncs

Comments

googletorp’s picture

Project: Commerce Shipping » Commerce Flat Rate
Version: 7.x-2.x-dev » 7.x-1.x-dev

The 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.

rszrama’s picture

Title: commerce_shipping module breaks commerce_multicurrency » Create a default shipping rate calculation rule to convert shipping line items to the selected currency, too
Project: Commerce Flat Rate » Commerce Multicurrency
Category: bug » feature

Actually, 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.

das-peter’s picture

Status: Active » Fixed

I'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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.