简体   繁体   English

刷新已添加项目的购物车

[英]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. 我想要的是当用户单击添加到购物篮时更新价格和列表的方法,但是我不希望页面重新加载,我知道AJAX可以用于此目的,但是我想知道是否有人有任何教程这可以向我展示一些能够做到这一点的例子。

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 互联网上有很多ajax购物车示例,您可以在google上找到它们...现在这里有一些适合您的链接

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

http://www.99points.info/2010/12/ajax-shopping-cart-with-jquery-and-php/ 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 : 我不允许发布两个以上的超链接,因此我发布的无http的超链接:

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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