Fabians small Magento world
  • Home
Subscribe
Tagged

Sourcemodel

A collection of 2 posts

Sourcemodel

Custom Product Attributes, Source Models and Flat Tables

How to add an attribute to product_flat_table Either one of the following attribute settings is true: backend_typ = 'static' is_filterable > 0 used_in_product_listing = 1 is_used_for_promo_rules= 1 used_for_sort_by = 1 Or you add it manually by observing this event:

  • Fabian Blechschmidt
Fabian Blechschmidt Jul 13, 2017 • 1 min read
Magento

EAV attributes, default values and source models

EAV Attribute I tried to add an EAV attribut, set a default value and that without using a source model, set this options: $this->addAttribute('customer', 'customer_type', array( 'type' => 'int' 'option' => array('values' => array('Customer', 'Artist')) 'default' => 'Customer', [...] ); Default value Magento adds the values

  • Fabian Blechschmidt
Fabian Blechschmidt Oct 29, 2012 • 1 min read
Fabians small Magento world © 2022
Powered by Ghost