Skip to main content
13 events
when toggle format what by license comment
Jan 24, 2020 at 15:00 history tweeted twitter.com/StackMagento/status/1220723084493193216
Jul 10, 2018 at 4:58 comment added Murtuza Zabuawala You are always welcome :)
Jul 9, 2018 at 14:56 vote accept Ravi Soni
Jul 9, 2018 at 14:25 comment added Ravi Soni Thanks a lot for the help, It's done. I have created new attribute Yes/No and the help of this. It achieves. Thanks again.
Jul 9, 2018 at 13:53 comment added Murtuza Zabuawala remove else part of your code catalog_product_view will call in all condition
Jul 9, 2018 at 13:50 comment added Ravi Soni I have checked my condition for both products. Conditions are working fine. But all time this handler call: catalog_product_view, let me check
Jul 9, 2018 at 13:44 comment added Murtuza Zabuawala please check why Your condition always becomes true
Jul 9, 2018 at 13:42 comment added Ravi Soni Thanks, It gets called, But again this handler reflects on other products too. see my condition also if($product->getName() == 'book2'){ $layout = $observer->getLayout(); $layout->getUpdate()->addHandle('my_downlodable_view'); }else{ $layout = $observer->getLayout(); $layout->getUpdate()->addHandle('catalog_product_view'); }
Jul 9, 2018 at 13:35 comment added Murtuza Zabuawala Change in name catalog_product_view_** to other like my_downlodable_view and try
Jul 9, 2018 at 13:33 history edited Ravi Soni CC BY-SA 4.0
added 2007 characters in body
Jul 9, 2018 at 13:29 answer added Murtuza Zabuawala timeline score: 5
Jul 7, 2018 at 4:50 answer added Prashant Valanda timeline score: 0
Jul 6, 2018 at 12:24 history asked Ravi Soni CC BY-SA 4.0