All Collections
Smart Cart
Advanced Settings
Customizations
How To Use A Custom Template With Smart Cart
How To Use A Custom Template With Smart Cart

Take the smart cart further with it's template!

Strauss Van Wagenen avatar
Written by Strauss Van Wagenen
Updated this week

OVERVIEW

This document will outline some basic information on custom templates. For up to date information on our custom templates, please visit out developer hub. Custom templates are updated from time to time, so if you encounter odd behavior, please check back to see when the latest update to the template was.

This template has been made available for developers to use in order to push the default layouts/ styles of the Smart Cart. If you do not have a developer, but would like some custom work done, you can speak with our partner team who can help connect you with the right partner for your request.

Our support services cover all aspects directly linked to Rebuy, providing assistance and guidance for standard features and functionalities. Please note that we do not offer support for third-party plugins or customizations like custom templates as outlined in this document. For a comprehensive list of supported items, please refer to our policy page. Please be mindful of this when proceeding.


CREATE SNIPPET

Inside your Shopify Admin go to the Online Store Tab then from there navigate to > Actions > Edit Code on whichever theme you are wanting to use the custom template on

Once inside scroll down to the Snippets section in the left hand menu and click "Add a new snippet" name the snippet "smart-cart-template".

Pay close attention to the spelling here!

ADD CUSTOM TEMPLATE TO SNIPPET

ADD SNIPPET TO THEME.LIQUID

Paste the following code at the bottom of your theme.liquid file above the closing body tag.

{% render 'smart-cart-template' %}

Done! You now have a custom template set up with your Smart Cart.

Did this answer your question?