Jump to content

Voucher generation problem


Recommended Posts

Hi!
I have searched the forum but found nothing on the subject so I'm posting here.

How are vouchers generated in the prestashop system? I am asking this because for some reason ( I have looked in the database) thousands of vouchers are being created for one single client under the "we miss you" croncall in the followup module. Thankfully not this many emails are being sent out!!!
I cannot figure out for the life of me where this is coming from.

If someone could help me pinpoint where the problem is coming from I sure would appreciate it!

Thanks

Link to comment
Share on other sites

Hi Rocky, and yes, they are being generated by the "bad customer" option which was working fine and then all of sudden is generating, every day, for the same person thousands of vouchers!
I have disabled it, but would like to continue using it. The since "x" value is 90days which seems reasonable.
I would really like to know how the vouchers are generated: not by the crontab which only sends the corresponding email.
I took a look at the particular customers information in mysql database to figure out why her and not another, but cannot see anything wrong...
Very strange behaviour indeed! Prestashop modules really have a life of their own huh?! :)
I very much appreciate your response Rocky, and hope you can educate me a little more on the question so I can fix the problem at the root.

Link to comment
Share on other sites

It's the badCustomer function in modules/followup/followup.php that is run by the cron job and sends the "We miss you" emails. The query appears to select all customers who have made at least one order, but haven't make any orders in the last X days, unless they've already had a "We miss you" email sent in the the last X days. I can't see anything that would cause one customer to receive many vouchers, unless the voucher is failing to be created. You could try editing config/config.inc.php and temporarily changing _PS_DEBUG_SQL_ from false to true to see whether any SQL errors are occurring.

Link to comment
Share on other sites

  • 1 month later...

I have a problem also on generating a voucher for a specific customer. I cannot add the customer that I want to have the voucher for, as only 50 of the first customenrs are shown by the drop down menu (alphabetically).

How can I get to see all the customers in this drop- down menu?

thanks

Link to comment
Share on other sites

  • 1 month later...
Hi Rocky, and yes, they are being generated by the "bad customer" option which was working fine and then all of sudden is generating, every day, for the same person thousands of vouchers!
I have disabled it, but would like to continue using it. The since "x" value is 90days which seems reasonable.
I would really like to know how the vouchers are generated: not by the crontab which only sends the corresponding email.
I took a look at the particular customers information in mysql database to figure out why her and not another, but cannot see anything wrong...
Very strange behaviour indeed! Prestashop modules really have a life of their own huh?! :)
I very much appreciate your response Rocky, and hope you can educate me a little more on the question so I can fix the problem at the root.


Hi, vezy, have the same problem on one of my two eshops. Although the followup files are the same. Strange. Have you fixed this problem?
Link to comment
Share on other sites

  • 1 year later...

Hi Rocky,

 

I have managed to configure cron job as well as successfully receive email and birthday present email. i have created 2 account, one under hotmail the other gmail, for both account, same birthday as well as simulate the order but did not successfully purchase scenario the problem is:

 

only 1 email for following up customer and 1 email for birthday present was being sent to the hotmail but NOT the gmail. meaning to say at a particular cron job, only 1 email was sent.

 

May i know what may be the cause of the problem? i have search for solutions in the forum but seems no one is able to help.

 

am pretty devastated.

Link to comment
Share on other sites

×
×
  • Create New...