I'm trying to set a hidden custom variable (num_days_late) on every order (including subscription renewals). I have found I can add to the custom link URL passed to the cart on new orders like this:
However I haven't found a way to add this to every order using the "Custom Value" variable and passed to the twig templates for the cart or checkout. Is this possible?
Secondly, once the variable is set is there a way a default value can be set on each subscription renewal order? We are trying to automate a dunning process (using OrderDesk) that sends out different emails dependent on how many days late a subscription is.
Please let us know.