30knees Posted November 5, 2020 Share Posted November 5, 2020 (edited) Update: This is a Panda theme issue. Problem: I have a product with a combination. The price for 1x is 10 incl. taxes. This is displayed correctly. Starting at 5x the price is set as 9 incl. taxes. It should show 9 incl. taxes (which would be 8 excl. taxes). However, it shows 8 excl. taxes. It's misleading for customers, understandably. Edited November 9, 2020 by 30knees Update Link to comment Share on other sites More sharing options...
0 datakick Posted November 5, 2020 Share Posted November 5, 2020 I can't reproduce this issue. Could you please provide some screenshots, both from the admin and frontend? Note that this might be theme issue Link to comment Share on other sites More sharing options...
0 30knees Posted November 7, 2020 Author Share Posted November 7, 2020 Thank you for helping out. Admin specific price: Combination standard price: Frontend price standard: Front end price with volume discount 2x: Shopping cart price for volume discount 2x (this is your Chex module): 17.02 / 2 is 8.51, which is the displayed volume price above plus tax. Link to comment Share on other sites More sharing options...
0 datakick Posted November 7, 2020 Share Posted November 7, 2020 I've re-tested with your numbers and it works fine for me. I guess this is either theme issue, or you are using old thirtybees version. Link to comment Share on other sites More sharing options...
0 30knees Posted November 8, 2020 Author Share Posted November 8, 2020 Thank you, datakick. I'm using the Panda theme. @JonnyAre you aware of any issues as described above? I have version 1.5.5. Link to comment Share on other sites More sharing options...
0 30knees Posted November 9, 2020 Author Share Posted November 9, 2020 Yes, it is the theme. I tested with the community template and it works perfectly fine there. Link to comment Share on other sites More sharing options...
0 datakick Posted November 12, 2020 Share Posted November 12, 2020 Try to upload js/product.js from community or niara theme to panda to see if it fixes the problem. Back up the original file, of course Link to comment Share on other sites More sharing options...
0 30knees Posted November 12, 2020 Author Share Posted November 12, 2020 Unfortunately, it didn't work. It also prevented the product photo from displaying when I did that. I used the community theme to do so. Thank you for the tip, though! Link to comment Share on other sites More sharing options...
0 haylau Posted November 12, 2020 Share Posted November 12, 2020 Have you reported this directly on the sunnytoo forum? Link to comment Share on other sites More sharing options...
0 datakick Posted November 13, 2020 Share Posted November 13, 2020 This is indeed bug in product.js file, function updateDiscountTable. Change it from: function updateDiscountTable(newPrice) { $('#quantityDiscount').find('tbody tr').each(function() { var type = $(this).data('discount-type'); var discount = $(this).data('discount'); var quantity = $(this).data('discount-quantity'); var discountedPrice; var discountUpTo; if (type == 'percentage') { discountedPrice = newPrice * (1 - discount / 100); discountUpTo = newPrice * (discount / 100) * quantity; } else if (type == 'amount') { discountedPrice = newPrice - discount; discountUpTo = discount * quantity; } if (displayDiscountPrice != 0 && discountedPrice != 0) { $(this).attr('data-real-discount-value', formatCurrency(discountedPrice * currencyRate, currencyFormat, currencySign, currencyBlank)); $(this).children('td').eq(1).text(formatCurrency(discountedPrice * currencyRate, currencyFormat, currencySign, currencyBlank)); } $(this).children('td').eq(2).text(upToTxt + ' ' + formatCurrency(discountUpTo * currencyRate, currencyFormat, currencySign, currencyBlank)); // $(this).attr('data-real-discount-value', formatCurrency(discountedPrice * currencyRate, currencyFormat, currencySign, currencyBlank)); }); } to function updateDiscountTable(newPrice) { $('#quantityDiscount').find('tbody tr').each(function() { var type = $(this).data('discount-type'); var discount = $(this).data('discount'); var quantity = $(this).data('discount-quantity'); var discountedPrice; var discountUpTo; if (type == 'percentage') { discountedPrice = newPrice * (1 - discount / 100); discountUpTo = newPrice * (discount / 100) * quantity; } else if (type == 'amount') { discountedPrice = newPrice - discount; discountUpTo = discount * quantity; } if (displayDiscountPrice != 0 && discountedPrice != 0) { $(this).children('td').eq(1).text(formatCurrency(discountedPrice, currencyFormat, currencySign, currencyBlank)); } $(this).attr('data-real-discount-value', formatCurrency(discountedPrice, currencyFormat, currencySign, currencyBlank)); $(this).children('td').eq(2).text(upToTxt + ' ' + formatCurrency(discountUpTo, currencyFormat, currencySign, currencyBlank)); }); } In community theme / niara this was fixed by commit https://github.com/thirtybees/niara/commit/e70102d1816aa1af03c2d8ff2b9d446146aa3ff9 1 Link to comment Share on other sites More sharing options...
0 30knees Posted November 13, 2020 Author Share Posted November 13, 2020 16 hours ago, haylau said: Have you reported this directly on the sunnytoo forum? They changed their login method and I'm waiting for access. I may need to send a follow-up if I don't hear back by end of next week. Link to comment Share on other sites More sharing options...
0 30knees Posted November 13, 2020 Author Share Posted November 13, 2020 2 hours ago, datakick said: This is indeed bug in product.js file, function updateDiscountTable. (SNIP) Change it from:In community theme / niara this was fixed by commit https://github.com/thirtybees/niara/commit/e70102d1816aa1af03c2d8ff2b9d446146aa3ff9 Thank you so much, that's so nice of you to check! Thank you so much. 🙂 Link to comment Share on other sites More sharing options...
Question
30knees
Update: This is a Panda theme issue.
Problem:
I have a product with a combination. The price for 1x is 10 incl. taxes. This is displayed correctly.
Starting at 5x the price is set as 9 incl. taxes. It should show 9 incl. taxes (which would be 8 excl. taxes). However, it shows 8 excl. taxes.
It's misleading for customers, understandably.
Edited by 30kneesUpdate
Link to comment
Share on other sites
11 answers to this question
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