I want to add new Minicart like shown in the following screenshot, using KnockOut Js, Give me some logic how can I cater to this problementer image description here

  • 2
    The minibasket uses the dropdownDialog plugin so you can reuse that - devdocs.magento.com/guides/v2.3/javascript-dev-guide/widgets/… – Ben Crook Mar 2 '20 at 16:43
  • Thanks Ben ,But will it also show count along with it like our normal Minicart? – Muhammad Abdullah Mar 2 '20 at 16:59
  • 1
    Nope, the count comes from the minicart template file using knockout, search for getCartParam('summary_count') to find that, the getCartParam function is defined in vendor/magento/module-checkout/view/frontend/web/js/view/minicart.js:168 (dependant on your version of Magento. I don't have time to provide a full answer sorry but hopefully that points you in the right direction. – Ben Crook Mar 3 '20 at 11:30

Your Answer

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

Browse other questions tagged or ask your own question.