How to fix additional scripts in Shopify checkout?

I feel like I’m so close on this because if I don’t include any of the if statements then I can print the variables on the successful check out screen. Can you please help me to see what I’m missing here? Thanks

P.S. yes I have the actual product ID number in there correctly but I added it as 1234567890 for now. I’ve also checked that ?ref is set on the permalink url when they click a link on my website.


I found a bit of mistake in the script with where I showed the order status content box

Still isn’t working though