Skip to content

Commit

Permalink
Revert "Fix dutch cookie corner pricing"
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurocon authored Mar 5, 2025
1 parent c108da5 commit 822f098
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions amelie/personal_tab/static/js/personal_tab_pos.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,7 @@ function setupCalculator(calculator) {
var inputValue = parseInt(inputfield.attr('value'), 10);
if(!isNaN(inputValue) && inputValue > 0){
// Add to cart
// We replace the potential ',' by a '.' for the parseFloat function.
addToCart(productId, productName, parseInt(inputfield.attr('value'), 10), parseFloat(productPrice.replace(",", ".")), productImage);
addToCart(productId, productName, parseInt(inputfield.attr('value'), 10), parseFloat(productPrice), productImage);
// Clear the input field
inputfield.attr('value', '');
// Return to main tab
Expand Down Expand Up @@ -471,7 +470,7 @@ function setupShopPage(){
resetCart();
var article_elem = $(event.currentTarget.parentElement);
var article_id = article_elem.data('id');
var article_price = parseFloat(article_elem.data('price').replace(",", ".")); // Replace the ',' by a '.' for the Dutch website.
var article_price = parseFloat(article_elem.data('price'));
var article_name = article_elem.data('name');
var article_image = article_elem.data('image');
addToCartInstant(article_id, article_name, 1, article_price, article_image);
Expand All @@ -481,7 +480,7 @@ function setupShopPage(){
resetCart();
var article_elem = $(event.currentTarget.parentElement);
var article_id = article_elem.data('id');
var article_price = parseFloat(article_elem.data('price').replace(",", ".")); // Replace the ',' by a '.' for the Dutch website.
var article_price = parseFloat(article_elem.data('price'));
var article_name = article_elem.data('name');
var article_image = article_elem.data('image');
addToCartInstant(article_id, article_name, 1, article_price, article_image);
Expand All @@ -490,7 +489,7 @@ function setupShopPage(){
$('.article-addtocart').click(function(event){
var article_elem = $(event.currentTarget.parentElement);
var article_id = article_elem.data('id');
var article_price = parseFloat(article_elem.data('price').replace(",", ".")); // Replace the ',' by a '.' for the Dutch website.
var article_price = parseFloat(article_elem.data('price'));
var article_name = article_elem.data('name');
var article_image = article_elem.data('image');
addToCart(article_id, article_name, 1, article_price, article_image);
Expand Down

0 comments on commit 822f098

Please sign in to comment.