Jump to content

Sort and group products in shopping cart by supplier


Recommended Posts

Hi, I am a newbie in Prestashop and I am having some problems trying to adapt Prestashop to my needs.

In this case I would like to sort and group the products in the cart by supplier. I would like to separate the products of different suppliers just with a line or something like that, separating products from different supplier. I would like to achieve this in blockcart module and also when yo enter to cart in the shopping-cart.tpl if possible. Thanks a lot for your help!

Share this post


Link to post
Share on other sites
  • 1 year later...
  • 5 months later...

My solution for sorting the cart without changing the core code can be found here. In the getSummaryDetails function, you could add variables that you can later use in the template (like I add original_date_add), which can later be used in the template to add separators by suppliers.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More