Per https://www.drupal.org/project/commerce_currency_resolver/releases/8.x-1.50 the CurrencyHelper static helper is now a service and should be called by
\Drupal::service('commerce_currency_resolver.calculator')->priceConversion($input_price, $target_currency)
PrintfulShipping should remove Drupal\commerce_currency_resolver\Plugin\Commerce\CommerceCurrencyResolverAmountTrait and replace with the injected service.
Also, OrderItemsTrait needs to replace:
$totalPrice = CurrencyHelper::priceConversion($totalPrice, $pf_currency);
With:
$totalPrice = \Drupal::service('commerce_currency_resolver.calculator')->priceConversion($totalPrice, $pf_currency);
(or the injected service)
Comments
Comment #2
scottsawyerAnd a patch. Hopefully works with all the other patches.
Comment #3
scottsawyerIf you have already applied patch from #3118530: Latest version of Commerce Shipping Breaking Changes, then the previous patch will not apply.
Comment #4
scottsawyerSorry for the noise, there was more to do. This patch still depends on the one mentioned in #3
Comment #5
graber commentedCommerce Currency Resolver min version required in the .info.yml file
Comment #6
scottsawyerOk, I suppose we can just use the latest stable. I'll try to get an updated patch this week.
Comment #7
scottsawyerAdded commerce_currency_resolver version requirement in commerce_printful.info.yml. Also needed a reroll per #3118530: Latest version of Commerce Shipping Breaking Changes. This patch also depends on the patch in #8
Comment #8
scottsawyerChanges in #9 required changes to this patch.
Comment #9
scottsawyerAnd this patch depends on #10
I also noticed an issue in my previous patches with $priceExchangerCalculator variable miss named. I had an ugly work around which this patch removes, so it's actually a cleaner patch.
Comment #11
cameron prince commentedConfirmed and committed. Thanks!