Shopping basket: Multiply by quantity selected

Are you building a shopping basket and you’d like your clients to be able to select from different products and quantities?

Our Calculator is equipped with Multiply and Divide to help make life easier.

Jump to section:

Multiply by quantity selected: single choice

See it at work here:

How do I build it?

  1. Add a Picture choice question that lists your items, each with a predefined price: 
  2. Add Calculator to this question and use the +Add operator to assign the price of each product.  Make sure to set the variable to Price (not Score)!
    Multiply - Step 2
  3. Add a follow-up question confirming the quantity. You can use Piping to display the chosen product: 
  4. Now add Calculator to this follow-up question. Set it so for each quantity chosen, the Price variable is multiplied by the correct value, just like in this screenshot:
  5. Multiply - Step 4
  6. Make sure you set the Price variable to 0 (zero) on the Payment fieldMultiply - Step 5

And that’s it!

Multiply by quantity selected: multiple choice

See it at work here:

How do I build it?

  1. Add a Picture choice question that lists your items, with a predefined price: 
  2. Make sure you switch the Multiple selections button ON under Settings:
  3. shopping-basket-multiple-selection-02
  4. Add a Multiple choice follow-up question for each product, asking to confirm the quantity: shopping-basket-multiple-selection-03
  5. Now add Calculator to the first follow-up question “You’ve chosen Japan. How many tickets do you want?”. Set it so for each quantity chosen, the correct amount is added to the Price variable, just like in the screenshot below. Make sure to set the variable to Price (not Score)!  shopping-basket-multiple-selection-04
  6. Now repeat the previous step three times and add Calculator the same way to the rest of the follow-up questions:
    1. “You’ve chosen Brazil. How many tickets do you want?”
    2. “You’ve chosen Russia. How many tickets do you want?”
    3. “You’ve chosen India. How many tickets do you want?”
  7. Make sure you set the Price variable to 0 (zero) on the Payment fieldshopping-basket-multiple-selection-05
  8. The last step is to set up Logic Jumpsshopping-basket-multiple-selection-06
    1. Add Logic Jump to the first product selection question, and send the respondent to the relevant follow-up question.
    2. Then add further Logic Jumps to each follow-up question, so your typeform only shows questions for the destinations selected by respondents. Find out how in this article: Logic Jump: Single-branching vs. Multi-branching.
Was this article helpful?
Thanks!