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.