简体   繁体   中英

Refresh of Shopping cart on item added

i am currently building a custom shopping cart to my website, it has all the items on the left and a slim view of the basket on the right with a list of all the items added plus a total value price. What i want is for the price and list to update when a user clicks on add to basket, but i don't want the page to reload, i know that AJAX can be used for this, but i was wondering if anyone had any tutorials that could show me some examples of being able to do this.

I am just getting a bit confused at the moment.

Thanks

there are many ajax shopping cart examples on internet, you can find them on google... for now here are some links for you

http://tutorialzine.com/2009/09/shopping-cart-php-jquery/

http://www.99points.info/2010/12/ajax-shopping-cart-with-jquery-and-php/

more than two hyperlinks are not allowed for me to post so i am posting hyperlinks without http :

net.tutsplus.com/tutorials/php/how-to-build-a-shopping-cart-using-codeigniter-and-jquery/

webresourcesdepot.com/ajaxed-sliding-shopping-cart-with-jquery/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM