Adding Amazon Associates to non-https pages

Hello All

I’m adding an Amazon Associates Widget to the footer of my shop - the plan is to advertise complementary products that I can’t compete on.

The problem is that I was hoping to just stick the code in main.tpl below main content.

The problem is that this causes problems on checkout as the code is unsecure.

Anyone got a work around?

Is there a test in smarty that can detect https so I could add a simple if statement?