Magento custom attribute default value not showing in front end -
I have added some custom attributes in the admin section of our Magento 1.3.2.1 installation and I have given some of those properties The default value problem is that when I try to get attribute from product object, the default values are not returning:
$ _ product-> getCode ()
< / Pre>Logically, I think that if there is no archive against the product Education is, then gets back to the default value, but it does not appear (unless I do not know the clear).
Attribute Properties:
Default value: value
Unique value: No
Value requirement: No
P>
Input validation for the store owner: Any
Apply to: All Product Types
Foreground Properties:
Use in Quick Search: No
Use in Advanced Search: No
Comparative R-end: No
Use in layered navigation: No
Use in search results Layered navigation: No
Use for Price Rule Conditions: No
Status: 0
Allow HTML-Tag on Front-End: Yes
Front-End But product view on the page: Yes
Used Product List: Yes
Used for the Sorting in Product Listing: No
Your Help Of Thanks to new! For example, echo $ _product-> getAnotherCustomAttribute () for attribute labels
echo $ _product-> GetMyAttribute (): Short Description Then you should write code like resize $ _product-> getShortDescription () if attribute label: weight then $ _product-> getWeight () echo $ _product-> getAttributeText ('attribute_code') for example attribute label : Size and Attribute Code: resize again $ _product-> getAttributeText ('size')
Comments
Post a Comment