0

The products are hidden by default in the checkout

enter image description here

How can I show them by default?

2 Answers 2

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;
 }
1
  • If my answer helped you, you can accept the answer so it can help others also. Commented Mar 19, 2020 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}}">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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