CSS Styling with Bold Bundles (Coding Styling Options)

Bold Bundles has some optional customizations that can either expand the app's functionality further or help optimize the display of the app on the storefront. All of the customizations are applied within a theme's liquid code.

 Pro-Tip

Making adjustments to Bold Bundles does require knowledge of CSS. If you are not comfortable with adding liquid code into your theme, one of our partners could complete this as a paid customization on your store. Please visit HeyCarson via this form.

Please select a customization below to learn what the customization does and how to apply the customization to your theme.

 


 

Bold Bundles offers an in-app input box that allows you to apply your own custom CSS styling to the Bold Bundles widget.

The CSS input box can be found within Bold Bundles under Settings Display at the bottom of the page:

Screen_Shot_2021-04-14_at_1.02.56_PM.png

A list of some common classes that are used for the Bundle widget can be found below:

.bold-bundles-widget basic-bundle 
.bold-bundles-widget-header
.bold-bundles-widget-header__title
.bold-bundles-widget__items
.bold-bundles-widget__footer

On some smaller devices, the Bundles widget may not scale properly, appear squished or perhaps appear too large for some users.

To fix the mobile view of the bundle widget, please follow these steps:

  1. From the Bundles admin homepage, select Settings, then Display.
  2. Enter the Bold Bundles Mobile Styling CSS Code in the Custom CSS field.

    Custom CSS

  3. Select Save.

Bundles allows you to create a Shopify page to display all of your bundle deals. This allows all of your active bundles to appear on one page and have the bundle collection page appear in your store's navigation bar. This is a great way to allow your customers to easily see all of the bundle promotions that are active on your store.

The bundle collection page works with all plans and all discount methods available in Bundles.

A bundle widget for each active bundle will appear on the bundle collection page.

 Example

Bundle Collection Exmaple

Please visit Bold Bundles Demo Store to see a live example of a bundle collection page.

 


 

Setup

  1. From Shopify's admin, select Online Store, then Actions > Edit code next to the theme you would like to apply this customization to.
  2. Under "Templates", select Add a new template.
  3. Under "Create a new template for", select collection.

    Template Type

  4. Enter bundles as the name of the template.

    Template Name

  5. Select Create template.
  6. Replace the contents of the file with the following code:

    Note: The styling of this file may need to be adjusted to display correctly on your site. Visit W3 Schools - CSS for more information on how to use CSS.

    {% paginate collection.products by 1000 %} {% for product in collection.products %}
    <div class="bold-bundle" data-product-id="{{ product.id }}"&gt ></div>
    {% endfor %}{% endpaginate %}
    <style>
    .bold-bundle{
    display:inherit;
    }
    .bold-bundles-widget{
    margin: 5px;
    margin-left: 20%;
    margin-right: 20%;
    }
    @media only screen and (min-width: 651px) {
    .bold-bundles-widget-item.bold-bundles-widget-item--product {
    max-width: 20% !important;
    }
    }
    .bold-bundles-widget__footer{
    display: flex;
    justify-content: center;
    }
    .bold-bundles-widget-item__info {
    text-align: center;
    }
    </style>

    Pasted Code

  7. Select Save.
  8. From Shopify's admin, select Navigation.
  9. Select Main menu.

    Note: You can select another menu if you want to add this page in a different location.

  10. Select Add menu item.

    Select Add Menu Item

  11. Enter a Name.

    Note: This is the name of the page that will display on your storefront.

  12. Copy and paste the following URL in the Link area:

    Note: You will need to change <your myshopify domain> to match your Shopify URL. Ex: website.myshopify.com/collections/all?view=bundles.

    https://<your myshopify domain>/collections/all?view=bundles

    Enter Link

  13. Select Add.
  14. Select Save menu.

This customization will hide the price of each individual product that appears below the product images within the bundle widget on your storefront:

Bundle Widget Prices

This customization only hides the prices of each product in the bundle widget. The saving amount that appears in the cart page and in the bundle widget will still appear as normal.

The setup steps below hides the bundle prices for each product on all bundle widgets on the storefront. If you have applied the "Bundle Collection" customization to your theme, the prices will be hidden on this page as well.

