Extending Entities in 3.1.2
Posted: Wed Jun 04, 2014 2:25 am
I try to extend an entity and add a column name "product code" to products.
What I need to do is, everytime I need to add new products, I need it to input a "product code" field
but once I visited admin console.. it currently shows 3 items when adding a new Product
1. Product
2. myCustomProduct (which has the column I added)
3. Product Bundle.
I need it to show only the default which is "Product and Product Bundle" but the user needs to have that new "product code" field.
And also, Do I need to revise all the admin Entities that uses Product object to use MyProduct object?
------- EDIT
I have already solved the problem with entity type selection http://www.broadleafcommerce.com/docs/c ... -selection
next problem is, how can my extended entity be displayed in the products list? lets say I have inserted them during sql load?
are they loaded by default?
What I need to do is, everytime I need to add new products, I need it to input a "product code" field
but once I visited admin console.. it currently shows 3 items when adding a new Product
1. Product
2. myCustomProduct (which has the column I added)
3. Product Bundle.
I need it to show only the default which is "Product and Product Bundle" but the user needs to have that new "product code" field.
And also, Do I need to revise all the admin Entities that uses Product object to use MyProduct object?
------- EDIT
I have already solved the problem with entity type selection http://www.broadleafcommerce.com/docs/c ... -selection
next problem is, how can my extended entity be displayed in the products list? lets say I have inserted them during sql load?
are they loaded by default?