@kenil.
Thank you very much for that. I tried the suggested code (and a couple of variations), however it did not move the shipping address to the right (although I wouldn’t expect it to as it is addressing the billing address which is hidden by the same code)
Based on your suggestion and after some more experimentation I was able to move the shipping address to the right by adding the following code to the child theme’s functions.php file:
function move_shipping_address() {
?>
<style>
.order-addresses .shipping-address {
float: right;
}
</style>
<?php
}
add_action( ‘wcdn_head’, ‘move_shipping_address’, 20 );
So in total I was able to hide the billing address and display the shipping address on the right-hand side of the printed invoices, customer notes and receipts by adding this code to my child theme’s functions.php file:
/* Changes WC billing and shipping print receipt, invoice and shipping to hide billing address on print */
function hide_billing_address() {
?>
<style>
.billing-address {
display: none;
}
</style>
<?php
}
add_action( ‘wcdn_head’, ‘hide_billing_address’, 20 );
/* Changes WC billing and shipping print receipt, invoice and shipping to display shipping address to the right on print */
function move_shipping_address() {
?>
<style>
.order-addresses .shipping-address {
float: right;
}
</style>
<?php
}
add_action( ‘wcdn_head’, ‘move_shipping_address’, 20 );
Would you be so kind as to confirm that this additional code will not cause any problems with your plugin, WooCommerce or the overall site’s operation if you can?
Thank you again for your great plugin and support!