• Resolved hypostatic

    (@hypostatic)


    I’ve been using code to show bigger mark in admin order list. Now it doesn’t work anymore… I think it brokes when update plugin. How I get this work again?

    add_action( ‘admin_head’, function() {
    ?>

    <?php
    } );

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter hypostatic

    (@hypostatic)

    Well, I can’t paste code here.. it looks broken.

    add_action( 'admin_head', function() {
    	?>
    	<style>
    		.wc_actions a.wpo_wcpdf::after {
    			font-size: 30px !important;
    			left: -3px !important;
    			top: -13px !important;
    		}
    	</style>
    	<?php
    } );

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @hypostatic,

    That’s right, we have updated the buttons’ layout in the latest public release.

    Please try with this code to increase the checkmark size:

    add_action( 'admin_head', function() {
    	?>
    	<style>
    		.type-shop_order .column-wc_actions a.button.wpo_wcpdf>svg,
    		.woocommerce_page_wc-orders .column-wc_actions a.button.wpo_wcpdf>svg {
    			width: 15px;
    			height: 15px;
    			bottom: 0px;
    			right: 0px;
    			border-radius: 10px;
    		}
    	</style>
    	<?php
    } );
    Thread Starter hypostatic

    (@hypostatic)

    Ok, thanks, now it’s better. I also use snippet to get notes to invoice and packing slip. I need to get “Serial number” not “Notes”. With code I get it right to packing slip, be cause code change “Note” to “Serial number”. But I like to have “notes” changed to invoice too, so code must be in original code then? It would be much better to have snippet for this, so updates don’t change it and I can use snippet in other WP installations too. So invoice notes name should be “Serial number”.

    /**
     * WooCommerce PDF Invoices & Packing Slips:
     * Show the invoice notes on packing slips too
     */
    add_action( 'wpo_wcpdf_before_customer_notes', function( $document_type, $order ) {
        if ( $document_type == 'packing-slip' ) {
            $document = wcpdf_get_document( 'invoice', $order );
            if ( $document && $document->exists() ) {
                ?>
                <div class="notes">
                    <h3>Serial number:</h3>
                    <?php echo $document->document_notes(); ?>
                </div>
                <?php
            }
        }
    }, 10, 2 );
    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @hypostatic,

    I’m glad to hear that you liked the code snippet for the checkmark.

    Regarding your second request, since this is something different to your first message, could you please open a new topic for this, so we can keep the forum sorted? You can copy and paste your message here: Create a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bigger mark’ is closed to new replies.