Jump to content

[Solved] How to get rid of "Last added product" in the shopping cart


Recommended Posts

@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

  • 3 weeks later...

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

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

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

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

×
×
  • Create New...