Inhalte aufrufen

Profilbild

Extending SmartStore Basics

Extending Entity field

  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
1 Antwort zu diesem Thema

#1 bvillersjr

bvillersjr

    Newbie

  • Members
  • Punkt
  • 1 Beiträge

Geschrieben: 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
  • 3801 Beiträge

Geschrieben: 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 gefällt das

Marcus Gesing

Smartstore AG



Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: Extending, Entity, field