Drecca Posted March 21, 2016 Share Posted March 21, 2016 Following up on a previous question, I've hit a roadblock I'm building an order form on the website itself, and the current URL for all types of service looks a bit like this : https://demo.whmcs.com/cart.php?a=add&pid=1&configoption[11]=1&configoption[12]=0&configoption[13]=42&domainoption=owndomain&sld=google&tld=org&skipconfig=1 Works great, when adding just 1 service and its configurable options. The problem I have is that there is an extra service I want to offer, but the way it's offered, it can't be done via addons or config options, has to be a separate product category. So how would I have a customer enter their cart with 2 products in there, instead of just one? https://demo.whmcs.com/cart.php?a=add&pid=1&configoption[11]=1&configoption[12]=0&configoption[13]=42&domainoption=owndomain&sld=google&tld=org&pid=30&skipconfig=1 doesn't seem to do that Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 21, 2016 Share Posted March 21, 2016 my initial thought was that it can't be done... and I still don't think that you can add more than one product in a URL link and you might need to go down the road of using the API instead of links... however, a light bulb appeared above my head and my second thought might be viable... have you considered using a product bundle for this? that would allow you to add multiple products to the cart with just one link. http://docs.whmcs.com/Product_Bundles that said, I can't recall trying to pass config option links in a bundle link before - I mean logically it should work, but often you need to abandon logic when using WHMCS! anyway, have a go with product bundles and see if that's a workable solution... 0 Quote Link to comment Share on other sites More sharing options...
bogdan Posted March 24, 2016 Share Posted March 24, 2016 So, is it any way to send two products in the cart with one link? Or any tweak on this? 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted March 28, 2016 Share Posted March 28, 2016 So, is it any way to send two products in the cart with one link? No, it's not possible (and bundles isn't an answer either) 0 Quote Link to comment Share on other sites More sharing options...
jagathks Posted March 30, 2016 Share Posted March 30, 2016 I think this can be done with product bundle if i am not wrong, Product bundles allow you to: Generate shortcut links to add a product to the cart with preconfigured selections & values Generate order links that involve adding more than one product to the cart Create incentives where if a user buys 2 or more items, and with specific configurations, they get a discount 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.