Jump to content

innovator

Member
  • Posts

    10
  • Joined

  • Last visited

About innovator

innovator's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. The problem is when getting a domain with hosting, if they are getting just a domain there wouldnt be an issue coz skipconfig would not be true. So on the initial order page i got {if !$product.pricing.hasconfigoptions} <input type="hidden" name="skipconfig" value="true" /> {/if} With the url being something like http://demo.whmcs.com/cart.php?a=add&pid=1&billingcycle=annually Then when you go to "Step 1 Choose Domain" and say register a new domain, it will skip right thru to /cart.php?a=view, coz of skipconfig=true, where it should infact go to cart.php?a=confdomains But unfrotunatly when registering the domain it seems you have to do a cart.php?a=add&pid=1 so if there was something you can tag along to that querystring which would add the domain and also go to the domain config page, that would work great.
  2. brian, yes this is what I am toying with, on the initial order page adding a hidden input with skipconfig true if $product.hasconfigoptions, that works as expected, now the only problem is that creates a new issue, well atleast im not seeing the fix yet, basically when you select a domain and continue, i expect the domain options to show up on the next page, but with skipconfig set it now goes straight to the checkout page, any ideas how when adding a domain i can get it to show the domain options page next ?
  3. ok, it seems this has to be customized in a way for it to work, i think i got it down anyway, basically a check to see if a product has conf options, if not add skip to the url, then either use the current conf page or create a custom page to redirect to. thanks again brian for the reply.
  4. brian, thanks for the quick reply. I should have included that in my post, the problem with "&skipconfig=1" is that it will completely skip the config page. So if there are configuration options or custom fields, all that will be ignored and go straight to the checkout. The idea is if there are no "configuration options or custom fields" and we specify something like "billingcycle=annually" in the original link, there is no reason to show the product config page, because it also seems like a 302 redirect after the domain config page. But if there are "configuration options or custom fields" the page should be shown, and ofcourse the cycle info can be removed from the template so that only the config options show. ie use, /cart.php?a=add&pid=1&billingcycle=annually -> dont show config page if no "configuration options or custom fields" /cart.php?a=add&pid=1&billingcycle=annually -> show config page if there are "configuration options or custom fields" "&skipconfig=1" -- just skips over the page entirely in both the about instances and goes to the checkout, which is not desired. So why is this happening and how can it be done the way it should work ? Thanks
  5. FROM: http://docs.whmcs.com/Linking_to_WHMCS To link to the order process with a given product and annual billing cycle preselected, you can use a link like this: http://demo.whmcs.com/cart.php?a=add&pid=1&billingcycle=annually I am trying the above out, where after clicking the link with the pre-selected billing cycle of 'annually', the domain options show up, after completing the domain selection page and continuing, the product configuration billing cycle options are shown again. There are no product configuration options or custom fields attached to the product. The desired effect is that after completing domain options the next page would be the checkout page, why is this behavior not happening ? Thank you.
  6. so i got the follow code in my footer.tpl file, but it is not outputting "hello world!" in the document as expected, why would this be ? {php} function hello_world($vars){ return "hello world!"; } add_hook( "ClientAreaFooterOutput", 1, "hello_world" ); {/php} {$footeroutput} </body> </html>
  7. Hi, while editing the template I need certain JS files added to the footer of the template footer.tpl what are the functions to add something to {$footeroutput} from within the template files. as an example i need to be able to add <script src="templates/default/js/jquery.min.js"></script> to {$footeroutput} from a particular place so that, that code gets output in the appropriate template. so need the api or function name to do that, and my code is in a .tpl file. thanks
  8. Hello, my requirement is that the captcha only appear in the domain search pages if a certain number of domains have been searched for. ie. lets say if the visitor has searched for 10 domain names, then the captcha would start to show up after that point for each consecutive search but not for the first 10. How would I implement this in the .tpl files ? thank you
×
×
  • 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