MyOnlineStore
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.
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:
<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>
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.