Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add settings to allow further customization #253

Open
5 of 21 tasks
malessani opened this issue May 23, 2022 · 1 comment
Open
5 of 21 tasks

Add settings to allow further customization #253

malessani opened this issue May 23, 2022 · 1 comment
Assignees
Labels
feature 🚀 New feature or request

Comments

@malessani
Copy link
Contributor

malessani commented May 23, 2022

Description

This Feature will allow to set or override settings received from order and organization endpoint to allow an improved level of customization. Configuration can also be linked to a market.

  • Add custom thankyou page URL
  • Set email and phone support, logo, favicon, primary color, GTM id
  • Privacy and terms url
  • Override order language
  • Set list of billing and shipping countries / states
  • Preselect default country
  • Enable/disable state/province selector for countries without states
  • State field optional
  • Guest checkout for order with subscription (alert for customer)
  • Set automatically save customer payment source for order with subscription
  • Override label translations (passing keys or path to files) (only checkout dev)
  • Enable/Disable payment methods based on custom rules (needs components support)
  • Sort payment methods on the payment step
  • Enable/Disable login
  • Switch columns between summary and form
  • Enable/Disable unit price on the order summary
  • Enhanced configuration for GTM (client and server side)
  • MFE URLs for forked applications
  • Add external validation config to avoid placing orders
  • Add copy and custom text in the thank you page Redirect to thank you page
  • Add metadata to order

Each item needs to be assessed in terms of benefits/feasibility.

@malessani malessani added the feature 🚀 New feature or request label May 23, 2022
@malessani malessani self-assigned this May 23, 2022
@malessani malessani changed the title Add config token to allow further customization Add settings to allow further customization Oct 19, 2023
@clgiovannelli
Copy link
Member

Something like this @malessani @mscardellato ?

{
  "checkout": {
    "support": {
      "email": true,
      "phone": true
    },
    "branding": {
      "logo": "path/to/logo.png",
      "favicon": "path/to/favicon.ico",
      "primaryColor": "#hexcolor"
    },
    "tracking": {
      "gtmId": "GTM-XXXXXX"
    },
    "legal": {
      "privacyUrl": "https://example.com/privacy",
      "termsUrl": "https://example.com/terms"
    },
    "orderSettings": {
      "overrideLanguage": "language_code",
      "billingCountries": [
        "US",
        "GB",
        "FR"
      ],
      "shippingCountries": [
        "US",
        "GB",
        "FR"
      ],
      "defaultCountry": "US",
      "guestCheckoutForSubscription": {
        "enabled": true,
        "alertCustomer": true
      },
      "savePaymentSourceForSubscription": true
    },
    "translation": {
      "overrideLabelTranslations": {
        "filesPath": "path/to/translation/files"
      }
    },
    "payment": {
      "enableCustomPaymentRules": true,
      "enabledMethods": [
        "credit_card",
        "paypal"
      ],
      "disabledMethods": [
        "bitcoin"
      ]
    },
    "userInterface": {
      "enableLogin": true,
      "layout": {
        "switchColumns": true
      },
      "thankYouPage": {
        "customText": "Your custom message here.",
        "redirectUrl": "https://example.com/thank-you"
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🚀 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants