I am building a swatch picker (have built actually) and have it working for the configurable products with no issues. Im storing the delimited swatch information in a text box attribute called ‘swatches’ and pulling it out to build a java collapsible div with the images in it.
Im using the code:
to pull this information from the attribute.
Works like a charm with configurables (configurable.phtml), but is giving an error with simple products’ custom options ( select.phtml )
the error is as follows:
Fatal error: Method name must be a string
If I try to do
Fatal error: Call to a member function getAttributeText() on a non-object
I also tried putting
$_product = $this->getProduct();
$_attributes = Mage::helper('core')->decorateArray($this->getAllAttributes());