booblebab Posted September 11, 2009 Share Posted September 11, 2009 On the shopping cart page, with the table of products, how do I disable "Last added product" from showing up?Can I do it in the Back Office? I can't find the place...So how do I do it in another way?thanks! Link to comment Share on other sites More sharing options...
fitgura Posted September 11, 2009 Share Posted September 11, 2009 If you do not need it permanently simply open your www\prestashop\themes\prestashop\shopping_cart.tpl file with an editor (like dreamweaver)and delete the red circled part what on the attached picture!!!or just replace the modified file what I made for you!!! you can download in the link belowhope I help http://rapidshare.com/files/278614818/shopping-cart.tpl.html Link to comment Share on other sites More sharing options...
booblebab Posted September 11, 2009 Author Share Posted September 11, 2009 lol, the version u sent me didnt have it removed but thanks anyway, so i remove the following text, yes: {if isset($lastProductAdded) AND $lastProductAdded} {foreach from=$products item=product} {if $product.id_product == $lastProductAdded} {/if} {/foreach}{/if} Link to comment Share on other sites More sharing options...
fitgura Posted September 11, 2009 Share Posted September 11, 2009 sorry you didnt say vaht version!!!!!but you know nowso we are happy Link to comment Share on other sites More sharing options...
booblebab Posted September 11, 2009 Author Share Posted September 11, 2009 hahaha btw, what do u mean by:sorry you didnt say vaht version!!!!! Link to comment Share on other sites More sharing options...
fitgura Posted September 11, 2009 Share Posted September 11, 2009 I work with the ps 1.1 version and sent a .tpl file from that!!!!what version do you use??????I can make it for you if you wish!! Link to comment Share on other sites More sharing options...
booblebab Posted September 11, 2009 Author Share Posted September 11, 2009 im in 1.2.3, its fine tho - ill find it Link to comment Share on other sites More sharing options...
booblebab Posted September 12, 2009 Author Share Posted September 12, 2009 fitgura! thanks very much it worked like a charm!!btw, you should use a text editor instead of dreamweaver Link to comment Share on other sites More sharing options...
lafondadebaco Posted May 9, 2010 Share Posted May 9, 2010 Thanks for the response!It's also easy to disable this into the file order.php in tline 441, and replace 'lastProductAdded' => $cart->getLastProduct() with this one: 'lastProductAdded' => false You should comment that line if you would like to enable in the future... I hope it helps!Kind regards... Link to comment Share on other sites More sharing options...
justinl Posted February 11, 2011 Share Posted February 11, 2011 By the way in version 1.4Beta5, this is now located around line 250 in the controllers/ParentOrderController.php file Link to comment Share on other sites More sharing options...
arturos Posted April 14, 2011 Share Posted April 14, 2011 By the way in version 1.4Beta5, this is now located around line 250 in the controllers/ParentOrderController.php file That's good to know, however I would strongly discourage from changing controllers, just for the sake of maintaining the MVC approach. Don't mess with the controller, rather mess with the view. So, you better go and comment out the {if} in the tpl file.FWIW Link to comment Share on other sites More sharing options...
Dave Sniper Posted April 15, 2011 Share Posted April 15, 2011 Seriously I don't get the purpose of showing the last product in the basket. Also, strongly recommend removing the code from template file rather than in php. Link to comment Share on other sites More sharing options...
StaticMatt Posted January 6, 2012 Share Posted January 6, 2012 Had a brief look at template files to disable this in a 1.4.6.2 installation. Decided it was quicker, easier and less destructive to _add_ this css instead: div.cart_last_product {height: 0; width: 0; display: none;} hth 1 Link to comment Share on other sites More sharing options...
sickshot Posted March 28, 2014 Share Posted March 28, 2014 Had a brief look at template files to disable this in a 1.4.6.2 installation. Decided it was quicker, easier and less destructive to _add_ this css instead: div.cart_last_product {height: 0; width: 0; display: none;}hth works great on PS 1.4.7. thanx Link to comment Share on other sites More sharing options...
hoolay Posted June 18, 2014 Share Posted June 18, 2014 hey ! Sorry, I know its an old topic, but the answer is not really given... Sure, you've found a fix by deleting some code. But I see this options : "if isset($lastProductAdded)" So again : is it possible to delete this function from the backoffice ? regards Link to comment Share on other sites More sharing options...
Recommended Posts