Forum Academy Marketplace Showcase Pricing Features

Stupid newbie question I apologize in advance

Ok so I feel like I should be able to figure this out on my own but I am having trouble figuring out how to best approach this, all the forum posts and youtube videos I find seem different than what I’m trying to do.

I’ve been teaching myself bubble and have managed to begin building my site. I have built a multi-page setup to add an item to cart. My site is for ordering custom stickers. Page 1, upload image and type in name. Page 2, choose shape, color, dimensions, and paper type via dropdowns. These all modify fields under a single data type (“stickers”) that is specific to the logged in user. Then you can go to a “my stickers” page where each sticker is displayed with all the fields in a repeating group via text elements (except the image). There is an add to cart button which basically creates a cart item with all the same inputs. Then the user can go to cart which displays cart items and adds a quantities dropdown.

Where I’m stuck is I want the option chosen under the dimensions dropdown from page 2 to dictate the price. 1 x 1 is .75, 2 x 2 is 1.00, etc. Then I want to be able to multiply that by quantity and add shipping. So I guess why this is confusing me is I’m picturing drawing a text element for price and putting something like “if dimensions contains ‘1 x 1’ this cell = .75, if dimensions contains ‘2 x 2’ this cell = 1.00, etc” , then have another cell for item total that says “this cell = ‘price x quantity’”, and so on for adding shipping and a grand total for the cart. But entering and modifying numbers into cells doesn’t seem to be that straightforward or if it is I can’t figure it out.

Does this approach not work for what I’m trying to do? If not, what’s the best alternative? Feel free to point me in the direction of a tutorial or youtube video or something if you don’t want to spell it out, I just honestly can’t even figure out which rabbit hole to go down.

Thanks!

If I have understood your issue correctly, this is what you need to do:

  1. You would create an option set called “dimensions” or something similar.
  2. You would give each seperate dimension in the option set a number value which is the unique price of that specific dimension.
  3. The dynamic price text then should be “dimensions’s value”. I don’t know how your user is choosing quantity but you would then want to multiply it with said “dimension’s value”

That’s exactly what I needed! I didn’t know about option sets and attributes, but I found the bubble tutorial on youtube and got it figured out.

Thank you so much for the help and for taking the time to reply!

For anyone reading this in the future, it ended up being a little tricky figuring out how to reference the option’s attribute. I created an option set for dimensions and assigned a price attribute to each dimensions option, but I couldn’t directly set up a text field in the cart that said “current cell’s sticker’s dimension’s price” or “dimension’s value” or anything of that sort. What I had to do was create a step in the workflow of the “Add to Cart” button that modified the app data of the sticker, making “price = current cell’s sticker’s dimension’s price.” That set the correct price based on the dimensions, and from there I could reference the price in the cart as needed.

1 Like