I have added custom text to display with Table rate shipping method title.
<span data-bind="visible: method.carrier_code == 'tablerate'">
<span class="shippingtext">Same Day Delivery - Only AED <each args="element.getRegion('price')" render="" /> additional charge</span>
</span>
How can I add if else condition to show different text according to cart amount?
For example:
-
Cart amount is below AED 100 then Title will be “Same Day Delivery – Only AED 30 additional charge”
-
Cart amount is above AED 100 then Title will be “Same Day Delivery – Only AED 10 additional charge”