WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Customise Thank You Page Per Product ID (3 posts)

  1. simonswiss
    Member
    Posted 1 year ago #

    Is it possible to edit the thank you message (thankyou.php) on a product_id basis?

    For example, if customer has successfully purchased the product ID #58 (hotel stay in Paris), i would like to display a message specifically tailored for this product (infos & tips about Paris + hyperlink to a Paris travel guide).

    If user had bought product ID #59 (Milano), then the thank you message should display info about Milano.

    I'm fine with hardcoding this into the thankyou.php file - i just need help figuring out how to write the conditional statement..

    Something like:

    Thank you for your purchase!

    if (product ID = 58) {
    Here are a few tips about Paris: blablablablablablablab
    } else if (product ID = 59) {
    Here are a few tips about Milano: blablablablablalba
    } else {
    Enjoy your visit!
    }

    Hope this makes sense and there is a solution for that!

    Thanks in advance for your input :-)

    Simon

    http://wordpress.org/extend/plugins/woocommerce/

  2. jameskoster
    Member
    Plugin Author

    Posted 1 year ago #

    Hey,

    I think it should be possible off the top of my head. But a simpler/safer solution would be to just add a product note to any products with specific details like this. That note is then sent to the user in the confirmation email.

    Thanks

  3. simonswiss
    Member
    Posted 1 year ago #

    Thanks for your reply.

    I was thinking of doing that, but the reason i'd need to have it on the thank you page is that my client really wants the user to be invited to click on links and follow up some "upsells" directly after he purchased a product, and not have it in the e-mail.

    Since the products are not on the same site, it cannot be added as related products, but would more be some sort of "since you purchased this, you may be interested in this" type of marketing.

    I agree with your solution, but what my client asked for is a solution where the user is presented the options straight after payment.

    Simon

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic