Paid Watermark Issues
-
Even with the latest update 2.4.3 paid watermark isn’t working for BACS when the order has been completed.
-
This is by design. You can change this by adding a filter to your themes functions.php.
function exclude_payment_method_for_watermark($payment_methods, $order_id){ return array(); } add_filter('bewpi_paid_watermark_excluded_payment_methods', 'exclude_payment_method_for_watermark', 10, 1);
Didn’t test code, but think it should work.
I am delighted you responded but unfortunately i added the filter to my themes function.php but it still isn’t working. Can you kindly advice how best to use the filter ‘bewpi_paid_watermark_excluded_payment_methods’ to make Paid Watermark work for BACS when i manually complete a order. Cheers.
function exclude_payment_method_for_watermark($payment_methods, $order_id){ return array(); } add_filter('bewpi_paid_watermark_excluded_payment_methods', 'exclude_payment_method_for_watermark', 10, 2);
Try this one.
Thanks once again. I have tried this one also but it isn’t working also. I do not want to exclude BACS. What i am trying to do is to get the paid watermark on the invoice once i complete the order. Thank You Bas.
Just a simple question to be sure..
Did you’ve Cancelled and Created the invoice again after you completed the order manually?Hello there, No i don’t cancel and create. Once the order is made by a customer from the website and BACS payment method is selected at checkout. Once i receive the order i simply click on “Complete Order” once i receive payment however the “Complete Order Invoice’ generated is still the same as when the order was placed and (On hold) as the Admin receives with in the Admin e-mail. All without Paid Watermark.
And to which type of email did you attach (setting in ‘General’ settings tab) the invoice?
Will test the filters my self if I find the time! Busy as always. πI understand lol. I use the domain e-mail. For testing i have disabled all payment methods and left just BACS. You can visit https://store.bellestoreinc.com/ and make a dummy purchase. I will complete the order so you can get the final invoice for a completed order. Thank You Bas.
The filter is working, but the problem is that if you set the ‘Attach to Email’ to ‘Processing Order’ the invoice is already generated before you manually complete the order. When you complete the order, the already generated invoice is getting attached to the ‘Completed Email’. You should set ‘Attach to Email’ to the ‘Completed Order’ email type and everything works as it should be.
Second option is to Cancel invoice before you complete the order. This way a new invoice will be generated.
Hey Bas i guarantee you the e-mail setting is on “Complete Order” by default and it doesn’t work. Cancelling and completing also does not work. I just tried both. Thank You.
function exclude_payment_method_for_watermark($payment_methods, $order_id){ die('Function is working'); return array(); } add_filter('bewpi_paid_watermark_excluded_payment_methods', 'exclude_payment_method_for_watermark', 10, 2);
Try this to ensure the function is getting called. You’ve added the code to your functions.php of your theme right? Not from plugin itself?
It’s strange..
Else please delete and install plugin again and try again.
Adding this code result in White Screen of Death. Yes sure i added it to the Themes function.php
Hello Bas, Still no resolution to this issue.
Please update to latest version and check the FAQ for the right filter. Let me know if it works.
Thank you for the response. I have updated but still not working. Cheers
- The topic ‘Paid Watermark Issues’ is closed to new replies.