Closed okimann closed 1 year ago
I tried to reproduce this bug but spotted a different issue with code responsible for creating/updating coupons in the Control Panel. I'm not 100% sure if it'll fix this for you but it's worth a go...
Could you please try updating to Simple Commerce v4.5.4, then delete & re-create the coupon in the Control Panel?
Could you let me know if you still run into the issue after doing that or not?
Hi, i upgraded to 4.5.4 and now it works perfectly, thanks!
Description
I've done a clean install of the Simple Commerce starter kit and added a coupon that requires a Minimum Cart Value of $600. At payment my cart is $15 but i can still use the coupon and get a discount. {{ sc:cart:itemsTotal }} returns $15 and {{ sc:coupon:minimum_cart_value }} returns $600.
Steps to reproduce
Environment
Environment Application Name: Statamic Laravel Version: 9.50.2 PHP Version: 8.1.15 Composer Version: 2.4.4 Environment: local Debug Mode: ENABLED URL: simple-commerce.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: GBP 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: 1 Antlers: runtime Stache Watcher: Enabled Static Caching: Disabled Version: 3.4.2 PRO
Statamic Addons doublethreedigital/simple-commerce: 4.5.3