Skip to content
Last updated

Usage


Once the installation script is in place, you can add On-site Elements to your pages. This guide shows how to use the Payment Method Display element as an example.

Add the element to your page

Each On-site Element is an HTML tag. Place it where you want the element to appear. The installation script detects the tag and renders it automatically. Let's integrate a simple element like the kustom-payment-method-display which shows a horizontal list of payment methods.

<kustom-payment-method-display locale="en-SE"></kustom-payment-method-display>

and that should be enough to see the payment methods in your store.

Kustom Portal — Elements installation script

Supported locales

All On-site Elements require a locale attribute in the 5-character language-COUNTRY format. The following locales are supported:

LocaleLanguageCountry
cs-CZCzechCzech Republic
da-DKDanishDenmark
de-CHGermanSwitzerland
de-DEGermanGermany
en-ATEnglishAustria
en-AUEnglishAustralia
en-BEEnglishBelgium
en-CAEnglishCanada
en-DEEnglishGermany
en-DKEnglishDenmark
en-FIEnglishFinland
en-FREnglishFrance
en-GBEnglishGreat Britain
en-NLEnglishNetherlands
en-NOEnglishNorway
en-SEEnglishSweden
en-USEnglishUnited States
es-ESSpanishSpain
es-USSpanishUnited States
fi-FIFinnishFinland
fr-BEFrenchBelgium
fr-CAFrenchCanada
fr-CHFrenchSwitzerland
fr-FRFrenchFrance
it-ITItalianItaly
nb-NONorwegian (Bokmål)Norway
nl-BEDutchBelgium
nl-NLDutchNetherlands
pl-PLPolishPoland
pt-PTPortuguesePortugal
sv-FISwedishFinland
sv-SESwedishSweden

If an unsupported locale is provided, the element will fall back to English.

Next steps