Learn Bubble with 500+ tutorials, courses & AI Assistant ✨

Limited time launch offer get $80 off today

0 days 0 hours 0 minutes 0 seconds
SAVE $80 NOW
Planet No Code logo
Bubble.io CoachingFounder MentoringSponsorships
LoginLearn Bubble.io

How to build a comparison table for an ecommerce app

In this Bubble tutorial we demonstrate how to create a comparison table in Bubble. This nocode tutorial will show you how to add checkboxes to a repeating group list of products and send 2 selected products to a new page.

Join now $19/monthLearn more
Get 500+ tutorials, a No-Code AI Assistant, 4 premium courses, and everything you need to build faster!
How to build a comparison table for an ecommerce app
Explore these topics...
Database
Custom States
Workflow
Go to page
Design
Icons
Minus item
Plus item
Set state
Repeating Group
Checkbox

With just this tutorial learn...

Unlock the power of custom states: Learn how to send multiple products to a new page in Bubble's no-code platform!

Master e-commerce comparison tables: Discover the secret to creating dynamic product comparisons using repeating groups and custom states.

Transform your Bubble skills: From custom states to URL data retrieval, learn essential techniques for building advanced no-code applications.

With membership you'll...

Learn how to build a ChatGPT Clone, Custom CRM for your business & SaaS Marketing website with Webflow & AI.

Unlock 500+ Bubble tutorial videos with AI powered Q&A.

Debug your Bubble app instantly with our custom trained No Code AI Assistant.

Join now $19/month
Risk-free! 14-day money-back guarantee. Cancel anytime.

Introduction to Custom States in Bubble

Here's how to send more than one item in your database through to a new page. Before we get started, are you a Planet No Code member? Have you checked out our website? We have even more exclusive Bubble tutorial videos on our website planetnocode.com. And if you're a friend of this channel, have you liked and subscribed to this video? That really helps us with the old YouTube algorithm. But let's dive into this.

Setting Up the Repeating Group

I have a repeating group of products. Let me show it to you. And I want to send through the iPhone 14 and the iPhone XS through to another page and then be able to retrieve that data that I've sent through to it. So to do that, I need to use a custom state. A custom state is a great way of temporarily storing data. And so I need to be able to temporarily store which of the products in my repeating group I've selected to link through to the new page.

Creating a Custom State

So I'm going to create a custom state on my page. It doesn't matter where you create a custom state. Just do it somewhere logical. You're not going to forget about it. I tend to create them on the page level because then I know where they are. So I call this selected products and it's going to be a type product. And then I'm going to say when this icon, which I'm using as a checkbox, is clicked, I'm going to set state of my page, selected products.

Setting Up the Workflow

And with custom states, you have to refer to the existing group and then plus or minus to add or subtract an item from it. So I need to refer to my page again. Product list, selected products, plus... Ah! I need to make my custom state a list. There. So then if I go back into workflow, I can say selected products plus an item, current cell's product.

Adding Conditions to the Workflow

I like color coding here because there are two workflows I need to really run this well, which is to add a checkmark in, add a product and remove a product. And so on the add workflow, I need to add a condition to only run when product list, selected products does not contain current cell's product. I'm going to copy and paste it, change this one to red and say when it does contain minus item.

Adding Visual Feedback

And then last thing to create this temporary list is I want to give some visual feedback that is indeed the case. So I can say when product list, selected products contains current cell's product, then I'm going to change the icon to check. Let's preview that. So you can see we are updating our custom state.

Sending Data to Another Page

Now, how do I send the contents of the custom state across to another page? Well, here is just one way you could do it, which would be to say, let's add in our compare button. So I'm going to say link through or navigate to go to page and I've got a page called compare. Now, data to send would be appropriate if I was sending one element or if there was a main element and then there were like secondary and tertiary ones, but there aren't in this case. I just want to send multiple ones.

Setting Up URL Parameters

So I can say product one and then I'm going to refer to my custom state and say selected products item one, unique ID. And I'm going to say product two and I'm going to copy and paste this because it's all the same apart from item two. So let me just demo what that does. So iPhone 14, iPhone XS and then if I click compare, you can see that Bubble puts the unique ID for the iPhone 14 and then the iPhone 6S in the URL.

