Skip to content

Instantly share code, notes, and snippets.

@ScarletPonytail
Last active June 8, 2017 14:12
Show Gist options
  • Save ScarletPonytail/d31d24132b56532718d2bcb8b533df54 to your computer and use it in GitHub Desktop.
Save ScarletPonytail/d31d24132b56532718d2bcb8b533df54 to your computer and use it in GitHub Desktop.
Magento - Add custom attribute to product grid with if statement
<!-- Add custom attribute to catalog.xml within "catalog/product_list" block -->
<action method="addAttribute"><name>no_of_chickens</name></action>
<action method="addAttribute"><name>animal_type</name></action>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment