Hi All,
The Swiss National bank did away with the 1 cent coin and so all prices are now rounded to the nearest 5 cents. Whenever you buy something at a shop the price is either rounded down or up depending on where you are. Wit that a lot of the ERP systems built that operate in Switzerland, including SAP, have built systems to comply with this financial change, and generally automatically apply the rounding internally. Turning this feature off for a specific sales channel (Shopify) is either very difficult or not possible and so we are trying to find a solution, but I honestly dont think there is currently a possiblity to solve this within Shopify.
Am I wrong? Has someone an idea how this could be done?
If the sub total is 29.99 the price would normally go up to 30.00, 29.94 to 29.95, 29.96 down to 29.95, 29.93 to 29.90 and so on.
Now I know already that going up is probably impossible, so our only alternative would be in each case to go down using a discount function. The issue here is then timing.
If we have a subtotal price of 29.98 I can add an order discount of 3 cents to reduce the price to 29.95, which would work just fine. The difficulty now is if the customer has a discount code of say 10%… The sub-total is 29.95, 10% is 2.99 (or would it get rounded to 3?) = new sub-total is 26.96, and again we are not at 5 cents, would my function run again after the customer added the discount?
If so what price would I get in my function, would I be able to adjust the discount based on the new sub-total so that I could once again round it to 5 cents, and if so would the 10% discount that was applied to the order sub-total also get called again leading us to an infinite loop?
Has anyone ever done anything like this, is it even possible, any help would be appreciated. @Liam-Shopify - could you check with the devs and see if any minds way smarter than mine have any ideas on how to crack this problem?
Cheers,
Gary