Personalized checkout and custom promotions with Shopify Scripts
Hi. I have line-item promo script (shopify plus line-item script) with bulk discounts. But also have b2b customers with discounts codes.
It is possible to change the script so that if the user enters a discount code on the checkout page, the code will work. and the action of the script was canceled?
Can I set the value of the discount code in the script at which the script is not executed?
Thank you. Hope for help.
Solved! Go to the solution
This is an accepted solution.
I think you just need to add the condition before execution
if Input.cart.discount_code == nil
//line script run
end
This is an accepted solution.
I think you just need to add the condition before execution
if Input.cart.discount_code == nil
//line script run
end
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024