// Retro compatibility and updater improved for Discount/CartRules
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9798 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -223,9 +223,9 @@ class GCheckout extends PaymentModule
|
||||
|
||||
if ($wrapping = $this->context->cart->getOrderTotal(true, Cart::ONLY_WRAPPING))
|
||||
$googleCart->AddItem(new GoogleItem(utf8_decode($this->l('Wrapping')), '', 1, $wrapping));
|
||||
foreach ($this->context->cart->getDiscounts() AS $voucher)
|
||||
$googleCart->AddItem(new GoogleItem(utf8_decode($voucher['name']),
|
||||
utf8_decode($voucher['description']), 1, '-'.$voucher['value_real']));
|
||||
foreach ($this->context->cart->getCartRules() AS $cart_tule)
|
||||
$googleCart->AddItem(new GoogleItem(utf8_decode($cart_tule['code']),
|
||||
utf8_decode($cart_tule['name']), 1, '-'.$cart_tule['value_real']));
|
||||
|
||||
if (!Configuration::get('GCHECKOUT_NO_SHIPPING'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user