Does anyone know if there are any issues with scripts running when a user checksout from the Shopify Plus Wholesale channel? I have writtern a script that disables free shipping for customers tagged with wholesale if their order is < $1500. This works as expected when logged into the retail channel, however the script doesn't seem to run when the customer checksout from the wholesale channel.
TAG = "wholesale" #customer tag WS_FREE_SHIPPING = Money.new(cents: 1500)*100 cartTotal = Input.cart.subtotal_price customer = Input.cart.customer if customer if customer.tags.include?(TAG) && cartTotal < WS_FREE_SHIPPING Input.shipping_rates.delete_if do |shipping_rate| shipping_rate.name.include?("Free Shipping") end end end Output.shipping_rates = Input.shipping_rates
Any insight would be greatly appreciated!
So I have found that Shopify Scripts API does not work with the Wholesale Channel. Seems like a bit of and oversite.
Is there any plan to enable some across the Wholesale channel?