If you're using your theme's header for your ZP pages which contains an ajax Cart option like a slider or drawer cart and the OCU checkout isn't initiating for your upsell tagged product from your ZP page from there, then this article applies to you! 

How to add an OCU snippet in the ZP pages template in case your customers are not redirected to the OCU checkout from your ZP page:

Note: This only applies to store owner who're using their theme's custom header for the page built within the ZP app and have added an OCU upsell tagged product to the page. 

Here are the steps:

1. Within your Shopify admin, go to Online Store > Themes > Actions > Edit Code > Templates > Find the page.custom.zipifypages.liquid template there.

2. Check that the following code hasn't already been added in this template.

 {% include 'upsellapp-theme' %} 

3. If it hasn't already been added, then add the following piece of code before </body> tag within the page.custom.zipifypages.liquid template:

{% capture zp_include_upsell %}{% include 'upsellapp-theme' %}{% endcapture %}
{% unless zp_include_upsell contains 'Liquid error: Could not find asset snippets/upsellapp-theme.liquid' %}{{ zp_include_upsell | strip }}{% endunless %}{% assign zp_include_upsell = '' %}

If it has already been added in the page.custom.zipifypages.liquid template, then replace

{% include 'upsellapp-theme' %} 

with

{% capture zp_include_upsell %}{% include 'upsellapp-theme' %}{% endcapture %}
{% unless zp_include_upsell contains 'Liquid error: Could not find asset snippets/upsellapp-theme.liquid' %}{{ zp_include_upsell | strip }}{% endunless %}{% assign zp_include_upsell = '' %}

before the </body> tag in the page.custom.zipifypages.liquid template.


4. Save the changes made to the page.custom.zipifypages.liquid template and you're done! 

Additional notes:
This will only fix the issue for elements in your theme's customer header like a floating cart icon for example, but it won't fix the issue with redirection to the OCU checkout from the ZP pages blocks themselves. For the ZP pages blocks, we recommend to direct the customer to the Cart page of your store where the OCU checkout can be initiated properly. 

Did this answer your question?