Since the solution for #59 has been delivered there's been a problem with the intercommunication between the original JavaScript code in addon-scripts.js and the new code in vgccodes.js
When a product has one or more optional upgrades which are mandatory, it's possible to enable the Add to cart button before the post code has been entered.
This may result in the product being added to the cart then later discovering it's not deliverable to the customer's address
and also a Warning message
Click on "Choose from Wooden, Oiled & Painted Finishes*
Choose Oiled +£318.00
The Add to cart button is enabled.
Click on Add to cart
The product is added to the cart
The Warning message is issued
[27-Nov-2023 15:41:09 UTC] PHP Warning: Undefined array key "delivery" in
C:\apache\htdocs\wordpress\wp-content\themes\vgc\inc\custom-woo-functions.php on line 54
Since the solution for #59 has been delivered there's been a problem with the intercommunication between the original JavaScript code in
addon-scripts.js
and the new code invgccodes.js
When a product has one or more optional upgrades which are mandatory, it's possible to enable the Add to cart button before the post code has been entered.
This may result in the product being added to the cart then later discovering it's not deliverable to the customer's address and also a Warning message
Scenario
Expected ouput