Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Infobox question, a rather different question.


sunstilch

Recommended Posts

Posted

First off, i'm a somewhat new to Osc, but I love it!

 

I want to know how to make a right or left side box dissapear automatically once a user has been forced into SSL mode.

 

on the other hand, I'd also like to know how to make a box appear automatically as well. I see it being done already when I log into my store, but I tried looking through the code and I just dont have a clue.

 

Any help would be much appreciated!

 

Thanks! :D

Posted

In colum_left.php (or right, suit yourself)

 

   if ($HTTPS == 'on') {

        include('whatever_box.php');

    } else {

        include('another_box.php');

   }

 

If you do not want an ELSE:

 

   if ($HTTPS == 'on') {

     include('whatever_box.php');

  }

 

Merry Xmas :D

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

It worked like a charm, and I just learned a great deal from doing this.

 

Thanks so much, and you have a Great Christmas as well!

 

sunstilch

Archived

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

×
×
  • Create New...