fransen Posted September 28, 2005 Posted September 28, 2005 Hello, I'm sure trying to add two product specials on the right hand site of the website. The site is http://www.lcs-collectables.com. How do I go about it? I'm brand new at this oscommerce and would like to learn. Thanks!
241 Posted September 28, 2005 Posted September 28, 2005 specials box picks a random product from those that are set to have a special price and therefore the product changes when the page changes or the page is refreshed. are you looking to have two boxes with fixed products in the box or two boxes each slecting random products from those that are marked as special No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
fransen Posted September 28, 2005 Author Posted September 28, 2005 I'm looking to have 2 products that are selected randomly and are marked as special.
241 Posted September 28, 2005 Posted September 28, 2005 catalog/includes/column_right.php add a second call to specials as shown 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'); include(DIR_WS_BOXES . 'specials.php'); } however in doing this sometimes the same product may show in both boxes No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
fransen Posted September 29, 2005 Author Posted September 29, 2005 I don't have any of that code on that page. All I have is: <?php /* $Id: column_right.php,v 1.1 2003/09/08 19:26:22 jhtalk Exp jhtalk $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // STS: ADD $sts_block_name = 'columnleft2columnright'; require(STS_RESTART_CAPTURE); // STS: EOADD require(DIR_WS_BOXES . 'reviews.php'); // STS: ADD $sts_block_name = 'reviewsbox'; require(STS_RESTART_CAPTURE); } ?> I don't have any of that code on that page. All I have is: <?php /* $Id: column_right.php,v 1.1 2003/09/08 19:26:22 jhtalk Exp jhtalk $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // STS: ADD $sts_block_name = 'columnleft2columnright'; require(STS_RESTART_CAPTURE); // STS: EOADD require(DIR_WS_BOXES . 'reviews.php'); // STS: ADD $sts_block_name = 'reviewsbox'; require(STS_RESTART_CAPTURE); } ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.