0

I'm new to Magento, I have this module which adds progress bar in cart summary
https://github.com/christophermallory/magento2-freeshipping-progress-bar,
I want to add it to minicart

5
  • You just need to enable the module that's it. Read that documentation where placed in your given link.
    – Harun
    Mar 29, 2023 at 10:48
  • The module add the progress in cart summary, i want it in minicart Mar 29, 2023 at 11:01
  • To show this progressbar in the mini-cart, you can create a custom block that uses the ProgressBar and adds it to the mini-cart template.
    – Harun
    Mar 29, 2023 at 11:13
  • And how i do this?! Mar 30, 2023 at 9:12
  • Check my answer try it
    – Harun
    Mar 30, 2023 at 12:09

1 Answer 1

0

||create a new module.

||Create a new template file that includes the progress bar (view/frontend/templates/cart/minicart.phtml)

||create a file named default.xml in the directory view/frontend/layout/

||save this code in default.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
   <body>
       <referenceContainer name="header.panel.wrapper">
           <block class="Magento\Framework\View\Element\Template" name="custom.minicart" template="Vendor_Module::cart/minicart.phtml" />
       </referenceContainer>
   </body>
</page>

Run after flush.

3
  • it's not working Apr 8, 2023 at 10:51
  • What was the error
    – Harun
    Apr 9, 2023 at 5:06
  • Nothing happened Apr 10, 2023 at 11:08

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.