Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    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.

    Thread Starter akinleyeajayi

    (@akinleyeajayi)

    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.

    Plugin Author Bas Elbers

    (@baaaaas)

    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.

    Thread Starter akinleyeajayi

    (@akinleyeajayi)

    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.

    Plugin Author Bas Elbers

    (@baaaaas)

    Just a simple question to be sure..
    Did you’ve Cancelled and Created the invoice again after you completed the order manually?

    Thread Starter akinleyeajayi

    (@akinleyeajayi)

    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.

    Plugin Author Bas Elbers

    (@baaaaas)

    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. πŸ™‚

    Thread Starter akinleyeajayi

    (@akinleyeajayi)

    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.

    Plugin Author Bas Elbers

    (@baaaaas)

    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.

    Thread Starter akinleyeajayi

    (@akinleyeajayi)

    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.

    Plugin Author Bas Elbers

    (@baaaaas)

    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.

    Thread Starter akinleyeajayi

    (@akinleyeajayi)

    Adding this code result in White Screen of Death. Yes sure i added it to the Themes function.php

    Thread Starter akinleyeajayi

    (@akinleyeajayi)

    Hello Bas, Still no resolution to this issue.

    Plugin Author Bas Elbers

    (@baaaaas)

    Please update to latest version and check the FAQ for the right filter. Let me know if it works.

    Thread Starter akinleyeajayi

    (@akinleyeajayi)

    Thank you for the response. I have updated but still not working. Cheers

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Paid Watermark Issues’ is closed to new replies.