How to track the amount of products chosen | Community
Skip to main content
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?

Best answer by john.desborough

@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

 

View original

3 replies

Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • June 6, 2022

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. 


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5350 replies
  • Answer
  • June 6, 2022

@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

 


Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • June 14, 2022

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


Reply