Timeline for how to use controller code in template .phtml file
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 10, 2017 at 13:34 | vote | accept | Baby in Magento | ||
Mar 10, 2017 at 11:47 | answer | added | Jaimin Sutariya | timeline score: 4 | |
Mar 10, 2017 at 11:44 | answer | added | DanCarlyon | timeline score: 1 | |
Mar 10, 2017 at 11:43 | comment | added | Baby in Magento |
fatal error on line : <span><span><?php echo 'See <a href="/catalog/product/view/id/' . $product->getId() . '">created simple product</a>' ?>
|
|
Mar 10, 2017 at 11:42 | comment | added | Baby in Magento | addtocart.phtml code : pastebin.com/7C12E2x4 | |
Mar 10, 2017 at 11:41 | comment | added | Baby in Magento |
@DanCarlyon please check edit part in question
|
|
Mar 10, 2017 at 11:41 | history | edited | Baby in Magento | CC BY-SA 3.0 |
added 2458 characters in body
|
Mar 10, 2017 at 11:39 | comment | added | DanCarlyon |
Can you show the _createProduct method? From what i can see you are trying to call getId() on something that is not an object. Also does addtocart.phtml have access to $product Also if you could show the whole error you are getting too, so we can see which file it is complaining about :)
|
|
Mar 10, 2017 at 11:34 | history | asked | Baby in Magento | CC BY-SA 3.0 |