Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Get required option for a Attribute
 
WebScientist
Jr. Member
 
Total Posts:  4
Joined:  2011-04-10
 

Hy,

I use one mod called “Color Swatch”, on a view page all the custom params are set required, but in config of this attribute isn’t.

This is the code:

$_product $this->getProduct();
$_attributes Mage::helper('core')->decorateArray($this->getAllowAttributes());
if (
$_product->isSaleable() && count($_attributes)):
foreach (
$_attributes as $_attribute):
$require $_attribute->something(); // This function i need

On Magento have somehow to get the value of the field required at attribute?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top