webdna / commerce-currency-prices

Add a product price for each currency
Other
3 stars 5 forks source link

Calling unknown method when adding products to cart #9

Closed cjgrauco closed 5 years ago

cjgrauco commented 5 years ago

Im using the commerce standard shop templates to try your plugin. when i add an item to the cart i get a error:

Unknown Method – yii\base\UnknownMethodException Calling unknown method: kuriousagency\commerce\currencyprices\services\CurrencyPricesService::getPricesByShippingRuleIdAndCurrency()

The function is being called from the Shipping adjuster on line 77 and 94, but it's using the wrong service. The getPricesByShippingRuleIdAndCurrency function is placed in the Shipping service, not the CurrencyPrices one.

mcjackson18 commented 5 years ago

@cjgrauco this is now fixed in 2.5.3

cjgrauco commented 5 years ago

Perfect, thanks a lot!