[Solved] Display a Collection on Cart Page

Highlighted
Shopify Partner
8 0 0

Ugh, this seems like it would be some easy to do, but I cannot figure it out :(.

All I want to do is display a specific collection under the items added to the cart on the cart page. A "Featured Items" but with different products than "Featured Items".

Bonus question: this is a little more technical and something that I'll tackle later, but I plan to make it so people can add these items without having to go to the products page.

The idea is to have a "Last Minute Checkout Items" that people add before they checkout.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
5704 1 318

Create a Last Minute Checkout Items collection under Collections. Add products to that collection.

From Themes > Template Editor page, copy the content of collection.liquid to the bottom of cart.liquid.

At the top of the copied code, add this:

{% assign collection = collections.last-minute-checkout-items' %}

That's the gist of it ^.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
5704 1 318

A perhaps smarter — and definitely easier — solution consists in installing this app: http://apps.shopify.com/directed-edge-product-recommender

The Directed Edge Product Recommender will feature products that make sense on your cart page, based on the cart content:

Related Products: People who bought this also bought…

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
5711 0 146

Sorry, looks like I missed your post RedKey. Caroline! Shame, you're supposed to be on vacation!

http://shopifyplus.com ::: http://twitter.com/bacchus
0 Likes
Highlighted
Shopify Staff
Shopify Staff
5704 1 318

you're supposed to be on vacation!

Back to it :-x

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
5711 0 146

So busted ;P

http://shopifyplus.com ::: http://twitter.com/bacchus
0 Likes
Highlighted
Shopify Partner
8 0 0

Caroline,

You're awesome! I went with the first option and it worked perfectly, thanks so much for the quick reply, AND doing it while on vacation!

(highfive)

Dave

0 Likes
Highlighted
Tourist
5 0 2

 

Much Appreciated


@Caroline_Schnap wrote:

Create a Last Minute Checkout Items collection under Collections. Add products to that collection.

From Themes > Template Editor page, copy the content of collection.liquid to the bottom of cart.liquid.

At the top of the copied code, add this:

{% assign collection = collections.last-minute-checkout-items' %}

That's the gist of it ^.


Hi there,

 

Thanks for the previous suggestion. I am using Brooklyn and am struggling to get this method working.

I have tried copying the code from collection.liquid (although there is not much there) and collection-template.liquid but had no luck.

 

Any ideas how I would get this working with Brooklyn?

0 Likes
Highlighted
Tourist
3 0 2

I am following these instructions and nothing is showing up. I have the collection created and the following code on my cart.liquid page: 

 

<div id="sca_fg_cart">
{% section 'template-cart' %}
{% assign collection = collections.last-minute-checkout-items' %}
{% section 'template-collection' %}
</div>

 

Nothing is rendering on the website. When I inspect element I can see the <div> but nothing is coming through as far as a collection goes.

 

Any thoughts?

 

Thanks!

0 Likes
Highlighted
Shopify Partner
1777 211 370

@cpgarrett10 what theme are you using? You can try replacing:

{% section 'template-collection' %}

with

{% include 'template-collection' %}

and you should be good.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes