• Resolved c59w

    (@c59w)


    Hi. PayPal requires specific verbiage to be added to the “order-received” page(endpoint). How can this be done (safely)? I don’t like updating standard pages, etc. in case the plugin gets updated your update will be wiped out.

    I’ve reviewed several ‘ways’ on how to do this, but I am not sure on which method is best. Any thoughts?
    Regards!

    https://www.ads-software.com/plugins/woocommerce/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Can you explain what is needed, and where they state this?

    Thread Starter c59w

    (@c59w)

    Thanks for your reply.

    Under PayPal Website Payment Preferences for Auto Return for Website Payments(return URL):
    *Per the user agreement, you must provide verbiage on the page displayed by the Return URL that will help the buyer understand that the payment has been made and that the transaction has been completed.
    *You must provide verbiage on the page displayed by the Return URL that explains that payment transaction details will be emailed to the buyer.
    *Example: Thank you for your payment. Your transaction has been completed, and a receipt for your purchase has been emailed to you. You may log into your account at https://www.paypal.com to view details of this transaction.

    Currently, the ‘Order Received’ page has a standard statement: “Thank you. Your order has been received.”

    I would need to add the “email” verbiage. Please let me know how to proceed.
    Regards!

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    You can filter on woocommerce_thankyou_order_received_text

    Thread Starter c59w

    (@c59w)

    Something like?:
    add_filter( ‘woocommerce_thankyou_order_received_text’, ‘c59w_custom_order_received_msg’ );
    function c59w_custom_order_received_msg ( $thank_you_msg ) {
    $thank_you_msg = ‘NEW THANK YOU MESSAGE HERE’;
    return $thank_you_msg;
    }

    Would I add this filter to vanilla “thankyou.php” template or should I copy this template and add it to another folder location? Can you access the templates directly from WordPress?

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Thats right. This code would be placed in theme functions.php or custom plugin.

    Thread Starter c59w

    (@c59w)

    Not sure if I understand. You want me to add this code to “functions.php” or “thankyou.php”? If “functions.php” -> where is this located?

    Thread Starter c59w

    (@c59w)

    Updated functions.php here: wp-content/themes/(themename) -> functions.php and it seems to be working. I’ll add to child theme in case of any updates. This can be closed. Thanks.

    Thread Starter c59w

    (@c59w)

    closed.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PayPal verbiage added to order-received page’ is closed to new replies.