AndersIvar Posted March 28, 2010 Share Posted March 28, 2010 Tjena,Får detta när jag försöker köra ett cronjob på Followup modulen. Allt är översatt som finns att översätta, någon som vet hur man fixar?//Anderswww.kakadutraders.se Link to comment Share on other sites More sharing options...
ruilong Posted March 30, 2010 Share Posted March 30, 2010 Det är en bugg i modulen, lösningen finns på forumet om du söker, i princip behöver du ändra om lite i koden i modulen för när kupongerna skapas. Link to comment Share on other sites More sharing options...
powered Posted March 30, 2010 Share Posted March 30, 2010 Hi, ruilong can you translate your answer in english?I'm having the same error in customers follow-up: Hack attempt (Discount->description is empty for default language) thanx Link to comment Share on other sites More sharing options...
Timpet Posted April 6, 2010 Share Posted April 6, 2010 I allso have this problem, and have looked om the forum. I cant find Abu solutions, so if someone could help it would be Nice. Link to comment Share on other sites More sharing options...
ruilong Posted April 6, 2010 Share Posted April 6, 2010 findfunction createDiscount in followup.phpcomment out$discount->description[1] = $description;$discount->description[2] = $description;like this//$discount->description[1] = $description;//$discount->description[2] = $description; Link to comment Share on other sites More sharing options...
Timpet Posted April 6, 2010 Share Posted April 6, 2010 danmmm i nearly sayed i love you Link to comment Share on other sites More sharing options...
HelenI Posted May 9, 2010 Share Posted May 9, 2010 Hi!This solution does not work, I tried. Basically you have to add the languages that you have added to this$discount->description3 = $description;$discount->description4 = $description; etc depending what id -s you are using.I got this one worknig but my problem is that i only sends coupons out once, when I run the script second time it does not work anymore.When I change settings first time it goes out again as it is suppose to, but second time there is again zero recipients.No error messages, it sais only that 0 emails go out next time but it cannot be true. Link to comment Share on other sites More sharing options...
kosmik Posted June 2, 2010 Share Posted June 2, 2010 I am running PS 1.3.Yeah a similar problem, getting an error when tried to convert loyalty points to voucher: Hack attempt (Discount->description is empty for default language) Strangely, I can't even find this code in followup.php: Quote function createDiscount in followup.phpcomment out$discount->description1 = $description;$discount->description2 = $description; So anyone, please shed some light onto this. Need to have my reward program working.Thanks. Link to comment Share on other sites More sharing options...
ruilong Posted June 2, 2010 Share Posted June 2, 2010 correct solution$languages = Language::getLanguages(true);foreach ($languages AS $language) $discount->description[intval($language['id_lang'])] = $description; Link to comment Share on other sites More sharing options...
kosmik Posted June 2, 2010 Share Posted June 2, 2010 ruilong,Thanks for helping but I find the script above is exactly like the one already in followup.php of PrestaShop 1.3 which didn't work. Any comment? Link to comment Share on other sites More sharing options...
edirola Posted April 4, 2011 Share Posted April 4, 2011 Hi,I use Presta 1.4. I'm receiving message: Fatal error (Discount->description is empty for default language.) when I transforming points into vouchers. Could anybody help with the solution?Thanks,Edirola Link to comment Share on other sites More sharing options...
k3rubin Posted December 19, 2012 Share Posted December 19, 2012 On 6/2/2010 at 6:53 AM, ruilong said: correct solution $languages = Language::getLanguages(true); foreach ($languages AS $language) $discount->description[intval($language['id_lang'])] = $description; Hi, could you please explain how do you find this folder? Thanks 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