hyffe
Forum Replies Created
-
Hi MKW,
Did you get any replies or solution for your issue above? I’m having similar problem as you too.
Hi Ewout,
I am changing my procedures due to lack of time, hence will KIV the above issue first. Meanwhile, I noticed that my logo no longer appears on my invoice. It was still showing up fine previously. Is there a setting that I need to be aware of?
Many thanks in advance for your kind/prompt attention and help thus far; appreciate it.
Hi Ewout,
I just tried implementing based on your 2 links shared above. Based on your second link “Displaying A Custom Field”, the second method suggested that I paste a code:
<?php $this->custom_field(‘custom_fieldname’); ?>
I did so, and it produced a syntac error in the pdf invoice:
Fatal error: syntax error, unexpected ‘$this’ (T_VARIABLE)
What is happening, and how should I rectify this?
Thanks in advance.
1) I need to have a product field that is shown to vendor for their input before publishing their product on WCFM. However, their input should not be shown on the product page, but only shown on the invoice for customers who purchased that respective product.
I am using their “Ultimate” extension already.In fact, I realized a few moments back that WCFM has a “Store Invoice” feature when your plugin is installed. However, I am still unable to get these 2 plugins to publish as per above.
2) Thanks for sharing this – Let me give this a try meanwhile.
Hi Ewout,
While I’m awaiting for the ACF developer to respond to me (they haven’t been too responsive), could I check with you the following:
1) Is your plugin able to work directly with WCFM plugin?
2) Apart from ACF plugin, do you have any other recommended similar plugins that is able to work with your PDF plugin?
Many thanks for your help thus far.
Regards,
Hi Ewout,
Apologies, please use this link instead:
https://pastebin.com/YjZKYgkVI was previously using ACF, but there were problems with the fields not showing up on the product page, hence I deactivated that while resolving with their developer.
Hi Ewout,
Please see the link to the code for invoice.php:
https://pastebin.com/9NtntaM7Thanks for clarifying on the debug. I clicked on the pdf invoice button and it shows up the following error:
Fatal error: Call to undefined function the_field()#0 /home1/hyffecom/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(787): include() #1 /home1/hyffecom/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(691): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home1/hyffecom…’, Array) #2 /home1/hyffecom/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(673): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html() #3 /home1/hyffecom/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(709): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf() #4 /home1/hyffecom/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(340): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’) #5 /home1/hyffecom/public_html/wp-includes/class-wp-hook.php(287): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”) #6 /home1/hyffecom/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #7 /home1/hyffecom/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #8 /home1/hyffecom/public_html/wp-admin/admin-ajax.php(175): do_action(‘wp_ajax_generat…’) #9 {main}
Thanks for explaining the above. Apart from the above, there are no other custom code, as I too dare not to amend anything else.
As there is no PDF attached to the email, hence I am unable to debug for errors using &debug=true.
That said, I am currently using WCFM Product Custom Fields to create the custom fields, where the “specificpickupaddress” is actually the custom field’s metakey. Not sure if this could be contributing the error?
Hi Alex,
Thanks, I just tried the above code but still the same results.
Yes, I created a custom template too, and chosen the option under “General” tab to use the custom template.
Hi Alex,
Thanks… I am using this code:
<H3>Self-Collection Address:</H3>
<?php the_field(‘specificpickupaddress’, $this->get_id() ); ?>Which resulted in above issue…
HI Ewout,
Thanks, strangely when I inserted your suggested code line, the PDF invoice no longer gets attached to the order email. The email comes in without any attachment.
Really appreciate your help here, as I am on tight budget and trying to develop a test case product before I can hire any developers directly.
Hi Ewout,
With some attempts I actually managed to get the field to appear on my invoice, using the following code in the invoice.php:
<H3>Self-Collection Address:</H3>
<?php the_field(‘self-collection_venue’); ?>As my customer has the option to choose either Self Collection or Delivery Service, how do I make this appear only when the Self collection option is chosen on the Car check out page? Also vice versa, when Delivery Option is chosen, how do I show “Delivery” only together with 2 other fields?
Many thanks for your kind help!
Hi Ewout,
Thanks for the quick reply. I have no coding background at all, so I need more help in clarifying your above. How and where do I go about doing your step (2) above?
Thank you.