Signup

Prestige setup instructions


Install instructions

Step 1 

Download a copy of the required files by clicking here.

Step 2 

Upload storepickup.js and storepickup.scss.liquid to your themes Assets folder


Step 3

Create an empty snippet file called storepickup-addons.liquid 


Step 4

Create a snippet file called storepickup.liquid and copy and paste the content from the storepickup.liquid file you downloaded in step 1.


Step 5

Open layout/theme.liquid and search for the following code:

</head>

Prepend the following to the line mentioned above:

{% include "storepickup" %}


Step 6

Open layout/theme.liquid and find the following code:

document.documentElement.dispatchEvent(new CustomEvent('cart:refresh', {
	bubbles: true
}));

Replace the code above with the following:

// document.documentElement.dispatchEvent(new CustomEvent('cart:refresh', {
//	bubbles: true
// }));


Step 7

Open assets/theme.min.js and search for the following:

{n.text().then(function(e){t._replaceContent(e)})}

Replace the line above with the following code:

{n.text().then(function(e){t._replaceContent(e),document.dispatchEvent(new CustomEvent('zapiet:start'))})}


Step8

Open assets/theme.min.js and search for the following:

else n.text().then(function(e){t._replaceContent(e)})})}}

Replace the code above with the following:

else n.text().then(function(e){t._replaceContent(e),document.dispatchEvent(new CustomEvent('zapiet:start'))})})}}


Step 9

Open sections/cart-template.liquid and find the following code:

<button type="submit" name="checkout" class="Cart__Checkout Button Button--primary Button--full">

Prepend the following code to the line above:

<div id="storePickupApp"></div>


Step 10

Open snippets/storepickup-addons.liquid and add the following code:

<script type="text/javascript">
document.addEventListener("zapiet:start", function(e) {
	if (window.Zapiet && window.ZapietCachedSettings) {
	  Zapiet.start(ZapietCachedSettings);
	}
}); 
</script>



Troubleshooting

A
Andrew is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.