{
  "name": "App - ope. com.",
  "settings": [
    {
        "type": "checkbox",
        "id": "enable_custom_discount",
        "label": "Enable",
        "default": true
    },
    {
      "type": "select",
      "id": "vp_script_type",
      "options": [
        {
          "value": "modern",
          "label": "Modern"
        },
        {
          "value": "legacy",
          "label": "Legacy"
        },
        {
          "value": "standalone",
          "label": "Standalone"
        }
      ],
      "label": "Script Type",
      "default": "modern"
    },
    {
      "type": "text",
      "id": "vp_version",
      "label": "App version",
      "default": "0.0.0"
    },
    {
      "type": "checkbox",
      "id": "test_in_local",
      "label": "test in local",
      "default": false
    },
    {
      "type": "text",
      "id": "localhost",
      "label": "localhost",
      "default": "http://localhost:1234/modern.js"
    },
    {
      "type": "header",
      "content": "Test mode"
    },
    {
      "type": "checkbox",
      "id": "test_mode",
      "label": "Enable test mode across all the website (for VP, coupons and fidelity)",
      "default": false
    },
    {
      "type": "header",
      "content": "Checkout extensibility"
    },
    {
      "type": "checkbox",
      "id": "enable_aki_functions",
      "label": "Activate Extensibility Mode",
      "info": "Warning: Functions has to be deployed by IT or orders will be blocked",
      "default": false
    },
    {
      "type": "text",
      "id": "aki_cart_update_event",
      "label": "Cart udpate event",
      "info": "You may specify an existing event that triggers a cart re-rendering process"
    },
    {
      "type": "paragraph",
      "content": "AKI module emits this event to notify a theme that the current cart content is no longer valid and re-rendering is required."
    },
    {
      "type": "header",
      "content": "Absolute discounts"
    },
    {
      "type": "text",
      "id": "sales_absolute_discounts_tag",
      "label": "Product tag",
      "info": "Products tagged with this will show rounded absolute discounts rather than percentages",
      "default": "MONTANTFIXE"
    },
    {
      "type": "header",
      "content": "Coupons"
    },
    {
      "type": "checkbox",
      "id": "sales_enable_coupons",
      "label": "Enable coupons",
      "info": "Will show a coupon form on cart page",
      "default": false
    },
    {
      "type": "header",
      "content": "Fidelity coupons"
    },
    {
      "type": "checkbox",
      "id": "sales_enable_fidelity_coupons",
      "label": "Enable fidelity coupons",
      "info": "Will show a fidelity coupon form on cart page",
      "default": false
    },
    {
      "type": "header",
      "content": "Activation timer"
    },
    {
      "type": "text",
      "id": "sales_start",
      "label": "Date de début d'affichage",
      "info": "IMPORTANT à entrer au format yyyy-mm-jj, suivi d'un espace et de l'heure au format 14:00. Par ex: 2020-08-25 08:00",
      "placeholder": "2021-08-25 08:00"
    },
    {
      "type": "text",
      "id": "sales_end",
      "label": "Date de fin d'affichage",
      "info": "IMPORTANT à entrer au format yyyy-mm-jj, suivi d'un espace et de l'heure au format 14:00. Par ex: 2020-08-25 22:00",
      "placeholder": "2023-08-30 22:00"
    },
    {
      "type": "select",
      "id": "sales_gmt",
      "options": [
        {
          "value": "+01:00",
          "label": "Summer time (GMT + 1)"
        },
        {
          "value": "+02:00",
          "label": "Winter time (GMT + 2)"
        }
      ],
      "label": "GMT",
      "default": "+01:00"
    }, 
    {
      "type": "header",
      "content": "API URL"
    },
    {
      "type": "text",
      "id": "ps_api_url",
      "label": "Private sales API URL",
      "info": "If you don't have it, please ask The Oz",
      "placeholder": "https://shopify-price.the-oz.com/api/theoz/vp/",
      "default": "https://shopify-price.the-oz.com/api/theoz/vp/"
    },
    {
      "type": "header",
      "content": "Redirection"
    },
    {
      "type": "url",
      "id": "redirect_link",
      "label": "Once signed-in/registered, redirect user to:",
      "info": "Please enter the URL of a collection page."
    },
    {
      "type": "header",
      "content": "Title"
    },
    {
      "type": "text",
      "id": "lr_heading",
      "label": "Heading",
      "default": "Avant-première party days!"
    },
    {
      "type": "font_picker",
      "id": "lr_heading_font",
      "label": "Text font",
      "default": "poppins_n7"
    },
    {
      "type": "color",
      "id": "lr_heading_color",
      "label": "Text",
      "default": "#FFF"
    },
    {
      "type": "range",
      "id": "lr_heading_font_size",
      "label": "Text size",
      "default": 120,
      "min": 80,
      "max": 400,
      "step": 5,
      "unit": "%"
    },
    {
      "type": "range",
      "id": "lr_heading_top_padding",
      "label": "Top spacing",
      "min": 0,
      "max": 50,
      "default": 10,
      "unit": "px"
    },
    {
      "type": "range",
      "id": "lr_heading_bottom_padding",
      "label": "Bottom spacing",
      "min": 0,
      "max": 50,
      "default": 10,
      "unit": "px"
    },
    {
      "type": "header",
      "content": "Description"
    },
    {
      "type": "richtext",
      "id": "lr_desc",
      "label": "Heading",
      "default": "<p>Avant-première party days!</p>"
    },
    {
      "type": "font_picker",
      "id": "lr_desc_font",
      "label": "Text font",
      "default": "poppins_n7"
    },
    {
      "type": "color",
      "id": "lr_desc_color",
      "label": "Text",
      "default": "#FFF"
    },
    {
      "type": "range",
      "id": "lr_desc_font_size",
      "label": "Text size",
      "default": 120,
      "min": 80,
      "max": 400,
      "step": 5,
      "unit": "%"
    },
    {
      "type": "range",
      "id": "lr_desc_top_padding",
      "label": "Top spacing",
      "min": 0,
      "max": 50,
      "default": 10,
      "unit": "px"
    },
    {
      "type": "range",
      "id": "lr_desc_bottom_padding",
      "label": "Bottom spacing",
      "min": 0,
      "max": 50,
      "default": 10,
      "unit": "px"
    },
    {
      "type": "header",
      "content": "Design"
    },
    {
      "type": "color",
      "id": "lr_bg_color",
      "label": "Background color",
      "default": "#f2f2f2"
    },
    {
      "type": "image_picker",
      "id": "lr_image",
      "label": "Background image",
      "info": "If an image is selected, the background colour won't be displayed."
    }
  ]
}
