Jump to content

Photo

Extending SmartStore Basics

Extending Entity field

  • Please log in to reply
1 reply to this topic

#1 bvillersjr

bvillersjr

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 24 December 2015 - 08:48

Hello,

I am looking for some basic documentation that will help me to achieve the following tasks:

-Add fields to an existing entity
-Add new related entities

-Modify existing UI to show new entity field
-Modify existing UI with new form/page to edit a new added entity

My ultimate goal is to add a related bill of materials to a product and properly manage the purchasing process.

#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3821 posts

Posted 24 December 2015 - 13:27

I cannot provide documentation but some linked code examples.
The easiest way to store third party data in the database is to use the SyncMappingService and its SyncMapping Entity.
It's less work than creating own entities because you do not have to care about database related things like migration.
 
Example for UI integration is the Google Merchant Center plugin. It adds a GMC tab through a TabStripCreated event
to the product edit page and stores the data through a ModelBoundEvent into the database. By the way, the plugin uses
the old way of data storing by setting up an own GoogleProductRecord entity and data migration.
 
Another example is the DevTools plugin. It provides a new stand-alone backend page named BackendExtension
through the DevToolsController and add a link to the admin menu (commented out code).

  • bvillersjr likes this

Marcus Gesing

Smartstore AG



Also tagged with one or more of these keywords: Extending, Entity, field