Jump to content

Easy: Remove "Last added product"


Recommended Posts

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 below

hope I help :)

http://rapidshare.com/files/278614818/shopping-cart.tpl.html

11710_Qvdp64oH924H33vvLqie_t

Link to comment
Share on other sites

  • 7 months later...

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

  • 9 months later...
  • 2 months later...
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

  • 8 months later...
  • 2 years later...

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

  • 2 months later...

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

×
×
  • Create New...