awesomemotive / easy-digital-downloads

Sell digital downloads through WordPress
https://easydigitaldownloads.com
GNU General Public License v2.0
865 stars 475 forks source link

Once multi-option is added to cart, unable to add additional items without refresh #7338

Open dgoldak opened 5 years ago

dgoldak commented 5 years ago

Bug Report

Expected behavior

Select 1 variable "Multi-option" and click Add to Cart. If you select a 2nd variable "multi-option", you should be able to add to cart.

Actual behavior

Select 1 variable "Multi-option" and click Add to Cart. If you select a 2nd variable "multi-option", since the button is now a checkout button, you can't add another option to cart.

Steps to reproduce the behavior

1) Create a variable "Multi-option" product 2) From the product page, select one option 3) Click Add To Cart. 4) Select another option. 5) Button should allow you to add the 2nd option to cart.

Information (if a specific version is affected):

PHP Version: 7.2

EDD Version (or branch): 2.9.16

WordPress Version: 5.2.2

Any other relevant information: https://secure.helpscout.net/conversation/897318300/124655?folderId=180499

cklosowski commented 5 years ago

@dgoldak what are the expectations of the checkbox from step 2 and 3?

Would this add a 2nd of the option from step 2 to the cart?

dgoldak commented 5 years ago

@cklosowski good question! The customer assumes clicking "Checkout" should add the item to cart. I don't know that I agree. I'm wondering if selecting another option could revert the button back to "Purchase"?