Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2272678
Can you use the query string to prefill item quantities?
Closed

Comments

  • Brice Hughes started the conversation

    We use the premium version of WPC Product Bundles. Is it possible to prefill the quantities of the items within a bundle to a custom value by using the query string or some other method?

    We would like to write a "custom package builder" form that would ask customers a series of questions and then suggest a bundle based on their answers with the appropriate item quantities already filled in.

    Is there any documentation available?

  •  767
    Janilyn replied

    Hi, 

    We’ve received your ticket and assigned one of our developers to help you with that. He’ll be looking into your request and responding as soon as finding a solution. Please stay in touch as he might need you to provide further information.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,226
    Dustin replied

    Hi Brice,

    Currently, our plugin hasn't this feature. 

    You can use the combination of PHP and JS code to do that.

    1. Send the data with the GET method, e.g: your-site.com/product-bundles?suggest_qty=1,5,3
    2. Get the data in "suggest_qty" then use the JS code to fill to corresponding fields

    Best regards,
    Dustin