Reply to comment

Can you be so kind to be more clear at point 4?

I got setup.php with the followinf line:

***************************************************************************************************
class Mage_Customer_Model_Entity_Setup extends Mage_Eav_Model_Entity_Setup
{

public function getDefaultEntities()
{
return array(
'customer' => array(
'entity_model' =>'customer/customer',
'table' => 'customer/entity',
'increment_model' => 'eav/entity_increment_numeric',
'increment_per_store' => false,
'attributes' => array(......................................................................
***************************************************************************************************

You say "Put the method inside the following class:", so means at the end of the file to do the following:

****************************************************************************************************
class Fontis_Customer_Model_Entity_Setup extends Mage_Customer_Model_Entity_Setup
{

public function getDefaultEntities()
{
return array(

'flavour' => array(
'label' => 'Ice Cream Flavour',
'visible' => true,
'required' => true,
),

)
}

}

*********************************************************************************************

The comma after the first closing ) should be cancelled?

Thank you

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <apache>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <perl>, <php>, <python>, <ruby>, <xml>. The supported tag styles are: <foo>, [foo].

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.