Welcome to MyPresta.eu – Your reliable partner in the e-commerce world. Find innovative modules that will take your business to a new level.
Unfortunately in PrestaShop 1.5.5 is a litle bug related to voucher codes. If you add gift voucher code - all other voucher codes will not work and also vouchers feature (form, remove voucher codes) will not work anymore. Here is the solution for this issue.
Fixed feature - gift vouchers and prestashop shopping cart

Gift voucher code fix for PrestaShop 1.5.5
Open file: classes/Cart.php. This is a class which handle all important cart functions. In my opinion is the one from the most important things in whole shop. You can find there function named addCartRule near line 761. All what we have to do is a little modification.
remove code:
if (Db::getInstance()->getValue('SELECT id_cart_rule FROM '._DB_PREFIX_.'cart_cart_rule WHERE id_cart = '.(int)$this->id))
return false;
and replace it with:
$result = Db::getInstance()->getRow('SELECT id_cart_rule FROM '._DB_PREFIX_.'cart_cart_rule WHERE id_cart = '.(int)$this->id
. ' AND id_cart_rule = '.(int)$id_cart_rule);
if ($result && Db::getInstance()->NumRows()) return false;
Artykuł napisany przez Milosza Myszczuka, eksperta PrestaShop i oficjalnego moderatora społeczności PrestaShop. CEO i założyciel agencji interaktywnej VEKIA. Dowiedz się więcej.
If you like this article, support our work!

Integrate your store with the Central Bank of the Republic of Turkey (TCMB) using this module. It au...
19.99 €

Automatic Bank of Spain (Banco de España - BdE) currency rates integrator. The module guarant...
19.99 €

The Currency Exchange Module offers unparalleled flexibility in managing international sales. Regard...
19.99 €

Automatic National Bank of Ukraine (NBU) currency rates integrator. The module guarantees precise pr...
19.99 €