Jump to content

(SOLVED) Install MailAlerts 2.2 in Prestashop 1.1.0.5


Recommended Posts

Hi All, happy new year!
I have downloaded the last version of Prestashop and I have installed only one module in order to try it: mailalerts 2.2, because it has an option to email the customer when an item is available again. This is a great option!

All the module works fine, but when a registered user clic in "My Alerts", the FO show this error:

Warning: require_once(/home/shopicar/public_html/asolas/tienda/config/../classes/MailAlerts.php) [function.require-once]: failed to open stream: No such file or directory in /home/shopicar/public_html/asolas/tienda/config/config.inc.php on line 22

Fatal error: require_once() [function.require]: Failed opening required '/home/shopicar/public_html/asolas/tienda/config/../classes/MailAlerts.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/shopicar/public_html/asolas/tienda/config/config.inc.php on line 22

I don´t understand what can it means. Maybe this module is not compatible with my Prestashop 1.1.0.5? Please, help me.

Thanx.

Link to comment
Share on other sites

Hi, thanx for your quickly answer.
Now I can see the My Alerts page, but when i try to delete a subscription to an alert the site gives me this error:

Warning: Missing argument 4 for MailAlerts::deleteAlert(), called in /home/shopicar/public_html/asolas/tienda/modules/mailalerts/myalerts.php on line 17 and defined in /home/shopicar/public_html/asolas/tienda/modules/mailalerts/mailalerts.php on line 449

Do you know why?

Link to comment
Share on other sites

I've never seen that message before, but I haven't tried to get the module to work in v1.1. I'm using v1.2.5. From the message, it seems that the fourth parameter $id_product_attribute is missing on line 17 of myalerts.php. Make sure that it is the following:

MailAlerts::deleteAlert($id_customer, 0, $id_product, $id_product_attribute);

Link to comment
Share on other sites

Oh no, i only have this code:

MailAlerts::deleteAlert($id_customer, $id_product, $id_product_attribute);

So i add this " 0," and it starts to work fine. Now i don´t get the error message.

I have made some subscriptions and delete after and all works fine now.

Really thankful.

Rober.

Link to comment
Share on other sites

×
×
  • Create New...