Page 1 of 1

AJAX Updates on shopping_cart.php page

Posted: Thu Jul 31, 2025 2:30 pm
by burt
I've been trying to get to this task for a while, but never found time. I have got the shopping_cart AJAXy (in other words, no page reload needed), and no need for customer to click the "refesh" button when they update Qty;

1. addition of - and + buttons by the Qty Input, when clicked
- the Qty in the input box increases/decreases
- the line item price changes appropriately
- the sub-total changes appropriately
- the core shopping_cart in the Navbar updates appropriately

2. the red delete button, when clicked
- removes the line item
- the sub-total changes appropriately
- the core shopping_cart in the Navbar updates appropriately


https://www.youtube.com/watch?v=A1W58AisALg


In this video, notice the Navbar auto-updating as Qty is changed.