The amount must be an integer

The amount must be an integer

Fixing The amount must be an integer Error in Bagisto

2. Modify the Cart Price Calculation If the error occurs during checkout, modify the cart total calculations. File: packages/Webkul/Checkout/src/Cart.php Find the part where grand_total is assigned: php CopyEdit $cart->grand_total = round($cart->grand_total); Change it to: php CopyEdit $cart->grand_total = (int) round($cart->grand_total);

Read more...