Skip to content

Entity Products

Marius edited this page Aug 22, 2014 · 3 revisions

Entity Products

This section allows you to link your entity in a many to many relation with the products .
By choosing to have this relation, after installing the module you generate with UMC you will see for your entity, in the backend edit page a new tab called Associated Products. It looks very similar to the product tab on the category edit page.

associated products

The associated products are managed the same way you manage the products from a category.
The only difference is that you can click on the product name and get to the product edit page.

There are other fields that you can fill in while creating your module.
products

  • Link "many to many" with products - Described above. All the fields below are disabled if you choose not to create a link to the products.
  • Show associated entities on product page - If this is set to 'Yes', a new section with the list of your entities related to a specific product will be added to the product view page. May depend on the theme your are using.
  • Show associated product on entity page - If this is set to 'Yes', a new section with the list of your products related to one entity will be added to the entity view page.
  • Make entity a product attribute - If you set this to Yes will add a new attribute to the products. It will be a dropdown attribute (multiselect will follow). The dropdown will contain all your entity instances. It could be useful if you want for example to show brand logos on your product pages. Just create a brand entity that has an image field, make it a product attribute, on the product edit page select the desired brand. Then you have to write the code for fronend only to retrieve the image of your brand entity.
  • Product attribute code - In case you want to add your entity as a product attribute you have to fill in here the attribute code.
  • Product attribute scope - In case you want to add your entity as a product attribute you have to select the attribute scope: GLOBAL, WEBSITE, STORE VIEW.
  • Product attribute group - In case you want to add your entity as a product attribute you can fill in here the attribute group where the attribute should be added. If you leave it empty the attribute will not be added to any attribute sets. If you fill in a value (General for example) the attribute will be added in all the attribute sets that contain that group (tab in the product edit page). If the attribute group does not exist it will be created and added to all the attribute sets.
Clone this wiki locally