• Topic 主题 トピック Topic Topic
  • Sign in

HTML Coding Pattern for Mail Editor in SHOPLINE Admin Panel

 

The HTML coding pattern for the mail editor in the SHOPLINE admin panel refers to using HTML code to create and edit email content. This enables you to precisely manage the appearance and actions of emails to meet specific design and feature requirements.

 

In This Article

 


 

Feature Access

From your SHOPLINE admin panel, click Settings > Notifications to access the notification module.

431f4772-e275-4b6d-80a4-0aef823c0783

On the Notifications module page, click the name of any notification scenario to enter the mail editor.

784d9e2b-a1fa-4706-b8c0-fb0037e7c277

In the mail editor, click Switch to the new version in the upper right corner to go to the new version of the mail editor.

1be71291-b2db-4531-85cd-2b93b2e47cf0

In the new version of the mail editor, select any component from the left-side sidebar menu. In the lower right corner of the details page, click the Coding pattern switch to switch between the Coding pattern and Visual mode.

37aaad07-a816-40c5-8eff-1103cdd4239c


 

Feature Description

Default Visual Mode

By default, the mail editor is in Visual mode. You can directly edit the email by modifying the visual configuration of components.

6cbd392c-33c6-48e6-8ab4-e51f4e1afb12

Coding Pattern

When you click the Coding pattern button at the bottom of the component, the Coding pattern appears.

 

Once switched, you can edit the email.

  • If you click Reset, the email content changes to the system’s preset HTML code, with a prompt of “Reset Succeeded”.

    b5289657-a7cd-415d-a29f-409ea06c6846

  • If you click Zoom, a larger HTML code input box appears.
    • In this input box, you can directly enter the HTML code, then click Confirm to save the HTML and return to the mail editor page. If you click Cancel, the larger HTML code input box collapses and you return to the mail editor page.

      444c2623-c70c-437c-8f90-2a2470694899

Notes:
  • By default, the components are in Visual mode. The configurations of the two modes are independent. That is, when you modify the configurations of a component in Visual mode, it doesn’t affect the content of the component in HTML mode.
  • When you switch between the two modes, configurations remain unchanged. However, the preview and actual content take effect according to the configuration corresponding to the selected mode.

 


 

HTML Syntax Description

  • This section only explains some common built-in syntax.
  • Built-in variables
    • Component variables
      • section.setting.xxx: Value configured for the control.
      • section.id: Current component identifier.
      • ...

    • Other variables
      • rtlConf: RTL adaptation configuration.
      • presetData: Preset default data.
      • metafields: Requested data.
      • ...

  • Built-in helpers
Notes:
  1. Improper adjustment of variables and helpers may affect rendering.
  2. Due to email compatibility requirements, there may be some redundant special comments or properties. We recommend you don’t remove them.

 

Have more questions? Submit a request

Comments