Redactuk Posted November 4, 2009 Share Posted November 4, 2009 I've read docs on how to allow user to click to order a specific package directly i.e.. http://www.mydomain.co.uk/cart.php?a=add&pid=1 This will usually then take user to stage 2 of the cart to select a domain, however it seems to me rather confusing for the user to not have landed on the Hosting stage, or at least have a confirmation of what they have just selected. My questions is therefore is there a simple way to show via the configureproductdomain.tpl what package has just been selected? My guess is you would either have to read the pid from url or maybe from current session? any help appreciated. thanks 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted November 4, 2009 Share Posted November 4, 2009 there is the $_GET['pid'] - in your case "1". do some sql query for getting the relating productname. ... or check {debug} for the smarty vars. i cant remember my solution exactly. i will post it tomorrow 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted November 5, 2009 Share Posted November 5, 2009 See it by typing {debug} in your configureproductdomain.tpl displaying productname {if $productinfo}<strong>{$productinfo.name}</strong> - {/if} 0 Quote Link to comment Share on other sites More sharing options...
Redactuk Posted November 5, 2009 Author Share Posted November 5, 2009 Excellent that worked great. Thank you 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.