Jump to content

Recommended Posts

Some products (the categories added to Loyalty reward already) on product page is show the points of reward and than they are hidden.

How can I fix them?

 

---- My Information ----

Prestashop version 1.6.1.13

Customer loyalty and rewards version 1.2.9

Edited by 365shopy (see edit history)
Link to comment
Share on other sites

When I set LOYALTY REWARD to all categories and then I'am going to product page, they're show the point of reward for moment after that they're gone.

I think it's so JavaScript problem.

 

------- BUT I FOUND the SOLUTION --------

I thread a JavaScript of LOYALTY module.

from 

updateLoyaltyView(parseInt($('#our_price_display').text()));

thread

updateLoyaltyView(Number($('#our_price_display').text().replace(/[^0-9\.-]+/g,"")));

 

Thanks

Link to comment
Share on other sites

  • 1 year later...

FIX FOR Customer loyalty and rewards v1.2.9 - by PrestaShop

YourStoreRoot/themes/default-bootstrap/js/modules/loyalty/js/loyalty.js

CHANGE

updateLoyaltyView(parseInt($('#our_price_display').text()));

TO

updateLoyaltyView(Number($('#our_price_display').text().replace(/[^0-9\.-]+/g,"")));

THEN SAVE IT AND WILL SHOW POINTS CORRECTLY AGAIN

02 Nov. 30 12.50.jpg

Edited by ps4decals (see edit history)
Link to comment
Share on other sites

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