Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to: hide a specific infobox?


Guest

Recommended Posts

Posted

Hi everybody,

 

I have a qust. and I don't know if it possible to proccess or not,

 

There is an infobox in my store and I want to hide it if the customers moved to a secure area HTTPS.

 

eg. if the customer in http://site.... he can see the "What's New" box

but if he moved to a secure are https://site... he will not see the "What's New" box

 

So, is there a code to put in column_left.php and before

 

require(DIR_WS_BOXES . 'whats_new.php');

 

?

 

Hope it to be possible :thumbsup:

Posted
Change the code to
<?php if ($request_type == NONSSL) {
require(DIR_WS_BOXES . 'whats_new.php');
}

 

Jack

 

Thanks Jack, there was a problem with the code and I removed <?php then it works

 

 if ($request_type == NONSSL) {
require(DIR_WS_BOXES . 'whats_new.php');
}

Archived

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

×
×
  • Create New...