Jump to content
Sign in to follow this  
qwertyly

How to config input value at Email template

Recommended Posts

Hi everyone I'm deverloper I'm finding a question about how to config email template at file settings.json  

{
  "product_key": "",
  "name": "leo_email_concac",
  "version": "1.0",
  "author": "Leo Theme",
  "inputs": [
    {
      "type": "text",
      "name": "var_name",
      "default": "foo",
      "required": false,
      "label": {
        "en": "English label",
        "fr": "French label"
      },
      "desc": {
        "en": "English description",
        "fr": "French description"
      }
    },
    {
      "type": "text",
      "name": "var_name_lang",
      "default": {
        "en": "My custom text",
        "fr": "Mon texte personnalisé"
      },
      "required": false,
      "lang": true,
      "label": {
        "en": "English label",
        "fr": "French label"
      },
      "desc": {
        "en": "English description",
        "fr": "French description"
      }
    }
  ]
}

It only have example for text input. I don't know how to config radio input (maybe swich), checkbox, color picker...

Document for email templase too hard to find, I has read this document but no things i looking for.

https://github.com/PrestaShop/email-templates-sdk

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More