0

I have create a custom module that is overriding catalog sales rule module.

I have add some banner and text on those products which are in the sale. Now I am confused that what happens when sales get expired? I actually want that when sale expires the banners and text should not be displayed on the product page.

If anyone has worked on catalog sales rule please let me know. Thanks

2

Below code is work for me

$catalogprice = $_product->getPriceInfo()->getPrice('catalog_rule_price')->getAmount()->getValue();
if($catalogprice) {
    // Show Banner
}
| improve this answer | |
  • how do i show specific banner according to the rule? – sudo55 Jan 29 '19 at 22:26

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.