Skip to content

Commit

Permalink
add to cart fix for product page
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Oct 6, 2023
1 parent 8c9a35b commit 0ff1b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _dev/js/theme/core/cart/handler/cart/addToCartHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const addToCartHandler = async (event) => {
const idProductInput = form.querySelector('[name=id_product]');
const quantityInput = form.querySelector('[name=qty]');
const idProductAttributeInput = form.querySelector('[name=id_product_attribute]');
const idCustomizationInout = form.querySelector('[name=id_product_attribute]');
const idCustomizationInout = form.querySelector('[name=id_customization]');

const idProduct = Number.parseInt((idProductInput?.value || null), 10);
const qty = Number.parseInt(quantityInput?.value, 10) || 0;
Expand Down

0 comments on commit 0ff1b42

Please sign in to comment.