Jump to content

Smarty values to pass from home page to cart


JackRabbit

Recommended Posts

I'm trying to make the homepage of my site recognize smarty values so I can pass the tld and sld through the URL to the form on the next page.

 

The home page is not in the whmcs directory but in the wordpress directory under my home directory.

 

this is the code I'm trying to use on my homepage at jackrabbit.host :

 

<script type="text/javascript" src="http://www.jackrabbit.host/whmcs/includes/jscript/jqueryui.js"></script>
<script type="text/javascript" src="http://www.jackrabbit.host/whmcs/templates/orderforms/slider/js/main.js"></script>

<div id="action" class="clearfix box padding-box">

<form action="http://www.jackrabbit.host/high-speed-hosting/whmcsportal/cart.php/?sld={$sld}&tld={$tld}&a=add&pid=1" method="post">
<input type="hidden" name="direct" value="true"/>
	www.<input type="text" name="sld" size="20" placeholder="Choose a new domain"/></div>			
				<select name="tld">
					<option>.com</option>
					<option>.net</option>

				</select>
			</div></div>
		<input type="submit" value="Go!"/>
</form>


</div><!-- end #action -->

 

in the url, you can see the sld and tld smarty values that need to be passed to the next page so the form will be pre filled so the user doesn't have to enter the domain again but I can't figure out how to get the smarty values to be recognized on the home page.

 

What do I need to add to make this url work? I've come across a few threads with similar unanswered questions.

Link to comment
Share on other sites

what happens if you don't add sld and tld to your URL? it should work without it as long as you use the sld and tld variables in your initial form...

 

so change your form cart link to just...

 

<form action="http://www.jackrabbit.host/high-speed-hosting/whmcsportal/cart.php?a=add&pid=1" method="post">

it should pass the sld & tld variables to your cart form automatically.

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