Zen Cart: Dont Show Sideboxes if SSL

Some web pages will show wanrings when you have unsecure content showing on secure pages, particulaly when you are showing content coming from external site. This can cause conflict when you want to display a newsletter form from MailChimp or similar client or Facebook or content from Twitter. To overcome this when you are creating custom sideboxes for Zen Cart! you need to enter the following code into the sidebox php file

  // test if box should display
  $show_editable_sidebox = true;
  
  // bof: do not show on secure pages
  if ($request_type == 'SSL') {
    $show_editable_sidebox = false;
  }
  // eof: do not show on secure pages
  
  $define_sidebox = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', DEFINE_EDITABLE_SIDEBOX_NAME, 'false');