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

volocuga’s picture

Here 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?

volocuga’s picture

Status: Active » Fixed

Fixed 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')) {

YK85’s picture

Status: Fixed » Needs review

if 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!

bmagistro’s picture

Status: Needs review » Postponed (maintainer needs more info)

Changing 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.

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No 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.