Retrieving Data on the New Page

And so now that it's in the URL, I can retrieve it. So I can go to my compare page and I'm going to add in a group and I'm going to say this group contains product and then I'm going to say get data from URL and I'm going to say product one and then tell it to expect a product. This is just by all being really helpful. It's going to convert the unique ID, recognize it and convert it back into a product.

Displaying the Retrieved Data

And so then I can add in an image and say current group's product image and I'll add in a text label, current group's product label. And then I'm going to copy and paste this and instead of product one, say product two. So if I go back to my product list page and then click preview, let's just do the iPhone XS and the iPhone 3GS and oldie. So I'm going to click compare and you can see that it knows which products to display because it's retrieving data from the URL.

Conclusion and Next Steps

So there you have it. That's just one way of sending multiple data entries through to a page. In this case, I'm demonstrating a simple e-commerce comparison compare product table. You can see where I could easily go from here. I could start listing the price and the description of other items. I'd put a back button in. And that's just to get you started with one way of sending two bits of data across.

Table of contents

Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Your No-Code Journey Starts Here

The best way to learn Bubble.io?

Build No Code Confidently

No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.

Find every solution in one place

No more searching across platforms for tutorials. Our bundle has everything you need, with 500+ videos covering every feature and technique.

Dive deep into every detail

Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.

Monthly
Yearly
Member
Accelerate your Bubble app to launch
$99 / month
$19/month/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now
Member
Accelerate your Bubble app to launch
$990 / year
$149/year/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now

Frequently Asked Questions

Find answers to common questions about our courses, tutorials & content.

Do I need any coding experience?

No. Our Beginner Essentials course and AI No-Code Coach are designed for total newcomers. You’ll learn Bubble.io step by step - no coding required.

How does the AI No-Code Coach work?

Simply type your question in plain English, and our AI taps into the entire video library to recommend the exact lessons you need. It’s like having a personal instructor on demand.

How long can I access the content?

As long as you’re subscribed! With our monthly subscription, you get unlimited access to all 500+ videos, our growing course library, and the AI No-Code Coach.

What courses are included

Your subscription includes:

  • Bubble Beginner Essentials – Get up and running fast.
  • Build a ChatGPT Clone – Integrate AI into your no-code apps.
  • Build Your SaaS Website with AI – Learn to create a scalable startup site.
  • Develop a Custom CRM App in Bubble - Learn database relationships with a CRM.

Plus, new tutorials every week!

What if I get stuck on a lesson?

The AI No-Code Coach is your first stop for instant answers. If you need deeper help, you can book 1:1 Bubble coaching for expert guidance.

Do you offer a money-back guarantee?

Yes! If you don’t see real progress within 14 days, let us know, and we’ll issue a full refund—no questions asked.

Can I cancel anytime?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

What if I want more than just tutorials & courses?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

If you’re serious about building a successful SaaS startup, check out Mastery—our intensive mentorship program. Mastery goes beyond Bubble.io development and includes:

  1. 1:1 mentorship to fast-track your progress
  2. Marketing strategies tailored for no-code founders‍
  3. Product management insights to scale your startup‍
  4. Personalized support from experienced founders

‍

Still have questions?

Reach out to our dedicated team.

Contact
Services
Search Bubble TutorialsBubble.io CoursesBook Bubble.io CoachingApply for Mastery
Latest Bubble tutorials
Rerank Text By MEANING With Cohere In Bubble.io Step by Step!
Unlock RAG Providers for NO CODE AI App Development TODAY!
Better Tables with Built-in Search and Sort By in Bubble.io
Partnerships
Flusk.eu
VectorShift
Comnoco
Plumb
Toddle
Whereby
Get started with no code
AI Powered No Code AppsNo Code Web ScrapingBubble.io Plugin tutorialsBubble API Connector tutorialsStudent & Teacher DiscountBest tools for no coders
Follow us
Youtube
X
LinkedIn
Planet No Code logo
In partnership with
Queen Mary University of London Logo
© 2024 Planet No Code. All rights reserved.
Privacy PolicyTerms of ServiceCookies SettingsContact Us