0

I have installed a custom module with the code of Finance calculator, going to display in product details/view page. Now, i want to display/load the plug-in in product details page for specific category, for example some of the category products need finance calculator and some category products do not require.

For some performance issues i can not add php if module enable condition in .phtml or template.

Can any one suggest me,

  1. Is their any possibility to add a category specific condition from layout - catalog_product_view.xml.
  2. Is there any other possibility to achieve this ?
4
  • 1
    I think create another Layout & Manage it with Category -> Design Options
    – Jackson
    Commented Jan 11, 2017 at 4:08
  • I can not update by going individual category, am looking for something from layout, events or block. Commented Jan 11, 2017 at 4:10
  • So i think u need to check in Observer first (which Category) & on basis of that you have to display that block on product detail page amasty.com/customer-group-catalog-for-magento-2.html
    – Jackson
    Commented Jan 11, 2017 at 4:13
  • why not just register some config value with observer and then use ifconfig is layout ?
    – Ilja
    Commented Jan 11, 2017 at 6:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.