I have this

But i want this, Hide shipping method price ONLY if it equals 0.

Code: Select all
{{ quote.title }} - {{ quote.text }}</label>
Code: Select all
{{ quote.title }}{% if quote.cost > 0.00 %} - {{ quote.text }}{% endif %}</label>
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Sorry!!letxobnav wrote: ↑Wed Jul 29, 2020 2:13 pmin catalog/view/theme/default/template/checkout/shipping_method.php
you could change:to:Code: Select all
{{ quote.title }} - {{ quote.text }}</label>
Code: Select all
{{ quote.title }}{% if quote.cost > 0.00 %} - {{ quote.text }}{% endif %}</label>
Editing core files is always a bad idea.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
no, quote.text is a string including the currency code so quote.text != 0 is always true.Anyway, come to the same conclusion, thanks for responding!
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Users browsing this forum: No registered users and 13 guests