简体   繁体   English

jQuery拖放购物车问题

[英]jQuery Drag-drop Cart Issue

So i'm following This tutorial to implement shopping cart into a page 因此,我正在按照本教程将购物车实施到页面中

but i'm kind of stuck with making couple of modifiers 但我有点坚持做几个修饰符

  • How can i remove the item from the product list when it's dragged to the cart ? 将商品拖到购物车后,如何从产品列表中删除商品? ( so the user can't add it more than one time ) (因此,用户最多只能添加一次)

  • and how can i add "Remove" method to the products in the cart, and it'll also go back to the product list ? 以及如何将“删除”方法添加到购物车中的产品,它还会返回到产品列表?

Here's JsBin demo of it ( if anyone can put a example using jsbin it'll much better ) 这是它的JsBin演示(如果有人可以使用jsbin编写示例,那就更好了)

Any help would be appreciated 任何帮助,将不胜感激

~Thanks in Advance 〜预先感谢

Here is the working code in jsbin .. you can refer it. 这是jsbin中的工作代码..您可以引用它。 You can add more functionalities to it like edit row, update row. 您可以为其添加更多功能,例如编辑行,更新行。 Here is the code reference link add,edit,delete easy ui 这是代码参考链接, 添加,编辑,删除简易用户界面

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

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