Created
June 19, 2020 20:07
-
-
Save unlocomqx/e7acd9004376dc341ef6147636d79cae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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