jbond Posted January 17, 2014 Share Posted January 17, 2014 Hi everyone, Wonder if anyone can help. My loyalty points always show the maximum you can get on the higher priced combination, even when the customer has selected a lower cost option. This is then corrected in the cart, but causes an issue that customer is being told on product page he'll collect on the cart for e.g. 10 points but then only gets 2. I saw a post for different version with the products.tpl change solution but doesn't seem to work for 1.5.6.0 with module loyalty version 1.9 Would really appreciate some help as I feel we're misleading customers and am uncomfortable with it. Thanks in advance. Cheers Link to comment Share on other sites More sharing options...
luisgalvan Posted January 17, 2014 Share Posted January 17, 2014 Hi everyone, Wonder if anyone can help. My loyalty points always show the maximum you can get on the higher priced combination, even when the customer has selected a lower cost option. This is then corrected in the cart, but causes an issue that customer is being told on product page he'll collect on the cart for e.g. 10 points but then only gets 2. I saw a post for different version with the products.tpl change solution but doesn't seem to work for 1.5.6.0 with module loyalty version 1.9 Would really appreciate some help as I feel we're misleading customers and am uncomfortable with it. Thanks in advance. Cheers I have the same problem with prestashop 1.5.6.1 and loyalty 1.9 Link to comment Share on other sites More sharing options...
jbond Posted January 20, 2014 Author Share Posted January 20, 2014 Hi guys, Anyone? Please? Still can't figure out and it's showing wrong information that can upset customers , please help!!!! Cheers Link to comment Share on other sites More sharing options...
tobbecokta Posted February 2, 2014 Share Posted February 2, 2014 I too have the same issue... Link to comment Share on other sites More sharing options...
memosxo Posted February 4, 2014 Share Posted February 4, 2014 I have the same problem in my shop : http://www.centrumspawalnicze.pl/spawalnicze/292-rekawice-spawalnicze-weldas-comfoflex-10-2750.html Prestashop 1.5.6.1, Loyalty version 1.9 Please for help !!! Link to comment Share on other sites More sharing options...
doudouille Posted August 22, 2014 Share Posted August 22, 2014 Hi everyone, Here's the solution for PS 1.5.6.2 and loyalty module 1.13 Actually, the problem comes from a javascript variable which is not correctly defined and set to local instead of global. You must modifiy three files in your theme : First go to themes/mytheme/modules/loyalty/product.tpl and change line at the beginning of the file (line 42 for me): var points = Math.round(productPrice / point_rate); into : var points = Math.round(productPriceDisplay / point_rate); Then, go to themes/mytheme/product.tpl and find line (89 for me): var productPrice = '{$productPrice}'; Keep that line unchanged and add below that new line : var productPriceDisplay = '{$productPrice}'; So that finally you stay with your code as follows : var productPrice = '{$productPrice}'; var productPriceDisplay = '{$productPrice}'; And finally, go to themes/mytheme/js/product.js, and find function updateDisplay() (line 149 for me), and at the beginning of the function, find line : var productPriceDisplay = productPrice; And change it into productPriceDisplay = productPrice; You're done ! Beware that this works for 1.5.6.2 and loyalty 1.13. Don't know what it will do in other versions Link to comment Share on other sites More sharing options...
suministrospasai Posted March 4, 2015 Share Posted March 4, 2015 Dear doudouille, Have you done this for last version 1.6.0.13 with module 1.2.7? Regards 1 Link to comment Share on other sites More sharing options...
tarmouti Posted June 16, 2015 Share Posted June 16, 2015 Refresh. Does anybody still have this issue? PS - 1.6.0.8 and the newest loyalty module version. 1 Link to comment Share on other sites More sharing options...
suministrospasai Posted August 28, 2015 Share Posted August 28, 2015 Still with this problem on 1.6.1.1 and loyalty 1.2.8... Link to comment Share on other sites More sharing options...
meimei Posted November 18, 2015 Share Posted November 18, 2015 hi i have the issue where the product page will display NO POINTS FOR BUYING THIS PRODUCT but it will show total reward points and could be converted to $xxx.xx only at shopping cart. I am using PS 1.6.1.2 using Loyalty 1.2.8 Link to comment Share on other sites More sharing options...
Recommended Posts