Formula: IF()
Creating a dynamic Buy button based on stock inventory.
Last updated
Creating a dynamic Buy button based on stock inventory.
Last updated
Let's say we have a stock for each product. And if a product is in stock, the button in 3DVista should say: Buy. But if the product does not have anything in stock it should say: Sold out.
Now how do we do that?
Product | Price | Stock | Button Text |
---|---|---|---|
Using the IF() formula.
Nice Water
€1
Buy
Hard Rock
€2
Sold out
Sharp Scissors
€4
Buy