fix cart page when physical items.

This commit is contained in:
Russell Ballestrini 2024-12-06 08:34:55 -05:00
parent 0ead63ac58
commit 55dadce4fe

View file

@ -140,21 +140,26 @@
{% endif %}
{% if request.shop_location.local_delivery %}
<input type="radio" id="local_delivery" name="handling_option" value="local_delivery" {% if cart.handling_option == "local_delivery" %}checked{% endif %} required>
<label for="local_delivery" style="display: inline;">Local Delivery (${{ '{:,.2f}'.format(request.shop_location.local_delivery_rate) }})</label><br>
<label for="local_delivery" style="display: inline;">
Local Delivery (${{ '{:,.2f}'.format(request.shop_location.local_delivery_rate or 0) }})
</label><br>
{% endif %}
{% if request.shop_location.local_shipping %}
<input type="radio" id="local_shipping" name="handling_option" value="local_shipping" {% if cart.handling_option == "local_shipping" %}checked{% endif %} required>
<label for="local_shipping" style="display: inline;">Local Shipping (${{ '{:,.2f}'.format(request.shop_location.local_shipping_rate) }})</label><br>
<label for="local_shipping" style="display: inline;">
Local Shipping (${{ '{:,.2f}'.format(request.shop_location.local_shipping_rate or 0) }})
</label><br>
{% endif %}
{% if request.shop_location.international_shipping %}
<input type="radio" id="international_shipping" name="handling_option" value="international_shipping" {% if cart.handling_option == "international_shipping" %}checked{% endif %} required>
<label for="international_shipping" style="display: inline;">International Shipping (${{ '{:,.2f}'.format(request.shop_location.international_shipping_rate) }})</label><br>
<label for="international_shipping" style="display: inline;">
International Shipping (${{ '{:,.2f}'.format(request.shop_location.international_shipping_rate or 0) }})
</label><br>
{% endif %}
<input type="submit" value="Set Handling Option">
</form>
{% endif %}
<div style="text-align: right; grid-column: span 3">
{% if cart.is_discounted %}