Problem/Motivation

Before the vanilla js patch to remove jQuery dependencies, the "Add to cart" button behavior upon successful call would be showing a message after the button.
The new patch replaced the button entirely, which the first impression is that the product only can be add to cart once.
But upon refresh of the page, the button re-appear.

Steps to reproduce

Install the module > enable a content type > go to content > click "Add to cart"

Proposed resolution

Keep the "Add to cart" and show the message separately (not replacing) upon ajax call.

Issue fork basic_cart-3557070

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ktch_my created an issue. See original summary.

harjyottkaurr’s picture

Assigned: Unassigned » harjyottkaurr

I am working on this

norman.lol’s picture

Version: 8.x-8.11 » 8.x-8.x-dev

Have you been using quantity or without quantity?

norman.lol’s picture

Title: UI/UX for add to cart button » Keep the "Add to cart" and show the message separately (not replacing) upon ajax call
harjyottkaurr’s picture

without the quantity field

norman.lol’s picture

Status: Active » Needs review
harjyottkaurr’s picture

Assigned: harjyottkaurr » Unassigned