0

I want to add a custom product attribute. Of the attribute is enabled (should only contain yes or no) if it’s enabled I want to change the price to coming soon if it’s disabled show the price.

2
  • you need to use hide price extension for that Jul 23, 2020 at 4:08
  • Why do I need a extension for that @JigsParmar I am sure it won’t be that bad. I wanted to know if I am using a plaguing or a observer to change the price. Jul 23, 2020 at 6:33

1 Answer 1

0

you need to use plugin for the class

Magento\Catalog\Pricing\Render\FinalPriceBox

to change the pricehtml

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.