Answered

How to track the amount of products chosen


Hello folks,

I’ve encountered the problem and i don’t know how to solve it.

So I have a question and 10 answers (=product). If a customer chooses 5+ products, i need to change the price of each product then. How can I do that?

I thought creating one more question where the customer chooses “How many products do you want to buy?”, and then duplicate the previous question with 10 answers and change price.. But it takes a lot of time and I don’t want to add lots of questions to my form. 


Do you have any ideas how to solve it?

icon

Best answer by john.desborough 7 June 2022, 00:08

View original

3 replies

Userlevel 7
Badge +5

Hi @ksluki Welcome to the community! I think you could use variables to do this. I’m working on a test form to see if I can find a solution for this, but in the meantime, @john.desborough might have one offhand for you. 

Userlevel 7
Badge +6

@Liz -  i don’t have a form at the moment for this one 

@ksluki but i do have an idea 

  • create two sets of variables for prices
    • one that is something like this v_prod1_lt_5, v_prod2_lt_5
    • and the other is v_prod1_gt_5, etc.. 
  • create a variable for the count of products selected
    • use logic rules to add 1 to the counter variable for each product selected 
      • if q1=a add 1 to counter 
      • if q1=b add 1 to counter
  • then use the logic rules to add the appropriate unit price to the Price variable 
    • if counter gt 5 then add v_prod1_gt_5 to price
    • if counter lte 5 then add v_prod1_lt_5 to price
    • repeat this logic for all the products in the list
  • you can use the counter value to go to a summary page that shows the items picked if counter is gt 5 with the @recall function of the appropriate products OR to one that shows the lt 5 values.. 

hope that type of thinking helps

 

des

 

Userlevel 7
Badge +5

@ksluki Did Des’s suggestions help? Let us know how it went!

Reply