Closed yaser2490 closed 1 year ago
Are you clicking the 'Add to cart' button multiple times? It's recommended that you disable the button while the form's being submitted.
No, I did not double click while submitting the form I clicked once and it was added to the cart. I clicked a second time and it was added again (is the product inventory checked here?) In all conditions, the quantity = 1 Do I need to send a video?
Do I need to send a video?
Yes please, I'm struggling to replicate myself.
Simple Commerce will re-check product stock during checkout anyway so they won't be charged for an order if there's not enough stock to fulfil it.
I use "sc:cart:addItem" tag for adding to cart.
Did you manage to get this sorted?
Yes. I used sc:cart:addItem and after i used sc:cart:updateItem.
Description
Hello I think I found a bug in the shopping cart In normal case, when the stock of the product is, for example, 2, and if I add the product to the basket 3 times, it will be added!
my English is not good :( Example: My product stock = 1
Bug is here: My product stock = 1
Steps to reproduce
:)
Environment
Environment Application Name: Statamic Laravel Version: 9.52.4 PHP Version: 8.1.12 Composer Version: 2.5.1 Environment: local Debug Mode: ENABLED URL: statabit.test Maintenance Mode: OFF
Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: CACHED
Drivers Broadcasting: log Cache: statamic Database: mysql Logs: stack / single Mail: smtp Queue: sync Session: file
Simple Commerce Currencies: USD Gateways: Dummy Repository: Customer: DoubleThreeDigital\SimpleCommerce\Customers\EntryCustomerRepository Repository: Order: DoubleThreeDigital\SimpleCommerce\Orders\EntryOrderRepository Repository: Product: DoubleThreeDigital\SimpleCommerce\Products\EntryProductRepository Shipping Methods: Standard Post Tax Engine: DoubleThreeDigital\SimpleCommerce\Tax\BasicTaxEngine
Statamic Addons: 2 Antlers: runtime Stache Watcher: Enabled Static Caching: Disabled Version: 3.4.5 PRO
Statamic Addons doublethreedigital/guest-entries: 2.1.1 doublethreedigital/simple-commerce: 4.5.8