Signup

Disable PayPal Express when pickup is selected

You can easily disable express checkout methods like PayPal Express and Apple Pay on the cart page by adding the following code to your storepickup-addons.liquid file within your theme.

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function() {  
  window.ZapietEvent.listen('selected_method', function(method) {
    if (method == "pickup") {      
      $('.additional-checkout-buttons').hide();
    } else {
      $('.additional-checkout-buttons').show();
    }
  });
});
</script>
S
Sandy 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.