0

The products are hidden by default in the checkout

enter image description here

How can I show them by default?

1

Please follow the below steps:

FROM:

vendor/magento/module-checkout/view/frontend/web/js/view/sum‌mary/cart-items.js

TO:

app/design/frontend/{Vendor}/{theme-name}/Magento_Checkout/web/js/view/summary/cart-items.js

Replace below code in that file.

isItemsBlockExpanded: function () { 
   /*return quote.isVirtual() || stepNavigator.isProcessed('shipping'); */       
    return true;
 }
| improve this answer | |
  • If my answer helped you, you can accept the answer so it can help others also. – Yo Yo Roshan Mar 19 at 12:28
0

You need to overwrite the template vendor\magento\module-checkout\view\frontend\web\template\summary\cart-items.html in your own theme and replace:

<div class="block items-in-cart" data-bind="mageInit: {'collapsible':{'openedState': 'active', 'active': isItemsBlockExpanded()}}">

with:

<div class="block items-in-cart" data-bind="mageInit: {'collapsible':{'openedState': 'active', 'active': true}}">
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.