希望有人可以提供帮助...
我们商店中有两种产品,即直销店和特级店。
在结帐页面上,由于客户试图为已经打折的商品输入折扣代码,我们损失了大量的销售量。
是否可以创建一个Shopify Plus脚本,该脚本将..
看起来很简单,但是我在任何地方都找不到好的答案。
谢谢!
答案 0 :(得分:0)
使用checkout.liquid
布局可根据购物车中的当前商品删除该输入。
{%- liquid
assign hideDiscountBox = false
assign productIdsToHideDiscountBox = "123456789012345,543210987654321,..."
for item in checkout.line_items
if productIdsToHideDiscountBox contains item.product_id
assign hideDiscountBox = true
break
endif
endfor
if hideDiscountBox
echo "<style>.order-summary__section--discount { display: none; }</style>"
endif
-%}