What to do with customers who move from cart view to checkout before Parcely app widget has loaded?

In some of the cases shop users will pass through Cart view before Parcely widget is loaded. Shopify is always loading all external elements. We recommend using the following script to hide the Checkout button in the cart view to restrict users to move to the next step before Parcely widget has loaded.

Place this script in the same cart template file where you placed “parcelyWidget”. Let us know if you need help with doing it. 

Remember that your Shopify template might be a little bit different and following code example might not work for you. Please consult with your developer. 

PS: you can try following examples also with other and custom themes. 

Shopify DEBUT  template example:

<script>
//added by Parcely app
setTimeout(function(){
//get all submit buttons in 0,2sec
var submitButtons = document.querySelectorAll(‘input[type=submit]’);
//Will hide all submit type buttons
submitButtons.forEach(function(button) {
button.style.display = “none”;
});
setTimeout(function(){
submitButtons.forEach(function(button) {
button.style.display = “inline-block”;
});
//wait 2000ms (2sec) and show buttons
}, 2000);
}, 200);
//added by Parcely app
</script>

Shopify BROOKLYN template example:

 <script>
//added by Parcely app
setTimeout(function(){
//get all submit buttons in 0,2sec
var submitButtons = document.querySelectorAll(‘input[type=submit], button[type=submit]’);
//Will hide all submit type buttons
submitButtons.forEach(function(button) {
button.style.display = ‘none’;
});
setTimeout(function(){
submitButtons.forEach(function(button) {
button.style.display = ‘inline-block’;
});
//wait 2000ms (2sec) and show buttons
}, 2000);
}, 200);
//added by Parcely app
</script>

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from Youtube
Vimeo
Consent to display content from Vimeo
Google Maps
Consent to display content from Google
Spotify
Consent to display content from Spotify
Sound Cloud
Consent to display content from Sound