cudasan Posted June 21, 2014 Share Posted June 21, 2014 I am getting this error when i am clicking checkout button.. This is happening after i added a pack of product and i removed that pack.. Then i am getting this error. Please take this as an serious issue and solve it for me as soon as possible. Thanks in advance Link to comment Share on other sites More sharing options...
cudasan Posted June 23, 2014 Author Share Posted June 23, 2014 Hellow.. No genius there in prestashop to solve this issue.. I am really disappointed with prestashop team.. Very bad.. Link to comment Share on other sites More sharing options...
janmejaypati Posted December 9, 2014 Share Posted December 9, 2014 Open that file and find the function called public function getProductLink( replace -- $url = $this->getBaseLink($id_shop).$this->getLangLink($id_lang, null, $id_shop); if (!is_object($product)) { if (is_array($product) && isset($product['id_product'])) $product = new Product($product['id_product'], false, $id_lang, $id_shop); elseif ((int)$product) $product = new Product((int)$product, false, $id_lang, $id_shop); else throw new PrestaShopException('Invalid product vars'); } with if (!$id_shop) $shop = Context::getContext()->shop; else $shop = new Shop($id_shop); if (!is_object($product)) { if (is_array($product) && isset($product['id_product'])) $product = new Product($product['id_product'], false, $id_lang); else if (is_numeric($product) || !$product) $product = new Product($product, false, $id_lang); else throw new PrestaShopException('Invalid product vars'); } It works for me. Link to comment Share on other sites More sharing options...
Recommended Posts