AndyW Posted October 3, 2009 Share Posted October 3, 2009 Is there a wiki page or documentation to use Direct Order Link Preset Selections ? 0 Quote Link to comment Share on other sites More sharing options...
studeggle Posted October 4, 2009 Share Posted October 4, 2009 Would be realy nice to have this info instead of just having to try hit and miss urls until we find them all 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted October 4, 2009 WHMCS CEO Share Posted October 4, 2009 You can set the billing cycle by simply appending &billingcycle=xxxx to the cart.php?a=add&pid=x links you already get from WHMCS. For example cart.php?a=add&pid=5&billingcycle=annually And the simplest way of formulating an url for direct linking when wanting to set custom fields, configurable options and/or addons is to step through as normal to the product configuration step, then right click > view source and get the field names and value IDS from there. There's already some linking info @ http://wiki.whmcs.com/Linking_to_WHMCS Matt 0 Quote Link to comment Share on other sites More sharing options...
factor Posted October 29, 2009 Share Posted October 29, 2009 Is there a way so it preselects free subdomain option? we want this for the free trial we offer. Regards, 0 Quote Link to comment Share on other sites More sharing options...
factor Posted October 29, 2009 Share Posted October 29, 2009 Ok, i got it : &domainoption=subdomain 0 Quote Link to comment Share on other sites More sharing options...
basic Posted November 4, 2009 Share Posted November 4, 2009 Hello All: I have a related question / issue: In order to set language, currency, and layout we use order links like this: https://domain.com/accounts/cart.php?systpl=default&a=add&pid=328¤cy=2&language=French ... that is, adding, for example, systpl=default for the layout, and ¤cy=2 for EURO, and &language=French for the language the customer will see. Now, my question is this -- we ONLY use the "default" layout (systpl=default) -- as this looks in my opinion far nicer than that bluish dark design you see e.g. here http://demo.whmcs.com/. Instead of adding "systpl=default" to the order links, is there a more elegant way to do this -- e.g. renaming some folders within the WHMCS install? Because many of the auto-created links within the email templates, if a customer follows them, will get the customer to the dark/blue design again, and not the one named "default". Hope my description was not too confusing. Frank 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted November 4, 2009 WHMCS Support Manager Share Posted November 4, 2009 Change the Template in Setup > General Settings to "default". 0 Quote Link to comment Share on other sites More sharing options...
basic Posted November 4, 2009 Share Posted November 4, 2009 John, no, that does NOT do it. You can try to do this and go to https://DOMAIN.com/whmcs-install/clientarea.php ...and you will still see the dark blue/black design there .... if you start over, if you have not before been at the default theme, so that your web browser chached that info. Frank 0 Quote Link to comment Share on other sites More sharing options...
Speedy059 Posted April 18, 2010 Share Posted April 18, 2010 Anyone know how to preset 'configurable options' from a link? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted April 18, 2010 WHMCS Support Manager Share Posted April 18, 2010 The simplest way of formulating a url is to step through the order process as normal to the product configuration step, then right click > view source and get the field names and value IDS. These can then be used in your direct link URLs, for example: http://demo.whmcs.com/cart.php?a=add&pid=1&configoption[X]=XX 0 Quote Link to comment Share on other sites More sharing options...
abuzzhost Posted June 20, 2010 Share Posted June 20, 2010 I'm very disappointed in this whole linking and setup system. I've done web coding for years but it would be nice to get all information for new resellers in one step. I have yet to find in over 15 hours spent on this project how to get my cart integrated within my web pages. I've seen the videos, read the tutorials...I feel ripped off. 0 Quote Link to comment Share on other sites More sharing options...
druptech Posted December 27, 2010 Share Posted December 27, 2010 can we use multiple configuration option on single link? If yes how? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 28, 2010 WHMCS Support Manager Share Posted December 28, 2010 Yes you can. 0 Quote Link to comment Share on other sites More sharing options...
jkletch Posted December 30, 2010 Share Posted December 30, 2010 You can set the billing cycle by simply appending &billingcycle=xxxx to the cart.php?a=add&pid=x links you already get from WHMCS. For example cart.php?a=add&pid=5&billingcycle=annually And the simplest way of formulating an url for direct linking when wanting to set custom fields, configurable options and/or addons is to step through as normal to the product configuration step, then right click > view source and get the field names and value IDS from there. There's already some linking info @ http://wiki.whmcs.com/Linking_to_WHMCS Matt This method did not work with the AJAX cart so I fixed the variable in 'order/index.php: Original: $billingcycle = $_REQUEST['billingcycle']; New fixed: $billingcycle = 'annually'; Is this syntax correct? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
SilverNodashi Posted March 31, 2011 Share Posted March 31, 2011 The billingcycle option doesn't work with the order form. I think it's a bug 0 Quote Link to comment Share on other sites More sharing options...
theWebalyst Posted August 18, 2011 Share Posted August 18, 2011 You can set the billing cycle by simply appending &billingcycle=xxxx to the cart.php?a=add&pid=x links you already get from WHMCS. For example cart.php?a=add&pid=5&billingcycle=annually And the simplest way of formulating an url for direct linking when wanting to set custom fields, configurable options and/or addons is to step through as normal to the product configuration step, then right click > view source and get the field names and value IDS from there. There's already some linking info @ http://wiki.whmcs.com/Linking_to_WHMCS Matt As already noted setting billingcycle from the URL doesn't work with the Ajax form. Note: I'm using WHMCS 4.4.2 as I'm cautious about updates. Does anyone know if the issue is fixed by a later version? If not this makes a real mess of the form for me as it has knock on effects for a user arriving from a special offer page. It means the "Order Summary" is a right mess (domain reg not free, discount not applied etc.). Take a look here: https://managedwebsitehosting.net/clients/order/?pid=1&skip=1&billingcycle=annually&promocode=NEWS20 The user should see a £39.95 product discounted down to £19.95 including a free domain. Instead they see: an "Order form" with input for domain name, alongside "Order Summary" with product and discount, but wrong billing cycle (monthly) and wrong price because the discount applies to annual not monthly. When they provide a domain: this appears in the order summary at a cost of £23.95 (that's 2 years for a .co.uk domain) which is more than the total of £19.95 they are expecting! Domain reg should be listed at £0.00 because it is free. Aggh! I'll lose every customer at this point! If the billingcycle was correctly set to annual it all looks much better, although there's still one annoyance... the "Domain Configuration" form has DNS/Email unchecked even though they will be free, which is a pain too. Is the billingcycle thing a bug? Is it fixed since 4.4.2?) Is there a workaround (e.g. editing order/index.php)? Any solution to the annoyance with DNS/Email being unchecked? Thanks guys, Mark 0 Quote Link to comment Share on other sites More sharing options...
stumblrmonk3 Posted November 24, 2012 Share Posted November 24, 2012 Sorry to revive an old thread like this but I have a question about enabling/disabling ADDONS via URL. This is the config page URL: http://dev.com/cart.php?a=confproduct&i=0 The only addon on this page has the following "name": addons[2] I tried adding "addons[2]" to the URL but it does not pre-select it. I also tried "addons[]=2" but that doesn't work either. Am I adding it to the wrong page? Someone please help me with this. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
stumblrmonk3 Posted November 24, 2012 Share Posted November 24, 2012 So, apparently I was doing it wrong. The correct way to do it is to get the Direct Link from your WHMCS Admin and then add "&addon=XX" where XX is the ID of addon. As soon as you enter this URL, it will take you to the configpage URL I posted on the post right above this one. Hope this helps someone. Now if I could only find a way to add items to cart via Ajax without the visitor ever seeing the config page... hmm... 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.