Timeline for Fatal error: Call to a member function getId() on a non-object in
Current License: CC BY-SA 3.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 9, 2015 at 8:13 | vote | accept | Baby in Magento | ||
Dec 9, 2015 at 7:59 | comment | added | Abdul | Let us continue this discussion in chat. | |
Dec 9, 2015 at 7:57 | comment | added | Abdul | or check your attribute is : Visible on Product View Page on Front-end : Yes OR No in admin end | |
Dec 9, 2015 at 7:56 | comment | added | Baby in Magento | please check here : prntscr.com/9c1j3a | |
Dec 9, 2015 at 7:55 | comment | added | Abdul | try this : <?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getCodVvailable(), 'cod_available') ?> ; | |
Dec 9, 2015 at 7:54 | comment | added | Baby in Magento | single one........ | |
Dec 9, 2015 at 7:53 | comment | added | Abdul | Multi select or single? | |
Dec 9, 2015 at 7:52 | comment | added | Baby in Magento | its dropdown...... | |
Dec 9, 2015 at 7:52 | comment | added | Abdul | cod_available attribute text or drop down? | |
Dec 9, 2015 at 7:52 | comment | added | Baby in Magento | its giving blank .... yes or no both are not displaying | |
Dec 9, 2015 at 7:50 | comment | added | Abdul | try this code :<?php $product = $this->getProduct(); if($product->getId()) { $attribute = $product->getResource()->getAttribute('cod_available'); if ($attribute) { echo $attribute_value = $attribute ->getFrontend()->getValue($_product); } } ?> | |
Dec 9, 2015 at 7:49 | comment | added | Baby in Magento | i am displying quantity, price in same page. that means getproduct() function in block file is present? | |
Dec 9, 2015 at 7:48 | comment | added | Abdul | but other .phtml file use which block? are you added code in child block or main block? | |
Dec 9, 2015 at 7:47 | comment | added | Abdul | updated ans pls check now | |
Dec 9, 2015 at 7:46 | history | edited | Abdul | CC BY-SA 3.0 |
added 264 characters in body
|
Dec 9, 2015 at 7:42 | comment | added | Baby in Magento | its giving blank .... yes or no both are not displaying.... | |
Dec 9, 2015 at 7:37 | history | answered | Abdul | CC BY-SA 3.0 |