AJAX Updates on shopping_cart.php page

Open to all! Ask other shopowners for help.
Post Reply
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

AJAX Updates on shopping_cart.php page

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply