cancel
Showing results for 
Search instead for 
Did you mean: 

Print shopping cart?

Print shopping cart?

Is there a way to add the option for the customer to print their shopping cart?

Thank you.

3 REPLIES 3

Re: Print shopping cart?

@MacArthurThere is no such native functionality in Magento. There is no such extension available in Magento Market place which you can use out of the box for your updates.

 

If you know coding then you'll be able to implement it without much effort. This can be built using simple Javascript code.

 

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Print shopping cart?

As previous answer suggest this can be done with a simple JS code

 

Create a button in Cart Page, name it like "Print Cart", you can use similar code like this

 

<button onclick="window.print()">Print Cart<button>

 

Suman Kar(suman.jis@gmail.com) Magento Certified Developer Plus Skype: sumanphptech Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

Re: Print shopping cart?

@MacArthur  You can do it as magento standard way. i think magento 2 giving print functionality only on compare product page. so you need to follow print compare product page functionality.

 

You can find  print functionality in below path.

/var/www/html/ProjectName/vendor/magento/module-catalog/view/frontend/templates/product/compare/list.phtml

 

Find below code.

data-mage-init='{"compareList":{
                    "windowPrintSelector":".action.print",
                    "productsInRow":"5",
                    "selectors":{
                        "productAddToCartSelector":"button.action.tocart"}
                }}'

 

If Issue Solved, Click Kudos/Accept As solutions.

If Issue Solved, Click Kudos/Accept As solutions.