How can I show and hide shopping cart products based on selections?

  • Profile Image
    Asked on February 09, 2017 at 11:51 AM

    Hello, I have a question regarding my form. I want to divide the shopping cart based on the first selection. If the customer chooses Black, then only black stones are for sale shown. Also, If they choose grey, only the grey stones are shown. How can I do this?


    Thank you for your time.

  • Profile Image
    Answered on February 09, 2017 at 01:18 PM

    Hi, thank you for contacting us.

    Upon examination of your form, I noticed that you already make use of the product option feature, to provide both black and gray colors.

    However, there is currently no way to exclude a set of products or options based on the selection of either a product or a form field in general, because in the conditional logic context, you cannot fine tune what product(s) you can show and hide, because you have access to the whole products field.

    The only remaining solution is to create your products outside the payment integration, using form fields, and applying the conditions you would like to have, and perform the adequate price calculations and pass the result to the payment integration.

    I hope this helps. If you have more questions or need further assistance, please let us know. Thank you.