Jump to content

Adding 2 products / Services with 1 link


Drecca

Recommended Posts

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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated