♥Vger Posted February 7, 2005 Share Posted February 7, 2005 I have a site which is highly modified. except for the shopping cart side of things, and now when people go to their cart they are getting the 'Customers who bought this also bought' list below the cart. I have looked in the various classes, functions, and in shopping_cart.php but cannot find where this is being generated from - anyone know? Vger Link to comment Share on other sites More sharing options...
Guest Posted February 7, 2005 Share Posted February 7, 2005 i deleted it from within product_info.php Link to comment Share on other sites More sharing options...
♥Vger Posted February 7, 2005 Author Share Posted February 7, 2005 Thanks Mibble, while you were writing it I was finding it just where you said. Many thanks. Vger Link to comment Share on other sites More sharing options...
Guest Posted February 7, 2005 Share Posted February 7, 2005 about line 225, it is from modules/also_purchased_products.php Link to comment Share on other sites More sharing options...
♥Vger Posted February 7, 2005 Author Share Posted February 7, 2005 Yes, found that and have it sorted now. Do you know though why there are extra closing curly brackets in most php statements in osCommerce? When deleting this I deleted all code between the opening and closing php statements, and it generated an error. I then counted all of the opening and closing brackets and there was one extra closing curly bracket, so I left that in place and it works fine. All through osCommerce there are lines of code like this, and I can't figure out why. <?php } ?> Vger Link to comment Share on other sites More sharing options...
Guest Posted February 7, 2005 Share Posted February 7, 2005 just have to check the upper code. most are closing an if statement from way up. close your other eye when counting, lol . . . Link to comment Share on other sites More sharing options...
k1w1guy Posted February 7, 2005 Share Posted February 7, 2005 Yes, found that and have it sorted now. Do you know though why there are extra closing curly brackets in most php statements in osCommerce? When deleting this I deleted all code between the opening and closing php statements, and it generated an error. I then counted all of the opening and closing brackets and there was one extra closing curly bracket, so I left that in place and it works fine. All through osCommerce there are lines of code like this, and I can't figure out why. <?php } ?> Vger <{POST_SNAPBACK}> Thanks! It worked............ but a weird fix. <_< Pete Link to comment Share on other sites More sharing options...
boxtel Posted February 7, 2005 Share Posted February 7, 2005 just have to check the upper code. most are closing an if statement from way up. close your other eye when counting, lol . . . <{POST_SNAPBACK}> I believe the } is from the else statement. the first thing products_info does is check if the product exists if it does not it will say product not found then it starts the else for when it does find the product. Treasurer MFC Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.