Page 1 of 1

Extending Entities in 3.1.2

Posted: Wed Jun 04, 2014 2:25 am
by nanix84
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?

Re: Extending Entities in 3.1.2

Posted: Thu Jun 05, 2014 8:42 pm
by RapidTransit
nanix84 wrote: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?

In the Admin or on the customer facing site? If you're not seeing the products on the customer facing side you may need to wait for Solr to index it. If you want the other Products to be a part of the extended entities, on the inherited join table just add the products primary key.