I do marketing, and I need to know if a customer has purchased a specific product so I can remarket them.
So, "show this ad, except to those that have visited the order-received page" doesn't work for me, because I need to remarket several products individualizing the marketing campaigns.
I was able to add the SKU in the ADD-TO-CART/CHECKOUT page following this tutorial: https://www.themelocation.com/how-to-add-sku-to-product-url-in-woocommerce/
But the SKU does not propagate to the thank you page (order-received), I receive these parameters only: order-received/286/?key=wc_order_5b5f46b2ec536
(286 is the order number, not the SKU).
This is the outcome I would need: order-received/286/?key=wc_order_5b5f46b2ec536?SKU=[PRODUCT-SKU]
Is there any way to achieve this? Display the SKU in the order-received page?
Thanks!
&sku=ABC123,DEF456,GHI789
. Then split the string by the delimiter and loop through them on the success page. Even though users cannot order multiple items in your configuration, doesn't mean you should limit your installation with poor planning. This alternative method would work for that purpose, but you're really better off with a DB query. - Mavelo