diff --git a/Plugins/prestashop/vivawallet/success.php b/Plugins/prestashop/vivawallet/success.php index b9013783..6e208f77 100644 --- a/Plugins/prestashop/vivawallet/success.php +++ b/Plugins/prestashop/vivawallet/success.php @@ -23,7 +23,7 @@ $cartid = $transtat[0]['ref']; if(substr(_PS_VERSION_,2,1) >= 5){ - Context::getContext()->cart = new Cart((int)$cart_id); + Context::getContext()->cart = new Cart((int)$cartid); Context::getContext()->customer = new Customer((int)Context::getContext()->cart->id_customer); $address = new Address((int)Context::getContext()->cart->id_address_invoice); Context::getContext()->country = new Country((int)$address->id_country); @@ -52,4 +52,4 @@ } else { echo 'No valid input received.'; } -?> \ No newline at end of file +?>