Error when no stock
-
I get an error when a user tries to view an out of stock item relating to the digital wallet.
Fatal error: Uncaught Exception: You cannot add that amount of “Valentine’s Selection Box”; to the cart because there is not enough stock (0 remaining). in /homepages/30/d857421970/htdocs/clickandbuilds/MellorsMeltingMoments/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php:284 Stack trace: #0 /homepages/30/d857421970/htdocs/clickandbuilds/MellorsMeltingMoments/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php(233): WooCommerce\Square\Gateway\Digital_Wallet->get_product_payment_request(367) #1 /homepages/30/d857421970/htdocs/clickandbuilds/MellorsMeltingMoments/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php(202): WooCommerce\Square\Gateway\Digital_Wallet->get_payment_request_for_context(‘product’) #2 /homepages/30/d857421970/htdocs/clickandbuilds/MellorsMeltingMoments/wp-includes/class-wp-hook.php(287): WooCommerce\Square\Gateway\Digital_Wallet->enqueue_scripts(”) #3 /homepages/30/d857421970/htdocs/clickandbuilds/MellorsMeltingMoments/wp-includes/ in /homepages/30/d857421970/htdocs/clickandbuilds/MellorsMeltingMoments/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php on line 284
- The topic ‘Error when no stock’ is closed to new replies.