If you would like to have the bundle prices appear in the bundle widgets on the bundle collection page, you can add the bundle include code found in step 10 in the "Setup" instructions below to the product.liquid or product-template.liquid template file at the top of the page, rather than the theme.liquid file.

 


 

Setup

  1. From your Shopify admin, select Online Store, then select Actions > Edit code next to the theme that you would like to apply this customization to.
  2. Under Assets, select Add a new asset.
  3. Select Create a blank file.

    Create a blank file

  4. Enter the name of the Asset file.

    Note: The name used here will need to be used for the include code on step 10. In this example, the Asset file is titled "bold".

    Enter Asset File Name
  5. Select .css next to the file type dropdown.

    Select .css

  6. Under Assets, select the blank Asset file you created.

    Select the Asset File

  7. Enter the following code below into the Asset file.
    .bold-bundles-widget-item__price {
    display: none;
    }
  8. Select Save.
  9. Under Layout, select theme.liquid.
  10. Below the <head> tag, add the following code on a new line:
    {{ 'bold.css' | asset_url | stylesheet_tag }}

    Paste Code

  11. Select Save.
 Caution

This customization is only applicable when Bundles is set to the Variant Dependant Method on the Basic plan.

This customization hides the "Bundle price" text on the cart page when a bundle is added into the cart:

Hides Bundle Price on Cart Page

The "Bundle price" text is added to the hidden variants that Bundles add onto products when a product is added into an active bundle in the app. This hidden variant is used either when the bundle is added into the cart or when all of the products that make up the bundle are added into the cart individually.

 


 

Setup

If you want to remove the Bundle price at the end of product names in the Shopify cart, please follow these steps:

  1. From your Shopify admin, select Online Store, then select Actions > Edit code next to the theme that you would like to apply this customization to.
  2. Under "Templates", select cart.liquid.

    Note: If your theme contains sections, you will have to make this change under "Sections" in cart-template.liquid.

  3. Find the code that looks like this:
    <a href="{{ item.product.url }}">{{ item.title | escape }}

    Find the code

  4. Add this to the line:
    | replace: 'Bundle Item', '' | replace: '(Bundle price)', ''

    The line will look similar to this:

    <a href="{{ item.product.url }}">{{ item.title | escape | replace: 'Bundle Item', '' | replace: '(Bundle price)', ''  }}

    Paste the code

  5. Select Save.

    Note: This will only hide the words from the Shopify cart page. Once the customer proceeds to the Shopify checkout page, the full product title is displayed. We do not have access to Shopify's secure checkout system.

You can adjust the bundle widget location on the product page by moving the bundle include in your theme liquid code.

The steps on changing the bundle widget location depends on the discount method you are using with Bold Bundles on your store.

 Pro-Tip

If you are not sure which discount method you are currently using, please visit Discounting Methods & How-to Switch Methods in Bold Bundles for help with determining your discount method.

Note: If you are not comfortable with adjusting liquid code in your theme, please reach out to our Merchant Success team for further assistance with moving the bundle widget for you.

For more information on changing the bundle location for each discount method, please see the steps below:

 


 

V1 & V2 (Variant Dependant & Draft Order) Steps

Within the theme files, complete the following steps.

  1. Under "Templates", select product.liquid.

    Note: If your theme contains sections, you may have to make these changes in product-template.liquid under "Sections".

  2. Find the following code in the liquid file and move the liquid code up or down the file:

    {% unless bundle_loaded == 'true' %}
    {% include 'shappify-bdl-load-bundle' %}
    {% assign bundle_loaded = 'true' %}
    {% endunless %}

    Note: This code cannot be moved within the form tags. We recommend adding it either after the </form> tag or just before the code that outputs the related products. If you can't find the </form> tag in the product.liquid file, check the snippets folder for a product-form.liquid or short-form.liquid file and look for the code in there.

  3. Select Save.

 


 

V3 (Accelerated Draft Order) Steps

Within the theme files, complete the following steps.

  1. Under "Templates", select product.liquid.

    Note: If your theme is using "Sections", the contents for this file may be within product-template.liquid.

  2. Find the following code in the liquid file and move the liquid code up or down the file:

    {%- render 'shappify-bdl-load-bundle' -%}

    Note: Generally, most store owners will place just below your product page's </form> tag.

  3. Select Save.
Was this article helpful?
0 out of 0 found this helpful