Brooklyn Theme Install (premium)

This article explains how to properly install Product Customizer (premium tier) into a shop using the Brooklyn theme. In order to properly change the way option pricing is shown to customers, several modifications to different templates are necessary.

Before you begin your installation, please ensure you've disabled the "drawer" style cart in this theme. Go to "Customize theme", then under "Cart Page", change "Cart type" to "Page". The drawer cart is incompatible with option pricing.

In your Shopify Admin, click "Themes", and click on the "..." menu for your theme. You can then click Edit HTML / CSS. This will let you edit your theme and add these snippets.

We have some code samples to guide you below. Please note the following:

  • Lines highlighted in red / beginning with a "-" symbol show you what to remove (if needed).
  • Lines highlighted in green / beginning with a "+" symbol show you what to add.
  • DO NOT include "+" or "-" signs if you copy / paste this code into your theme.

If you experience any difficulties with the installation of the app, please contact us and we'll be happy to assist!

Product.liquid

To edit the product page template, go to the "Templates" folder, and click the Templates > product.liquid file in your theme. In this file, you'll add a code snippet at the very top, and one in your "add-to-cart" form.

At the very top of the product.liquid file, add few lines of code to hide the "item customizations" hidden product content if access directly. Add these 4 lines of code to the top of this file:

{% if product.type  == 'SHOPSTORM_HIDDEN_PRODUCT' %}
	Product is not available
	{% break %}
{% endif %}

Now add this one-line snippet in your add to cart form:

{% include 'product-customizer' %}

Click to jump right to the location to view the best place to insert this snippet:


Cart.liquid

To find your cart template, go to the "Templates" folder in your theme. Click on Templates > cart.liquid to edit this file. We'll need to make several modifications to the cart template to support displaying options along with modifying price display.

Click to jump right to the location where these changes begin:


Collection.liquid

The collection template in the Brooklyn theme is in a unique place. To find your "Collection" template, go to the "Snippets" folder in your theme. Click on Snippets > collection-template.liquid to edit this file. We'll a few tweaks to hide our "item customizations" product from the product count and results, along with the SHOPSTORM_HIDDEN_PRODUCT tag from your collection filtering. We'll add this line:

{% if product.type == 'SHOPSTORM_HIDDEN_PRODUCT' %}{% continue %}{% endif %}

right after a line that looks like this:

{% for product in collection.products %}

Click to jump right to the location to view the best place to insert this snippet:


To find your "search" template, go to the "Templates" folder in your theme. Click on Templates > search.liquid to edit this file. We'll add one line to hide our "item customizations" product from the product count and results. We'll add this line:

{% if item.type == 'SHOPSTORM_HIDDEN_PRODUCT' %}{% continue %}{% endif %}

right after a line that looks like this:

{% for item in search.results %}

Click to jump right to the location to view the best place to insert this snippet:


shopstorm-apps.scss.liquid

To find the app's stylesheet, go to the "Assets" folder in your theme. Click on Assets > shopstorm-apps.scss.liquid to edit this file. We'll add some CSS here, so scroll to the very bottom of the file, and add this CSS on a new line (this will help our options blend in better with your theme):

.product-customizer-options {
    div {
        margin-bottom: 1em; 
    }

    label {
        display: block;
        margin-bottom: 10px;
        cursor: default;
        font-style: normal; 
    }

     input, textarea, select {
        font-family: "Montserrat","HelveticaNeue","Helvetica Neue",sans-serif;
        font-weight: 400;
        min-width: 175px;
        max-width: 70%;
        margin: 3px auto;
        letter-spacing: 0.1em;
        display: block;
        line-height: 1em;
        padding: 9px 11px;
        font-size: 0.8125em;
        font-style: normal;
        background-color: #fff;
        border: 1px solid #1c1d1d;
    }
}

Customers/order.liquid (Optional)

This section is only necessary if you allow customers to create accounts on your site, and want them to be able to view pricing changes with the item ordered as they would on the cart page.

To find your customer order template, go to the "Templates" folder in your theme. Click on Templates > customers/order.liquid to edit this file. We'll need to make several modifications to this template to support displaying options with the modified price display.

Click to jump right to the location where these changes begin:

Still need help? Contact Us Contact Us