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.
The strange behavior: if I enable the field on checkout page, it only visible on checkout page that has a language prefix
Any ideas to fix it?
Comments
Comment #1
volocuga CreditAttribution: volocuga commentedHere is no reply,did anybody have the same problem?
Once again: I have 2 languages on my site: ukrainian and english. The default is ukrainian, but the input field on /cart/checkout page appears ONLY if language switched to "english".
Does anybody know why does it happen?
Comment #2
volocuga CreditAttribution: volocuga commentedFixed by myself
File uc_userpoints_discount.module, around line #97
original:
if ($discMethod != 0 && ($curUserPoints > 0 || request_uri() != '/cart/checkout')) {
should be
if ($discMethod != 0 && ($curUserPoints > 0 || request_uri() != 'cart/checkout')) {
Comment #3
YK85 CreditAttribution: YK85 commentedif this is a bug in the module can the fix please be committed to the module?
@volocuga - can you please create a patch to be tested?
thanks!
Comment #4
bmagistro CreditAttribution: bmagistro commentedChanging to needs more info. I cannot reproduce this with the latest dev release for this module and userpoints. Other modules are current stable release with D6. Will change to cannot reproduce if no updates made in two weeks.
Comment #5
TR CreditAttribution: TR commentedNo further information has been provided by the original poster, and the maintainer stated in #4 that he couldn't reproduce this. I'm going to assume this is no longer a problem.