Bubble workload units

Hi Bubblers,
I used bubble as I have always enjoyed copy and pasting codes but never had time to learn code.
Bubble was the great joy for me when I found it. As I can do my hobby in programming without code. Although, I have tough myself bubble logic and workflow by trial and error. It has been a great joy everytime I discover something myself and it felt like invention.
Now, it’s not at all.
With the new pricing system and workload units.
All my ambition ans plans on bubbles is coming to an end, specially that I am relying so much on workflows that ( Do search for). I also have a Cart page where customers can add multi-buy offers to products when they reach certain quantities their price reduce. And that requires (do every 1 second)
What can I do?
Is (Do when condition is true) can be less load than ( do every 1 second? )
Please, if anyone has experience shares it.
Thank you

Do every 1 second is not inherently bad if you are doing some front-end animation loop or something purely client-side.

Please don’t tell me you are using that to poll for data or do some database operation.

YES Do when condition is true would be better

1 Like

Well. My app is a Saas app, I am allowing my clients to have two ( multi buy offers) . So,
Offer 1 ( when qty => 5… New price = £4)
Offer 2 ( when qty =>3… new price =£5)

In the cart page the customers of this clients can have items in this cart with a quantity that qualify for the discount, but then if they reduced the quantity the price will get changed to the original price and vice versa, so I had to do a workflow like this …
[Do every 1 second]

  1. Change the list of carts price
    Price= Offer 1 new price
    ( only when , do search for cart products that included in Offer one qty:sum => Offer qty )
  2. Change the list of carts price
    Price= original price
    ( only when , do search for cart products that included in Offer one qty:sum < Offer qty )
  3. Same as 1 but for Offer 2
  4. Same as 2 but for Offer 2

And my app is not happy :confused:

You didn’t

For example have a conditional if quantity > X, price = cart’s items:each item’s price:sum * (decimal for your percentage discount)

When checkout button is clicked, calculate the same thing to pass the price to whatever payment gateway you’re using

1 Like

The catch is that the client have a shop, each shop has two offers and a product list field that they can add products to each offer to be qualified for the offer.
The multi buy offers are not the same as promotion codes with percentage discount. It decrease the price of each item when u buy more than certain amount.
Main problem is in the cart page the customers sometimes will change the quantity of their items back and forth.
I hope u know what I mean.
Thanks

But if you can calculate the offer every 1 second, then it is also possible to calculate it dynamically and display the data dynamically. Or use ‘trigger when data changes’

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.