Web Analytics

Fill the form & Get Installation Support

    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

        Let our Magento expert connect to discuss your requirement.

          We offer Magento
          certified developers.

          Our Magento clientele
          is 500+.

          We sign NDA for the
          security of your projects.

          We’ve performed 100+
          Magento migration projects.

          Free quotation
          on your project.

          Three months warranty on
          code developed by us.