Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to apply a "free trial" coupon code, the following error is returned: "The coupon code you have entered is not valid in EUR.".
Looking up this error I traced it to the following lines starting at build/sites/all/modules/contrib/recurly/modules/recurlyjs/includes/recurlyjs.pages.inc:668,
where only amount discounts are allowed. A check for free trial coupons should be added and allowed (see https://docs.recurly.com/v1.0/docs/coupons#section-free-trial-coupons).
Comment | File | Size | Author |
---|---|---|---|
#7 | recurly-cannot_use_free_trial_coupon_code-2928302-7.patch | 784 bytes | tibezh |
Comments
Comment #2
andreigg CreditAttribution: andreigg commentedThe following patch fixes the problem traced in recurlyjs/recurlys.pages.inc
Comment #3
andreigg CreditAttribution: andreigg commentedThe code exists already in includes/recurly.pages.inc but did not exist in modules/recurlyjs/includes/recurlyjs.pages.inc. The patch above fixes the issue reported in this ticket.
Comment #4
markdorison@andreigg
If you could attach those changes in a patch file it would be much appreciated. Documentation: Making a Drupal patch with Git
Comment #5
tibezh CreditAttribution: tibezh at OPTASY, Drupal Ukraine Community commentedHere is a patch
Comment #6
markdorisonYou are now examining the
$form_state['coupon']
object instead of$coupon
; is that intentional?Comment #7
tibezh CreditAttribution: tibezh at OPTASY, Drupal Ukraine Community commentedOh, sorry, I hurried
Take a look for a new patch please
Comment #8
markdorisonThe patch in #7 looks good. It also looks like this fix is already included in 8.x-1.x.
Comment #10
markdorison