timon Posted July 5, 2006 Share Posted July 5, 2006 Hi Guys, I have been working on my website and recently found a easy quicker way for customers to proceed through checkout. I am sure there might be a contrib out similar or somthing but becuase this has helped my traffic so much i wanted to tell others of the problems this can cause without this added. When a customer goes from shopping cart to create account it changes from non ssl to ssl. This switch can cause in most of the ocommerce carts image errors, long load and worst customers thinking your website is dodgy... meaning leaving your site. If you are noticing that people are leaving on this page then most probably this will help. I will post my column left and column right to show how to switch off certain boxes on checkout- Column left <?php /* $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } include(DIR_WS_BOXES . 'live_support.php'); if ($request_type == NONSSL) { require(DIR_WS_BOXES . 'whats_new.php'); } if ($request_type == NONSSL) { require(DIR_WS_BOXES . 'search.php'); } if ($request_type == NONSSL) { require(DIR_WS_BOXES . 'information.php'); } require(DIR_WS_BOXES . 'our_details.php'); require(DIR_WS_BOXES . 'affiliate.php'); ?> Column right - <?php /* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'shopping_cart.php'); if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { include(DIR_WS_BOXES . 'best_sellers.php'); } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'best_sellers.php'); } if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { } if ($request_type == NONSSL) { include(DIR_WS_BOXES . 'specials.php'); } if ($request_type == NONSSL) { include(DIR_WS_BOXES . 'card.php'); } if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { } if ($request_type == NONSSL) { include(DIR_WS_BOXES . 'currencies.php'); } if ($request_type == NONSSL) { include(DIR_WS_MODULES . 'strip_products.php'); } ?> Its all about the switch comment if ($request_type == NONSSL) { require(DIR_WS_BOXES . 'whats_new.php'); } Just remember in column left no top } is not needed for some reason and on column right } is needed before the request. To view it in action and to see how much faster it is go to - Emu Store - Emu Oil Products to try it out... I hope this helps out some people any questions just let me know Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.