Jump to content

Hack attempt (Discount->description is empty for default language)


Recommended Posts

find
function createDiscount in followup.php

comment 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

  • 1 month later...

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

  • 4 weeks later...

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:


function createDiscount in followup.php

comment 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

  • 10 months later...
  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...