cfm168
Forum Replies Created
-
Hi @pomegranate,
The code you provided are not working and get the following error when I try to download the invoice from admin:
Fatal error: Call to undefined method WCST_Tracking_info_displayer::get_order_meta()
I added the code on the child theme. It also causes the Invoice to become not downloadable but view only. Delete the code every thing back to good normal.
I have sent the error details to your email. Please check and help.
Thanks in advance!
I am using version 3.2.7. Let me test it again.
Thanks!Hi @pomegranate,
Where should I put these code in? Should I put it in functions.php under my child theme?
Forum: Plugins
In reply to: [WooCommerce] How to waive sales tax for selected customers?Thank you @gabrielfuentes!
Prefer light tax exemption app only. Concerning other features could conflict my current price by role plugin.Hi @pomegranate,
Any updates for me? Thanks in advance!Here is the snippet:
global $wcst_tracking_info_displayer, $wcst_time_model;
$tracking_meta = $wcst_tracking_info_displayer->get_order_meta($order_id);
$shipping_traking_num = $tracking_meta[‘_wcst_order_trackno’][0];$dispatch_date = isset($tracking_meta[‘_wcst_order_dispatch_date’][0]) ? $tracking_meta[‘_wcst_order_dispatch_date’][0] : __( ‘N/A’, ‘woocommerce’ ) ;
$dispatch_date = $wcst_time_model->format_data($dispatch_date);(it should look like this: https://www.dropbox.com/s/83i17tlxwsxv38b/wcst_snippet.jpg?dl=0 )
Sure, will send to you via email. I think I have your email. Thanks!
Hi @dpeyou,
The shipping tracking plugin author provided me a long snippet.
1) Should I put the snippet after the code you provided above?
2) The author advised me: “where you have to replace the $order_id with the variable that holds the current order id. The $shipping_traking_num and the $dispatch_date will hold the data you need to print inside the invoice.”, How should I do?Please advise. Thanks in advance!
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding custom field in InvoiceI have created a new topic to discuss this support more closely.
https://wordpress.org/support/topic/print-shipping-tracking-on-invoice-and-order-details/Will test accordingly and let you know. Thank you very much!
Ho @josk79,
Thank you for your prompt response.
1) thank you for going to fix it.
2) I as admin to add order for customer, this should works same as customer logged in and place order thought. The coupon code should be automatically taking effect for the customer assigned to the coupon. But it doesn’t work. Please advise.Thanks!
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding custom field in InvoiceI prefer to use free version as it is light weight that just add what I needed.
Can action hooks custom field runs the custom order meta related to the tracking data?
I want the shipping tracking number and shipping date to be printed on Invoice.Please advise. Thanks in advance!
Forum: Plugins
In reply to: [WooCommerce] Coupon code not workingThank you!
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding custom field in InvoiceHello @yordansoare,
Thank you for your advising.I’m using a shipping tracking plugin that displaying delivery date and tracking link on notifying email. The author willing to provide date codes.
With a template action hook, how can I put the above said data codes to be displayed on PDF Invoice and Packing slip?
Should I add it in Child-theme?
Please advise. Thanks in advance!
Forum: Plugins
In reply to: [WooCommerce] Add phone number in shipping addressThank you Fernando (@fhaps),
The whole of shipping detail all are not showing when I check it under Appearance > Customise > WooCommerce > Checkout.
Did I missing in setting? Where should I enable the shipping information?
Please advise. Thanks!