Fix bug on Obananapay Checkout
This commit is contained in:
parent
2f599791df
commit
a0289a997a
|
@ -1381,7 +1381,7 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"]
|
|||
const token = '<?php echo $_SESSION["token"] ?>';
|
||||
const shippingfee = parseFloat(orderId.shipping_fee)
|
||||
const orderPay3ProductId = orderId.items[0].product.product_id;
|
||||
const productPay3Response = await fetch(`https://<?php echo $_SESSION["data_endpoint"]; ?>/api/v1/products/${orderProductId}`);
|
||||
const productPay3Response = await fetch(`https://<?php echo $_SESSION["data_endpoint"]; ?>/api/v1/products/${orderPay3ProductId}`);
|
||||
const productPay3Data = await productPay3Response.json();
|
||||
let freeShippingObPay = false;
|
||||
if (productPay3Data.promo && productPay3Data.promo.length > 0 && productPay3Data.promo[0]['free-shipping'] === 'Yes') {
|
||||
|
|
Loading…
Reference in New Issue