0

Where is the equivalent way of writing the following Magento 1 code for calling a custom widget in Magento 2.3.1?

Mage::getSingleton('widget/template_filter')->filter($_product->getData('variants'))
2

Difficult to answer without knowing more on the affect you are trying to achieve but will something like this work

https://magento.stackexchange.com/a/162423/70343

Otherwise please can you add more detail on the task you are trying to achieve. There is always a possibility the same thing can be done differently in M2.

  • Thanks a lot. actually the link you posted is exactly what i needed. – Magento Learner Jul 7 at 20:37

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.