Support » Plugin: Weight zone shipping for WooCommerce » HTML formatting

  • Hello and thank you for this plugin that works well with WooCommerce 3.x

    I would like to format the text “Method title” perhaps with <span> but your system does not take HTML into account.

    Example:
    I have this sentence: 2 | 18.20 | Chronopost 13 – Receive your package the next day before 13h for any order placed before 12h |

    I would like to format this as: <span class=”maclass”>Chronopost 13</ Span> <span class=”maclass”>Receive your package the next day before 1:00 pm for any order placed before 12:00pm </span> |
    But it breaks the display
    Do you have a method to add HTML to this part?
    cordially
    Niko

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bobbingwide

    (@bobbingwide)

    Hi, there are two things that prevent this from working.

    oik-weight-zone-shipping treats ‘/’ characters as delimiters. The latest version ( currently under development ) is stripping them out – so the span end tags gets broken.

    But even when that logic has been disabled, WooCommerce is stripping tags since it attaches the sanitize_text_field function to the ‘woocommerce_shipping_rate_label’ filter.

    It’s possible to implement a solution for this. Is this something you really need?

    Plugin Author bobbingwide

    (@bobbingwide)

    A solution for this will be delivered in the next version of the plugin.
    To achieve this it will no longer be possible to use the ‘/’ as a field delimiter in the rates table.

    Thank you for your answers, I have only to wait while waiting for the new update.
    Thank you very much 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.