Timeline for Magento-show custom attribute of a product only if that belongs to specific category
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 18, 2014 at 18:24 | comment | added | LuckyB | Yes, I checked everything, but I got it worked with other code, posting it as answer. anyways, thank you for great effort. for some reason this code does not work for me. | |
Aug 18, 2014 at 18:20 | comment | added | MagePal Extensions | Did you check your product admin to make sure it is assign to multiple category and that all your index are up to date? Also is this a simple or configureable product? | |
Aug 18, 2014 at 18:08 | comment | added | LuckyB | the print value in products of other categories is Array ( [0] => 10 ) and in product that I want to show, is Array ( ) | |
Aug 18, 2014 at 16:32 | comment | added | LuckyB | Strange, I am getting no result for desired product, but getting cat ID perfectly for all other products. | |
Aug 18, 2014 at 16:30 | comment | added | MagePal Extensions |
What is the output of print_r($_product->getCategoryIds()); ?
|
|
Aug 18, 2014 at 16:29 | comment | added | LuckyB | For me, I am able to get the value of attribute with the code I have in my question or maybe I am not understanding you. | |
Aug 18, 2014 at 16:19 | comment | added | LuckyB | nope, not working, not showing any result at all. | |
Aug 18, 2014 at 15:35 | history | answered | MagePal Extensions | CC BY-SA 3.0 |