Jump to content

Post multiple custom variables how to?


DigItalWarrior

Recommended Posts

Hi all, I'm new here and I have started to play with WHMCS just today.

I need help for know how I can configure and post any custom variable from my website to WHMCS.

eg. /cart.php?domain1=google.it&domain2=google.com&vps=model1 etc.

 

Is possible to configure something like this?

 

Thanks in advance for your support

Link to comment
Share on other sites

Hello brian, sorry for delay and thank you for your answer.

Can you help me with a little example for configure at least two option?

How can i obtain a variables that they can read a link like this? /cart.php?domain1=google.it&vps=model1

Be patient but my native language is not english, I'm really new in WHMCS and I need little help to start.

Thank you again for your help

Link to comment
Share on other sites

Hi,

 

WHMCS will expect to get passed the information in the following way...

 

cart.php?a=add&pid=1&sld=google&tld=.com

the most important part of this that you need to identify is the "pid" - the Product ID - each product has it's own pid value which needs to be used, NOT it's name.

 

if you take a look in setup -> product/services -> product/services and choose a product and then click on the "Links" tab, it will show you the correct URLs to use to link to that product from external websites...

 

gy3Azbg.png

 

so if your "VPS Model1" product had a PID value of 45, then the link you would use is...

 

cart.php?a=add&pid=45&sld=google&tld=.it

for each product that you want to link to, you'll need to find its unique PID value and change your links to use that value.

 

hopefully that has helped, but if not, let me know and i'll try to explain further. :idea:

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