Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hiding Infoboxes Non SSL (STS Contrib)


rerbe

Recommended Posts

After hunting for hours for information to enable me to hide infoboxes when not in SSL environment using the Simple Template System.

 

When I had no luck and not being a programmer myself, I experimented and came up with this.

 

Not fully tested yet but seems to work OK.

 

For Example to hide shopping cart infobox modify

 

// STS: ADD

$sts_block_name = 'cartbox';

 

so it looks like

 

// STS: ADD

if ($request_type == 'SSL') {

$sts_block_name = 'cartbox';

}

 

I hope this helps anyone in the same situation.

 

Cheers...

The solution is never too far away ...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...