chfields Posted November 18, 2003 Share Posted November 18, 2003 I know there is a code out there for making the cart not appear until item put in it, I've searched but can't find it. Can anyone help?? I have MS2 and set display cart after purchase but thats not doing it...Thanks Link to comment Share on other sites More sharing options...
TomThumb Posted November 18, 2003 Share Posted November 18, 2003 In /catalog/includes/column_right.php change require(DIR_WS_BOXES . 'shopping_cart.php'); to if ($cart->count_contents() > 0) { require(DIR_WS_BOXES . 'shopping_cart.php'); } while (!succeed) {try()}; GMT -6:00 Link to comment Share on other sites More sharing options...
chfields Posted November 18, 2003 Author Share Posted November 18, 2003 Thanks!!!! Link to comment Share on other sites More sharing options...
Guest Posted November 19, 2003 Share Posted November 19, 2003 /* $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 My catalog/includes/column_right.php only has the following codes? 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 can't find the "require(DIR_WS_BOXES . 'shopping_cart.php'); " Please advise me which file I need to edit to have this feature RJ Link to comment Share on other sites More sharing options...
_pleb Posted November 19, 2003 Share Posted November 19, 2003 I believe that in STS (which you didn't mention you were using) the $cartbox is set in column_left.php if ($cart->count_contents() > 0) { require(DIR_WS_BOXES . 'shopping_cart.php'); } // STS: ADD $sts_block_name = 'cartbox'; require(STS_RESTART_CAPTURE); //STS: EOADD Link to comment Share on other sites More sharing options...
Guest Posted November 20, 2003 Share Posted November 20, 2003 I still can't find it in the codes in the "catalog/includes/column_right.php" any idea why? please advise me which file i need to edit Link to comment Share on other sites More sharing options...
TomThumb Posted November 20, 2003 Share Posted November 20, 2003 I don't use STS but I think _pleb is right. By default require(DIR_WS_BOXES . 'shopping_cart.php'); Is in catalog/includes/column_left.php line 60. while (!succeed) {try()}; GMT -6:00 Link to comment Share on other sites More sharing options...
Guest Posted November 20, 2003 Share Posted November 20, 2003 Thank you Mr.TomThumb, its worked, its under catalog/includes/column_left.php thanks a lot again Link to comment Share on other sites More sharing options...
speed2 Posted November 20, 2003 Share Posted November 20, 2003 HI Tom, For some reason its not working, The shoping cart box never show up any idea why? Link to comment Share on other sites More sharing options...
TomThumb Posted November 20, 2003 Share Posted November 20, 2003 No, I don't know why. But I would try echoing the count like this; echo $cart->count_contents() . ' count'; if ($cart->count_contents() > 0) { require(DIR_WS_BOXES . 'shopping_cart.php'); } If that doesn't help, post a code clip. while (!succeed) {try()}; GMT -6:00 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.