作者:_A-lan | 来源:互联网 | 2023-05-19 05:08
OKmyclientwantstoshowabuybothfeatureinthecart,iftheyhave1particularitemtypeinth
OK my client wants to show a buy both feature in the cart, if they have 1 particular item type in the cart they want it to show up for another particular item type so if they buy both they can save $50 off the total. I am trying to wrap my head around what would be the best way to set this up so it couldn't be easily hacked (ie: adding both to the cart then removing one and keeping the discount)
好吧我的客户想要在购物车中显示购买两个功能,如果他们希望它出现在另一个特定项目类型的购物车中有1个特定项目类型,那么如果他们同时购买它们可以节省50美元。我试图围绕什么是设置它的最佳方式,所以它不容易被黑客攻击(即:将两者都添加到购物车然后删除一个并保持折扣)
does anyone have some general ideas in theory?
有没有人在理论上有一些一般性的想法?
Thanks.
5 个解决方案