Web Analytics

Fill the form & Get Installation Support





    How to show FromDate and ToDate on detail page from assigned catalog price rule?

    The default Magento 2 does not show FromDate or ToDate on the detail page from the assigned catalog price rule. If you want to show these dates on the detail page then follow the below steps.

    Step 1: Create a registration file like Magemonkeys/Catalogrule/registration.php

     

    Step 2: Create module file like Magemonkeys/Catalogrule/etc/module.xml

     

    Step 3: Create block file like Magemonkeys/Catalogrule/Block/Rule.php

     

    Step 4: Create layout file like Magemonkeys/Catalogrule/view/frontend/layout/catalog_product_view.xml

     

    Step 5 : Create template file like Magemonkeys/Catalogrule/view/frontend/templates/product/view/rule.phtml

     

    Step 6: Then run the below commands.

     

    That’s it.

    Now clean cache and check your product detail page. Now your catalog price rule FromDate and ToDate should be visible.

    Fill the below form if you have any Magento programming need.





      Recent Articles

      Author Info

      Hire R. Patel

      Get a Free Quote





        Connect With Us