Shopify function is not even executing with discount coupon

Hi,

I am facing an issue where my free shipping discount function is not executing with the discount code. I can not see any logs for function execution in my partner account with the discount code.

Hey SW_,

Heddy from Gameball: Loyalty Program & VIP here!

It sounds like the issue with your free shipping discount might be due to a setup or execution problem. If you’re not seeing any logs for the function execution in your partner account, double-check the code configuration and ensure the function is linked properly to the discount code. If everything looks correct, you may want to reach out to Shopify support to dig deeper into why the function isn’t firing.

Let me know if you need more help troubleshooting!

Hi @heddykhalifa

Thanks for your reply. Please give me some guidance on how I can combine my Shopify function (for free shipping discount) with the order discount I cannot find any guide on this.

My function is executing as it should be when no order discount is applied on the checkout, but as soon as I apply the discount coupon. The function stops executing, no logs on the partner dashboard.

Let me know if you have any further questions on this.

Thank you

If this is a setup or execution problem, then the function should not execute even on when no

It sounds like the issue arises when applying an order discount in combination with your free shipping function. Shopify’s system might be prioritizing one discount over the other, which prevents your free shipping function from executing. Since there’s no official guide on combining these discounts, you could try checking the conditions or precedence rules in your code. Ensure that both discounts are configured to “combine” and that they don’t cancel each other out. A custom solution via Shopify Scripts (available on Shopify Plus) may also resolve this issue.