ozviewer
Forum Replies Created
-
I would also like to know the answer to this as I have the same issue.
- This reply was modified 5 months, 3 weeks ago by ozviewer.
Forum: Plugins
In reply to: [WPC Fly Cart for WooCommerce] Cannot add bundle to the cartI discovered that the problem is not caused by WPC Fly Cart, it is caused by a common and repeated error in the WPC Bundle plugin. For example (and there are many) see:
https://www.ads-software.com/support/topic/you-cannot-add-this-bundle-to-your-cart-again/
Forum: Plugins
In reply to: [WPC Fly Cart for WooCommerce] Cannot add bundle to the cartThe Ajax plugin didn’t solve the problem. Is there a link to earlier versions of Fly cart so I can roll back my version?
Hi, that’s the first thing I thought to do but the orders never appeared on the Orders page so I couldn’t cancel them. As I had a number of products (incorrectly) showing as out of stock, I had to manually count and update them to the correct stock level.
[Update]. I just noticed an order on hold. It contains all of the products from the sample orders. I have cancelled it and now have to adjust the stock levels again.
- This reply was modified 7 months, 1 week ago by ozviewer.
Hi Alex, I disabled html output, deleted the earlier snippet, added the new one and….the error is back.
Hey Alex, that worked! No error message. The image URL is:
https://acme.com/wp-content/uploads/2019/10/Website-header-logo-128px-e1570250493950.png
Hi Alex, if I go to the WP media library and enter into the search bar: Website-header-logo-128px-e1570250493950.png the image is found.
If I ftp to the website and go to the directory list, the file is at:
/acme.com/wp-content/uploads/2019/10/Website-header-logo-128px-e1570250493950.png
As previously stated my site is not acme.com, I am using that as a generic name.
Darren, thanks for your prompt reply. I haven’t made any changes apart from the regular updates. I am on v3.70 of the plugin. Could that be the cause? BTW, I tried the snippet but it made no difference.
Found the problem. I needed to add a value to Allowed Places Autocomplete Fields which in my case was Billing Address 1.
- This reply was modified 1 year, 5 months ago by ozviewer.
Hi Darren, thanks for your prompt reply. What I am after is:
- For the bank details to appear on the invoice if the order is to be paid for by bank deposit;
- For the bank details not to appear on the Packing Slip at all.
Thanks.
Thanks Darren but your code is not working for the packing slip, it still shows the bank details and now omits the packing slip comments.
I think I need the code for the invoice to include $document_type == ‘invoice’.
I have tried to add it myself but I keep getting an error that:
Unclosed '(' on line 1 does not match '}'.
For example one of the many, many different ways I have tried is:
add_action( 'wpo_wcpdf_after_order_details', function( $document_type, $order ) if ( $document_type == 'invoice' && ( $order->get_payment_method() == 'bacs' && class_exists( 'WC_Gateway_Bacs' ) ) ; $gateway = new WC_Gateway_Bacs(); if ( $gateway ) { echo $gateway->thankyou_page( $order->get_id() ); } } }, 10, 2 );
Thanks Darren, that works well but it would be ideal with a couple of tweaks.
Can I add a line or paragraph break before Bank Details? There is text above that which I want to keep separate.
The Bank Details now also appear on the Packing Slip as well if payment is by Bank deposit. Can I stop that? The current Code Snippet for the Packing Slip is:
/** * WooCommerce PDF Invoices & Packing Slips: * Display the PS Comments after the customer notes on the packing slip */ add_action( 'wpo_wcpdf_after_customer_notes', function( $document_type, $order ){ if( $document_type == 'packing-slip' && ( $ps_comments = $order->get_meta( 'ps_comments' ) ) ) { echo "<div><h3>PS Comments:</h3><p>{$ps_comments}</p></div>"; } }, 10, 2);
Thanks.
Hi, thanks for the reply. The details are in the WooCommerce payments settings ‘Direct Bank Transfer’ which appears on the checkout page if the customer has selected that method of payment and confirms the order. However, the PDF invoice that follows does not have the bank details so to ensure the customer has the details handy I wanted to include a static text field with the bank number and a/c number.
I tried that many, many times. Clicking on the red cross has no effect. I cannot get rid of the nag screen.