I am in the template file price.phtml
. I would like to have some line of code that looks at the parent that is calling the block and do some behavior based on that. Essentially if the parent is a catalog list page, I want a from:
tag to be added to the price. If the parent is configurable.phtml
, I want to simply display the price as normal.
I already have the code to add the from:
to the price but I need the if statement to tell what the parent caller is.
I have seen something like ::parent
before when perusing Mage files, but I don't know if that is applicable here...
Thanks!