[size=12pt]I am using a woocommerce plugin called–>“picking pal”. It has a option to print order invoice, in the invoice 1 column for to show “product sku” but the product sku is not showing numerical order. I want to show it numerical ASC order like (1, 2, 3, 4) not like (5, 1, 3, 2) in the invoice image you will see sku showed ( 4055, 4056, 1439 ) but it should be show like the order(1439, 4055, 4056) below is the snippet of the plugin[/size]
here is the image link https://i.stack.imgur.com/3setx.png
[php]
<?php
foreach ( $orders as $order ) {
$order_number = ltrim( $order->get_order_number(), '#' );
?>
<?php
}
?>
[/php]
<div>
<?php
$img = get_option( 'pickingpal-logo' );
if ( $img ) {
?>
<img src="<?php echo $img ?>" class="logo">
<?php
}
?>
</div>
<div class="info">
<?php echo nl2br( get_option( 'pickingpal-contact' ) ); ?>
</div>
<?php echo __( 'Billing Address', 'woocommerce-pickingpal' ) ?>
<?php echo $order->get_formatted_billing_address(); ?>
|
<?php echo __( 'Shipping Address', 'woocommerce-pickingpal' ) ?>
<?php echo $order->get_formatted_shipping_address(); ?>
|
<?php echo __( 'Shipping method', 'woocommerce-pickingpal' ) ?>
<?php echo $order->get_shipping_method(); ?>
|
<?php echo __( 'Total amount', 'woocommerce-pickingpal' ) ?>
<?php echo $order->get_formatted_order_total(); ?>
<?php echo $order->post_date; ?>
|
<?php echo __( 'Invoice', 'woocommerce-pickingpal' ) ?> #<?php echo $order_number; ?>
(<?php echo $order_number; ?>)
<?php echo __( 'Sku', 'woocommerce-pickingpal' ) ?> | <?php echo __( 'Item', 'woocommerce-pickingpal' ) ?> | <?php echo __( 'Quantity', 'woocommerce-pickingpal' ) ?> | <?php echo __( '', 'woocommerce-pickingpal' ) ?> | <?php echo __( '', 'woocommerce-pickingpal' ) ?> | <?php echo __( '', 'woocommerce-pickingpal' ) ?> |
---|