trybeforeyoudie Posted January 24, 2017 Share Posted January 24, 2017 (edited) I have a problem with the module loyalty points. It works well but when I put the price 0.60 euro then gives this "No reward points for this product."If I put the price back above the 1 euro then it works again.price above 1 euro http://geurmeltcompany.nl/en/t-shirts/gebleekte-t-shirts-met-korte-mouwen.htmlprice 0.60 euro http://geurmeltcompany.nl/en/blouse/blouse.html But if I were the product of 0.60 euro in the shopping cart and it is going to pay then he gives By checking out this shopping cart you can collect up to 1 loyalty point that can be converted into a voucher of 0,01 €.Who can help me here? My Prestashop version 1.6.1.11 Edited January 24, 2017 by trybeforeyoudie (see edit history) Link to comment Share on other sites More sharing options...
trybeforeyoudie Posted January 25, 2017 Author Share Posted January 25, 2017 I have a problem with the module loyalty points. It works well but when I put the price 0.60 euro then gives this "No reward points for this product." If I put the price back above the 1 euro then it works again. price above 1 euro http://geurmeltcompany.nl/en/t-shirts/gebleekte-t-shirts-met-korte-mouwen.html price 0.60 euro http://geurmeltcompany.nl/en/blouse/blouse.html But if I were the product of 0.60 euro in the shopping cart and it is going to pay then he gives By checking out this shopping cart you can collect up to 1 loyalty point that can be converted into a voucher of 0,01 €. Who can help me here? My Prestashop version 1.6.1.11 solved!!! Comment out line 30 in /themes/your-theme/js/modules/loyalty/js/loyalty.js should read: $(document).ready(function() { $(document).on('change', '#our_price_display', function(e){ updateLoyaltyView(parseInt($('#our_price_display').text())); }); /* FOLLOWING LINE COMMENTED OUT FOR INTERIM POINTS DISPLAY FIX - OBE */ /* updateLoyaltyView(parseInt($('#our_price_display').text())); */ function updateLoyaltyView(new_price) { if (typeof(new_price) == 'undefined' || typeof(productPriceWithoutReduction) == 'undefined') return; var points = Math.floor(new_price / point_rate); var total_points = points_in_cart + points; var voucher = total_points * point_value; if (!none_award && productPriceWithoutReduction != new_price) { $('#loyalty').html(loyalty_already); } else if (!points) { $('#loyalty').html(loyalty_nopoints); } else { var content = loyalty_willcollect + " <b><span id=\"loyalty_points\">"+points+'</span> '; if (points > 1) content += loyalty_points + "</b>. "; else content += loyalty_point + "</b>. "; content += loyalty_total + " <b><span id=\"total_loyalty_points\">"+total_points+'</span> '; if (total_points > 1) content += loyalty_points; else content += loyalty_point; content += '</b> ' + loyalty_converted + ' '; content += '<span id="loyalty_price">'+formatCurrency(voucher, currencyFormat, currencySign, currencyBlank)+'</span>.'; $('#loyalty').html(content); } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now