[BUG]Discount Node Pulling Wrong Discount Metafields

Hi,

We’ve observed a recurring issue with discount functions: discount nodes are pulling metafields from other discount types for some Shopify store only

Example:

  • A free gift discount function ends up using volume discount metafields.

  • A volume discount function ends up pulling free gift metafields.

This cross-over seems to cause incorrect configuration being applied.

Any guidance on why this is happening from Shopify side? how to prevent this overlap or ensure the correct metafields are used?

1 Like

Hi @kbk_dev

Could you share more details about which nodes are receiving the incorrect metafields?

Do you have logs to show this issue happening?

The more context, the faster it is for Shopifolk to investigate and come up with a solution.

Looks like the Shopify Partner Slack has a thread about this similar issue: Slack

1 Like

Thanks for sharing this - it’s being investigated.

1 Like

Thank for the updates @Dylan and @Jonathan-Shopify , From our side we reached out to Shopify support too, Now everything works fine.

Thanks for the response!

Here are more details:

  • The issue happens between our Free Gift discount function and our Volume Discount function.

  • When the Free Gift function runs, it sometimes receives volume discount metafields.

  • Similarly, the Volume Discount function has pulled in free gift metafields.

We only caught it because the wrong configuration caused mismatched logic. In cases where the pulled metafields are still “valid,” it might go unnoticed.

As for logs: we can see this directly in the function input for the respective extensions — the metafields being passed in belong to the wrong discount type.