Web Analytics

Fill the form & Get Installation Support

Any Question or Concerns?
Let's discuss





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

    Related articles

    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.

    Contact us for scientific strategies to increase your site conversions





      Connect With Us