Shopify.Checkout.OrderStatus.AddContentBox Content Not Visible

Hi,
I am going to post this question again but worded differently.

I am working on a feature for my company that requires additional scripts and content to render on the Order Status (Thank you) page. I have added my scripts and HTML but when I get the Thank you page, the content is not visible.

What I am trying to do is generate one or more link buttons with a dynamic url based on the logic. I can View Page Source and see the correct HTML being rendered there with the correct url being generated. I can tell that the script is working because it is building a large URL with Querystring parameters based on order information and it looks correct. It’s just that the content is not being rendered. I am using the same logic in the confirmation email and I can see my link(s) added there and they work correctly.

Below is my script. The names have been changed to protect the innocent but otherwise it is exactly as I have it.

I tried putting in some simple

tag and nothing else and that works fine.

Editing the checkout.liquid file directly could also be an option but the documentation is not very clear on how to do it.

Please don’t refer me to the Shopify documentation (Customize the order status page · Shopify Help Center.) as I have already read it. I followed the examples on there to get to where I am and it does not address the issue that I am seeing. My case is more complicated than any of the examples I have found.

Thanks,


Mystery solved. I just needed to add commas at the ends of the HTML strings to define them as separate parameters to the function.