Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Two Product Specials Right Hand Side


fransen

Recommended Posts

Posted

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

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);

 

}

 

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...