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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

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