Skip to main content

MyOnlineStore

Update 07-01-2022 🎊

Since 07-01-2022 the support for MyOnlineStore has been improved so that previously untranslated elements such as filters and text on the checkout are now also translated correctly. Please note that the changes below are still necessary for the proper functioning of your clone.

Incorrectly translated JSON fields

For MyOnlineStore a number of elements are translated by Clonable within JSON datasets that should remain untranslated. Because of this some of the interactive parts of your webshop will not work properly. Fortunately this is easily solved by adding the following translation exclusions so these JSON elements will no longer be translated.

Translation exclusions
json.__typename
json.articleId
json.autocomplete
json.cancelUrl
json.code
json.data
json.field_size
json.formattedPrice
json.gatewayName
json.gatewayProfileId
json.id
json.max
json.methodName
json.min
json.order_id
json.path
json.paymentMethod
json.paymentMethodName
json.paymentUrl
json.redirect
json.result
json.selectedIssue
json.selectedIssuer
json.selectedShippingType
json.submit_url
json.submitUrl
json.type
json.termsUrl
json.value
json.widget
json.widgetUrl

Untranslated init data

The checkout uses default init data that will not properly be translated by Clonable. By triggering a refresh, the text fragments are retrieved via Ajax, which are correctly translated by Clonable. This trigger is easy to build in by injecting the following javascript into the body via the clone settings:

Trigger snippet
<script>
const myTimeout = setTimeout(translateCheckout, 500);
function translateCheckout(){
if(window.location.toString().includes("checkout")){
var childBox = document.querySelectorAll('div[data-testid="shippingmethods-radio-pickup-at-store"]');
childBox[0].parentElement.parentElement.parentElement.click();}
}
</script>
Additional help

Are you still having problems with your website or webshop after these modifications? Please do not hesitate to contact us! We are happy to help you set up your clone correctly.