• Resolved NoemiNL

    (@noeminl)


    Our client does not want to show a Shipping Method Name to his customers, we have placed a space instead of a name, but it still shows the suffix “:”.
    Is there an easy way to disable this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dotstore

    (@dots)

    Hello @noeminl,

    Thanks for reaching out to us.

    If you want to hide label for all the shipping then, you can use below filter which removes all the text before “:” and I think your query gets resolved.

    Please add the below code in your themes functions.php file.

    function ace_hide_shipping_title( $label ) {
    	$pos = strpos( $label, ': ' );
    	return substr( $label, ++$pos );
    }
    add_filter( 'woocommerce_cart_shipping_method_full_label', 'ace_hide_shipping_title' );

    Let me know after adding the above code how it works.

    Thanks,

    Plugin Author Dotstore

    (@dots)

    Hello @noeminl,

    I hope you are doing well and your query get resolved by our last email solution.

    Let us know still you have any queries on this we are happy to help.

    Your response is almost important for us to provide better support to our users like you.

    Thanks,

    Thread Starter NoemiNL

    (@noeminl)

    @dots Thanks for the quick response and snippet!
    I didn’t get an update mail, so sorry for my delay in response. 🙂

    This indeed was the solution.

    Got another strange thing, in the mails customers see: Shipping: € 5,95 via
    No idea where the “via” get’s inserted, can’t find it anywhere in settings/database. When I look at the code of the mail it looks like it’s placed by Advanced Flat Rate Shipping Method WooCommerce:

    <tr>
    <td colspan="2" style="border: solid rgb(228,228,228) 1.0pt;padding: 9.0pt 9.0pt 9.0pt 9.0pt;">
    <p class="MsoNormal"><b><span style="font-family: Helvetica, sans-serif;color: rgb(115,117,119);">Shipping:</span></b></p>
    </td>
    <td style="border: solid rgb(228,228,228) 1.0pt;padding: 9.0pt 9.0pt 9.0pt 9.0pt;">
    <p class="MsoNormal"><span class="x_-715286414woocommerce-price-currencysymbol"><span style="font-family: Helvetica, sans-serif;color: rgb(115,117,119);">€</span></span><span class="x_-715286414woocommerce-price-amount"><span style="font-family: Helvetica, sans-serif;color: rgb(115,117,119);">&nbsp;5,95</span></span><span style="font-family: Helvetica, sans-serif;color: rgb(115,117,119);">&nbsp;</span><span style="font-size: 7.5pt;font-family: Helvetica, sans-serif;color: rgb(115,117,119);">via
     &nbsp;</span><span style="font-family: Helvetica, sans-serif;color: rgb(115,117,119);"> </span></p>
    </td>
    </tr>
    Plugin Author Dotstore

    (@dots)

    Hello @noeminl,

    Thanks for your reply and we are happy to help that give a solution is works for you. 🙂

    Related to the ‘via’ text it is coming from the default woocommerce flow.

    Click here to review the screenshot for how it will display with the default shipping method as well.

    You can try deactivating the our plugin it will always display the “via” text.

    I hope this helps. Let me know still if any.

    Thanks,

    Plugin Author Dotstore

    (@dots)

    Hello noeminl,

    I hope you are doing well.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Disable suffix’ is closed to new replies.