The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Free US shipping at conference booth

We are trying to implement free US shipping when folks buy a book at a conference but choose to ship rather than take it from the booth. I have added the following js

for (let d in cart['_embedded']['fx:discounts']) {
if (cart['_embedded']['fx:discounts'][d]['code'] == "freeshipping") {
rates.add(10001, 0, '', 'Free Shipping');
to the custom shipping logic field, and I have created a dummy coupon that applies 0% discount to match the coupon code (in the above, that would be freeshipping). Assuming this is remotely the right approach, I'd also like to restrict this to US addresses. On I have the box checked for US addresses.

What am I doing wrong?
Sign In or Register to comment.