pedes Posted September 10, 2009 Share Posted September 10, 2009 I installaed the birthday present module, i configured it and setup a cronjob ... i got 2 customers with a birthday today, they get no email or some voucheri need some help ...how do i set up this birthday module ??what did i forgot ?i use PS Version 1.2.1.0thnx,Peter Link to comment Share on other sites More sharing options...
msk69 Posted September 11, 2009 Share Posted September 11, 2009 If i remember it right, you can also call the module directly in the url of your browser, and will show a message. Link to comment Share on other sites More sharing options...
sumantas Posted December 10, 2009 Share Posted December 10, 2009 I have a problem with birthday present module:the vouchers are generated ok, but when the customer enters voucher code the message "voucher expired" appears, although the voucher shows validity of 12 months. Could this be related to some warnings I get after cronjob:"PHP Notice: Undefined index: HTTP_HOST in /var/www/vhosts/../classes/Cookie.php on line 67PHP Notice: Undefined offset: 4 in /var/www/vhosts/../classes/Cookie.php on line 70PHP Notice: Undefined index: HTTP_HOST in /var/www/vhosts/../classes/Cookie.php on line 72PHP Notice: Undefined index: HTTP_HOST in /var/www/vhosts/../init.php on line 99PHP Notice: Undefined index: HTTP_HOST in /var/www/vhosts/../init.php on line 118PHP Notice: Undefined index: HTTP_HOST in /var/www/vhosts/../classes/Mail.php on line 96PHP Notice: Undefined index: HTTP_HOST in /var/www/vhosts/../classes/Mail.php on line 96PHP Notice: Undefined index: HTTP_HOST in /var/www/vhosts/../classes/Mail.php on line 96OK"This error is really annoying since I have to include the voucher for the customer's order manualy through database... and it realy spoils the present for the customer Maybe you have encountered the same problem and found a solution???? Link to comment Share on other sites More sharing options...
sumantas Posted September 11, 2010 Share Posted September 11, 2010 The solution is quite simple, however I searched for it for 1.5 years now... and I found it! The problem is that in birthdaypresent.php voucher name is always 'birthday' so prestashop creates the same voucher name for different customers, that is why the system thinks that the voucher is expired. Just change the line (somewhere around line 109) in birthdaypresent.php so it creates a unique voucher name every time, for example:$voucher->name = date('Y').'BP'.$user['id_customer'];That's it! Enjoy and have a lot of happy customers Link to comment Share on other sites More sharing options...
rocky Posted September 12, 2010 Share Posted September 12, 2010 That's great you figured it out. It's a shame that it took so long to find it. What version of PrestaShop are you using? I was going to report this to the bug tracker, but when I checked the code in PrestaShop v1.3.1, it seems to be already fixed: $voucher->name = 'BIRTHDAY-'.intval($voucher->id_customer).'-'.date('Y'); Link to comment Share on other sites More sharing options...
sumantas Posted September 12, 2010 Share Posted September 12, 2010 I'm using Prestashop version 1.2.5.0 and yes it seems that version 1.3 has already fixed a bug. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now