I think I’ve followed all the instructions and it shows nicely on the cart in my debut theme. But when I actually test the Estimate Shipping Button, the results are not good:
class=“success” <% } else { %> class=“error” <% } %>> <% if (success) { %> <% if (rates.length > 1) { %> There are <%- rates.length %> shipping rates available for <%- address %>, starting at <%= rates[0].price %>. <% } else if (rates.length == 1) { %> There is one shipping rate available for <%- address %>. <% } else { %> We do not ship to this destination. <% } %> <% } else { %> <%- errorFeedback %> <% } %>
<% for (var i=0; i<rates.length; i++)=“” {=“” %=“”>- <%- rates[i].name %> at <%= rates[i].price %><% } %></rates.length;>
Where did I go wrong?