Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hello @jpollie,

    If all you need to do is hide this label, you can use some CSS code. ??

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_hide_shipping_method_label', 10, 2 );
    function wpo_wcpdf_hide_shipping_method_label ( $document_type, $document ) {
      ?>
    	tr.shipping .description { display: none; }
      <?php
    }
    Thread Starter jpollie

    (@jpollie)

    Hello Darren
    Im really happy with your support!

    I think i explained it wrong ?? your snipped works great.

    It says
    Shipping €2.00 via delivery.

    I would like to hide the via delivery part.

    Als like to change the word shipping into Delivery.
    So total would be ‘Delivery €2’

    Thank you

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @jpollie,

    Please replace the code that @dpeyou sent you previously for this one to remove the “via delivery” part:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_hide_shipped_via', 10, 2 );
    function wpo_wcpdf_hide_shipped_via ( $document_type, $document ) {
    	?>
    	.shipped_via {	display: none; }
    	<?php
    }

    If you want to customize the plugin strings, you can use the Loco Translate plugin to do it. See Custom translations.

    Let us know if it works ??

    Thread Starter jpollie

    (@jpollie)

    Amazing thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove shipping method labels’ is closed to new replies.