You can use the purchase_order.supplier.desc variable to rename the "Rush Order Fee" label with the actual name specified for the rush order fee in the Order Template.
Here is an example of how you can modify the default Order Template to show the actual name of the rush order fee, rather than the generic "Rush Order Fee" label:
Default Code
Code to be modified highlighted in red:
<tbody>
<tr>
<td class="heading">Shipping</td>
<td class="qty">{{ order.currency_total_shipping_price | simple_price_format }}</td>
</tr>
{% if order.rush_order_fee_id %}
<tr>
<td class="heading">Rush Order Fee</td>
<td class="qty">{{ order.rush_order_cost | simple_price_format }}</td>
</tr>
{% endif %}
Custom Code
Replace the code in red above with the code in red below, as follows:
<tbody>
<tr>
<td class="heading">Shipping</td>
<td class="qty">{{ order.currency_total_shipping_price | simple_price_format }}</td>
</tr>
{% if order.rush_order_fee_id %}
<tr>
<td class="heading">{{ order.rush_order_fee_name }}</td>
<td class="qty">{{ order.rush_order_cost | simple_price_format }}</td>
</tr>
{% endif %}
Comments
0 comments
Please sign in to leave a comment.