Jump to content

Display only products added to cart on a new page


Recommended Posts

Hey!

 

I've followed this guide:

 

https://www.prestashop.com/forums/topic/52650-how-to-add-a-custom-page/

 

to create a new page called mysite.com/mypage (just an example) and everything is working fine. 

 

Though I want all the products that has been added to the cart, total product price excl vat and total price to get displayed here, how am I able to accomplish this?

 

What I want on the page: http://i.imgur.com/j23SMto.png

 

Best regards,

 

Niklas.

Edited by niklas123400 (see edit history)
Link to comment
Share on other sites

  • 4 months later...

  1. $products = $this->context->cart->getProducts();

then you can assign $products variable to smarty (this->context->smarty->assign())

in .tpl file you can do foreach loop on $products variable to display list of products in cart

Link to comment
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...