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.
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.
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
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?
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
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