bigtiny
Forum Replies Created
-
Hi there, thanks for your reply.
Yes, we use Variation Price Display for WooCommerce to show the higher pricing on our Product Archives Page.
This is because we want to avoid any pricing misunderstandings with our visitors.
Is there a workaround solution for this, or do you advice that I disable the third party plugin?
Thank you kindly.
@yordansoares @pomegranate Absolutely, just left a 5 star review. Keep up the great work, tysm!
Thanks for your time and reply on this shipping phone / recipient contact matter. I realised it was a custom field and added this snippet which now works!
/** * Show the shipping contact after shipping address */ add_action( 'wpo_wcpdf_after_shipping_address', 'wpo_wcpdf_show_shipping_contact', 10, 2 ); function wpo_wcpdf_show_shipping_contact( $template_type, $order ){ $document = wcpdf_get_document( $template_type, $order ); if($template_type == 'packing-slip') { ?> <p class="shipping_contact">Recipient Phone: <?php $document->custom_field('shipping_contact'); ?></p> <?php } }
Hope this helps anyone who has a custom field (ie. custom phone number field) and would like to add in their packing slip!
Truly grateful for all your replies and time.
<3 bigtinyThis totally works!
You’re brilliant.
Tysm ??
bigtiny@pomegranate I’m using the official Simple template and testing it with the official template as welling.
The code on my Simple PHP template for packing slip shows billing_phone
It should be shipping_phone.I tried to change on the template but it doesn’t work that way I think.
Any possible snippets that I can add?
Thank you.@pomegranate thanks for your reply. It shows the Billing Party’s Phone Number on my packing slip but not the Recepient’s Phone Number.
I’d like to reflect the Receipient’s Phone Number. Is there a code I can add?
Thank you. ??
bigtinyMy current plugin is Version 2.11.1.
Will replacing your version wipe out my previous customers data and info?Thank you.
bigtinyThank you, this is so helpful!
Grateful ??
bigtinyWhen I try to add these codes, it says “Cannot redeclare function wpo_wcpdf_custom_styles”.
/** * Remove the logo, shop name and address on packing slip */ add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 ); function wpo_wcpdf_custom_styles ( $document_type, $document ) { if ( $document_type == 'packing-slip' ) { ?> table.head.container { display: none; <?php } }
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 ); function wpo_wcpdf_custom_styles ( $document_type, $document ) { if ($document_type == 'packing-slip'){ ?> .shipping-method { display: none; } <?php } }
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 ); function wpo_wcpdf_custom_styles ( $document_type, $document ) { if ($document_type == 'packing-slip'){ ?> .order-date { display: none; } <?php }
How can I solve this? T_T
Is it possible to combine these codes together? I tried to but it’s not working.I also have a custom field I want to add >> show order_instructions
Hi Yordan
(1) Thanks so much for the code to remove the logo, shop name and address.
That works.However, I do not need to add the same notes for all your packing slips.
(2) I wish to display the delivery instructions by my customers on my packing slip.
(3) I would also like to remove Shipping Method from the packing slip.
Appreciate your guidance!
Thank you.
bigtiny