JaciD Posted November 18, 2009 Posted November 18, 2009 Here it goes, I learned today how to create & change boxes from one side to another. It was not to hard. When I was in my right side the code was alittle more difficult to understand. (See below) What I'm trying to do is move all shopping related boxes to left side and all informational related boxes to right side except keeping shopping cart box at top right. So, my right side would be: Shopping Cart Things of Interest Information "Undefined Box" (I haven't added it yet) Reviews Language Currency my left side would be: Marketplace Catagories Brand Name/Artist What's New Specials of the month Notifications - When it is viewable? Best Seller's - When it is viewable? Search Products Would someone please look at my code and tell how to figure out away to do it? Any suggestions are highly appreciated. This is my right-side column code file: */ 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 { include(DIR_WS_BOXES . 'specials.php'); } require(DIR_WS_BOXES . 'reviews.php'); if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { require(DIR_WS_BOXES . 'interests.php'); include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } ?> Thank you for your consideration!!!!!!
a.forever Posted November 20, 2009 Posted November 20, 2009 Here it goes, I learned today how to create & change boxes from one side to another. It was not to hard. When I was in my right side the code was alittle more difficult to understand. (See below) What I'm trying to do is move all shopping related boxes to left side and all informational related boxes to right side except keeping shopping cart box at top right. So, my right side would be: Shopping Cart Things of Interest Information "Undefined Box" (I haven't added it yet) Reviews Language Currency my left side would be: Marketplace Catagories Brand Name/Artist What's New Specials of the month Notifications - When it is viewable? Best Seller's - When it is viewable? Search Products Would someone please look at my code and tell how to figure out away to do it? Any suggestions are highly appreciated. This hunk of code should control the display of Best Sellers (I believe viewable after any customer has purchased a product), Product Notification (I believe viewable after a customer has subscribed to a product), Tell A Friend, and Specials. It should be as simple as moving these codes from column_right.php to column_left.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 { include(DIR_WS_BOXES . 'specials.php'); }
JaciD Posted November 20, 2009 Author Posted November 20, 2009 Thank you for your reply. Do you happen to know what }else{ means?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.