sharonswang Posted October 28, 2009 Posted October 28, 2009 My website is: www.sharonantique.com, how can I add specials on the right column of my website? I tried to edit the column-right.php, but it does not work, please help me! My email is [email protected]
sharonswang Posted October 28, 2009 Author Posted October 28, 2009 Hi, I tried very hard to add the "specials" box on the right column of my webpage but failed. I do not know what the problem is, I already read the instruction of add a box on this website, could someone please help?
multimixer Posted October 28, 2009 Posted October 28, 2009 include(DIR_WS_BOXES . 'specials.php'); You need also to define some specials, you don't have any right now My community profile | Template system for osCommerce - New: Responsive | Feedback channel
sharonswang Posted October 28, 2009 Author Posted October 28, 2009 Thanks. But in which file I should define specials box? Sorry I am new.
sharonswang Posted October 28, 2009 Author Posted October 28, 2009 I add that line to the clomun-right.php, but an error shows up: Fatal error: Call to a member function add_current_page() on a non-object in /home/antiqu29/public_html/sharonantique.com/includes/application_top.php on line 312
sharonswang Posted October 28, 2009 Author Posted October 28, 2009 Please see how to modify this: <?php /* $Id: column_right.php 1739 2007-12-20 00:52:16Z hpdl $ 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'); include(DIR_WS_BOXES . 'specials.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 . 'specials.php'); require(DIR_WS_BOXES . 'reviews.php'); if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } ?>
multimixer Posted October 29, 2009 Posted October 29, 2009 You have it already in the file 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'); } Did you set any specials now? My community profile | Template system for osCommerce - New: Responsive | Feedback channel
sharonswang Posted October 29, 2009 Author Posted October 29, 2009 Yes, I set two special products already. Please go to my website: www.sharonantique.com. For some strange reason, I cannot add that specials box to my webpage. Thanks.
multimixer Posted October 29, 2009 Posted October 29, 2009 There are no specials here How do you want them to appear if they don't exist? My community profile | Template system for osCommerce - New: Responsive | Feedback channel
Recommended Posts
Archived
This topic is now archived and is closed to further replies.