Inhalte aufrufen

Profilbild

Add Message Template and new Model From Plugin

Message Template Liquid Model

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

#1 Sherif Ahmed

Sherif Ahmed

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 35 Beiträge

Geschrieben: 27 November 2018 - 09:18

Hi,
 
What is the proper way to add a Template Model (Plugin Entity) to the Liquid template in the preview mode (Test Mode) and in the normal one?
 
I Consumed 

MessageModelPartMappingEvent

so when I try to send the message from my logic the system can not find the new defined model so I handled it in my consumer,

but in the preview mode the event is not fired.

 

Is there any other way to handle it. and if there is any sample code for this part as a starting point ... that will be great.

 

Appreciated,

Keep up good work


Sherif Ahmed

Software Engineer

Egypt


#2 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 28 November 2018 - 18:28

You should post some code, it's hard for me to guess why the event is not published without any code. The system makes no distinction between live and preview mode, the event is also published in preview mode.


Murat Cakir
SmartStore AG