DigItalWarrior Posted October 12, 2016 Share Posted October 12, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 12, 2016 Share Posted October 12, 2016 the usual way to pass information to the cart from an outside link is detailed in the documentation below... http://docs.whmcs.com/Linking_to_WHMCS it would be easier to pass the information in the format WHMCS is expecting, otherwise you'll need to customise a solution. 0 Quote Link to comment Share on other sites More sharing options...
DigItalWarrior Posted October 13, 2016 Author Share Posted October 13, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 14, 2016 Share Posted October 14, 2016 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... 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. 0 Quote Link to comment Share on other sites More sharing options...
DigItalWarrior Posted October 14, 2016 Author Share Posted October 14, 2016 Great, very helpful. You gave me a real big help! What about carttpl=standard_cart query? How I can use it? Thank you a lot 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 15, 2016 Share Posted October 15, 2016 just add it to the end of the URL.. cart.php?a=add&pid=45&sld=google&tld=.it&carttpl=standard_cart 0 Quote Link to comment Share on other sites More sharing options...
DigItalWarrior Posted October 15, 2016 Author Share Posted October 15, 2016 Thank you again. I'm sorry, I wanted to ask what is its function, its purpose. 0 Quote Link to comment Share on other sites More sharing options...
DigItalWarrior Posted October 15, 2016 Author Share Posted October 15, 2016 Ok, ok, now I've learned a lot of things. Thank you for your great support. 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.