Liquid, JavaScript, themes, sales channels
We're looking for a way to have Shopify calculate the tax on shipping whether or not a discount is applied so that we can map it to our accounting platform as per the example below, screenshots are the .xml view of orders:
During a normal transaction the customer selects their shipping option and tax_lines.price is calculated as expected.
When a free shipping discount is applied Shopify says "shipping = $0 so don't bother working out the tax" so we know shipping was $9 but have no idea what the tax amount would have been had the discount not been applied.
What we're hoping to achieve is to have shopify calculate the tax anyway so that we can pull the value into our accounting platform and then discount the shipping (incl tax) after that point so we can still pull the value out of shopify and know the total value of what the shipping would have been if not discounted.
Shopify suggested editing the checkout.liquid but we're unsure as to what you would change given it's all a part of the shopify default code. Has anyone been successful with similar changes or have any hints?
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024