Skip to content

Commit 79f1ed1

Browse files
[MO] : Fix undefined index
1 parent ebb0f64 commit 79f1ed1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ps_googleanalytics.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct()
4040
{
4141
$this->name = 'ps_googleanalytics';
4242
$this->tab = 'analytics_stats';
43-
$this->version = '3.0.2';
43+
$this->version = '3.0.3';
4444
$this->ps_versions_compliancy = array('min' => '1.7.0.0', 'max' => _PS_VERSION_);
4545
$this->author = 'PrestaShop';
4646
$this->module_key = 'fd2aaefea84ac1bb512e6f1878d990b8';
@@ -758,6 +758,8 @@ public function hookactionCartSave()
758758
$add_product['id_product'] = Tools::getValue('id_product');
759759
$add_product['id_category_default'] = $add_product_object->id_category_default;
760760
$add_product['out_of_stock'] = $add_product_object->out_of_stock;
761+
$add_product['minimal_quantity'] = 1;
762+
$add_product['unit_price_ratio'] = 0;
761763
$add_product = Product::getProductProperties((int)Configuration::get('PS_LANG_DEFAULT'), $add_product);
762764
}
763765
}

0 commit comments

Comments
 (0)