Hoodgrown Posted May 11, 2009 Share Posted May 11, 2009 I'd like to know where the code is for the "Last added product" in the shopping cart page.I think it's confusing to see an item sitting at the top above your other items. I'd like to get rid of it. Link to comment Share on other sites More sharing options...
Masino Sinaga Posted May 12, 2009 Share Posted May 12, 2009 Simply open \classes\Cart.phpFIND: ORDER BY `date_add` DESC' REPLACE WITH: ORDER BY `date_add` ASC' FIND: ORDER BY cart.`date_upd` DESC' REPLACE WITH: ORDER BY cart.`date_upd` ASC' FIND: ORDER BY c.`date_upd` DESC' REPLACE WITH: ORDER BY c.`date_upd` ASC' Link to comment Share on other sites More sharing options...
Masino Sinaga Posted May 12, 2009 Share Posted May 12, 2009 @Hoodgrown,Sorry if you receive the email from PrestaShop that inform you about my reply which my reply's content is different with my last reply above. It's because I did miss-typed at the first time I sent this reply, then I realized after my reply sent, I edited it again with the last result as you see above. The conclusion from my last reply is: just replace DESC with ASC in ORDER BY clause, in order to get the result the last added product always at the bottom of the Cart list. ;-)I don't know whether my last updated reply above also being sent again to your e-mail by PrestaShop. Thanks. Link to comment Share on other sites More sharing options...
Hoodgrown Posted May 12, 2009 Author Share Posted May 12, 2009 Hey thanks. I'm going to try it out now. Link to comment Share on other sites More sharing options...
Masino Sinaga Posted May 12, 2009 Share Posted May 12, 2009 You're welcome. Good luck to you. Link to comment Share on other sites More sharing options...
MeenaInc Posted June 2, 2009 Share Posted June 2, 2009 If you would like to REMOVE the last item section (which we have done because it is annoying) follow these steps:> In your THEME directory, open the folder of your current theme (ex. prestashop)> open the file SHOPPING-CART.TPL> At line 15 you will see {if isset($lastProductAdded) AND $lastProductAdded}> Place <!-- before it so it looks like <!-- {if isset($lastProductAdded) AND $lastProductAdded}> Go down about 23 lines and find the last {/if}, just before an > Place --> after this so it looks like {/if} -->This will comment out the section that shows the last added product.Moving forward, always comment out sections of code instead of deleting. It makes it much easier to go back and undo. I also put my own comments inside these brackets to keep notes of my changes.Good luck,Meena, Inc.www.meenainc.com Link to comment Share on other sites More sharing options...
Hoodgrown Posted June 2, 2009 Author Share Posted June 2, 2009 Thats what I was looking for. Thanks...ps: it is annoying as hell... lol. Link to comment Share on other sites More sharing options...
Hoodgrown Posted June 2, 2009 Author Share Posted June 2, 2009 Moving forward, always comment out sections of code instead of deleting. It makes it much easier to go back and undo. I also put my own comments inside these brackets to keep notes of my changes That's actually great advice. I never thought of doing it that way. Thanks! Link to comment Share on other sites More sharing options...
Patric Posted June 2, 2009 Share Posted June 2, 2009 [solved] topic ? Link to comment Share on other sites More sharing options...
Hoodgrown Posted June 2, 2009 Author Share Posted June 2, 2009 FOr some reason it's not working right for me... Link to comment Share on other sites More sharing options...
Patric Posted June 2, 2009 Share Posted June 2, 2009 We can see-> -> ->in your screen.May be you didn't write correct HTML comments tags.The open comment tag must be : <!-- The close comment tag must be : --> Each time with 2 '-' in it.Beacause of the forum font, in MeenaInc post, it seems there is only 1 '-'.;-) Link to comment Share on other sites More sharing options...
VIXUS Posted June 2, 2009 Share Posted June 2, 2009 It works fine with this explanation.One more thing... where to strech products list in cart to set width that i need? (see picture).Thanx!DJ Link to comment Share on other sites More sharing options...
Patric Posted June 2, 2009 Share Posted June 2, 2009 @DJ-Terror : you should post your question in the Themes section. Link to comment Share on other sites More sharing options...
VIXUS Posted June 2, 2009 Share Posted June 2, 2009 I was thinking, while we discuss here similar thing to get some help. But no problem, ill post there.Cheers!http://www.prestashop.com/forums/viewthread/20131/themes/help_needed_with_chart_customisation_dot_/ Link to comment Share on other sites More sharing options...
Hoodgrown Posted June 2, 2009 Author Share Posted June 2, 2009 We can see-> -> ->in your screen.May be you didn't write correct HTML comments tags.The open comment tag must be :<!-- The close comment tag must be : --> Each time with 2 '-' in it.Beacause of the forum font, in MeenaInc post, it seems there is only 1 '-'.;-) Yeah that was MY dumb error... I was at work and I totally forgot the comment command. I can't believe it. Thanks... lol Link to comment Share on other sites More sharing options...
Patric Posted June 2, 2009 Share Posted June 2, 2009 So, I mark the topic as [solved]. ;-) Please think to do it next time. Link to comment Share on other sites More sharing options...
Recommended Posts