Page MenuHomeIn-Portal Phabricator

shipping_type.tpl
No OneTemporary

File Metadata

Created
Wed, Oct 1, 10:30 AM

shipping_type.tpl

<inp2:m_DefineElement name="no_shipments">
<div class="field-error"><inp2:m_Recall name="usps_errors"/></div>
<inp2:m_Phrase label="lu_comm_ErrorNoShippingTypes"/><!-- (<a href="mailto:<inp2:conf_ConfigValue name="Comm_Contacts_Email"/>"><inp2:conf_ConfigValue name="Comm_Contacts_Email"/></a>).-->
</inp2:m_DefineElement>
<inp2:m_DefineElement name="order_shipping_type">
<option <inp2:m_param name="selected"/> value="<inp2:m_param name='ShippingId'/>"> <inp2:m_param name="ShippingName"/> (<inp2:m_if check="m_param" name="ShippingFree" value="1"><inp2:m_Phrase label="lu_comm_FreeShipping" /><inp2:m_else/><inp2:m_param name="TotalCost"/></inp2:m_if>)</option>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="order_shipment">
<select class="field" name="<inp2:m_param name='field_name'/>">
<option value="">Please select</option>
<inp2:ord_PrintShippingTypes render_as="order_shipping_type" currency="selected"/>
</select>
</inp2:m_DefineElement>
<label for="ship">How would you like the items shipped? <span class="star">*</span></label>
<inp2:m_if check="ord_AddressValid" type="shipping">
<inp2:ord_PrintShippings render_as="order_shipment" currency="selected" no_shipments_render_as="no_shipments"/>
<inp2:m_else/>
<select class="field" name="<inp2:ord_InputName name='ShippingTypeId'/>[1]">
<option value="">Please enter address</option>
</select>
</inp2:m_if>
<script type="text/javascript">
$(document).ready(
function () {
$('select', '#shipping-type-container').change(
function ($e) {
CheckoutManager.updateOrder(
'elements/ajax/order_totals',
function ($data) {
$('.total').html($data);
}
);
}
);
}
);
</script>

Event Timeline