Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Created June 19, 2020 20:07
Show Gist options
  • Save unlocomqx/e7acd9004376dc341ef6147636d79cae to your computer and use it in GitHub Desktop.
Save unlocomqx/e7acd9004376dc341ef6147636d79cae to your computer and use it in GitHub Desktop.
Index: modules/paypal/classes/MethodEC.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- modules/paypal/classes/MethodEC.php (date 1592596552365)
+++ modules/paypal/classes/MethodEC.php (date 1592596552365)
@@ -269,8 +269,8 @@
foreach ($products as $product) {
$itemDetails = new PaymentDetailsItemType();
$productObj = new Product((int)$product['id_product'], null, Context::getContext()->cart->id_lang);
- $priceIncl = $this->formatPrice($productObj->getPrice(true, $product['id_product_attribute']));
- $priceExcl = $this->formatPrice($productObj->getPrice(false, $product['id_product_attribute']));
+ $priceIncl = $this->formatPrice($productObj->getPrice(true, $product['id_product_attribute'], 6, null, false, true, 1, $product['id_customization']));
+ $priceExcl = $this->formatPrice($productObj->getPrice(false, $product['id_product_attribute'], 6, null, false, true, 1, $product['id_customization']));
$productTax = $this->formatPrice($priceIncl - $priceExcl);
$itemAmount = new BasicAmountType($currency, $priceExcl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment