Unverified Commit e53f8bde authored by PululuK's avatar PululuK Committed by GitHub
Browse files

Merge pull request #26434 from kpodemski/fix/fix-adding-to-cart

Fix adding to cart with the click on the icon
parents 58ebf035 154d0527
......@@ -97,10 +97,10 @@ $(document).ready(() => {
$body.on('click', '[data-button-action="add-to-cart"]', (event) => {
const $form = $(event.target.form);
const $form = $(event.currentTarget.form);
const query = `${$form.serialize()}&add=1&action=update`;
const actionURL = $form.attr('action');
const addToCartButton = $(event.target);
const addToCartButton = $(event.currentTarget);
addToCartButton.prop('disabled', true);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment