sparky Posted April 20, 2009 Share Posted April 20, 2009 @Flip - No response hey!! I notice that your pirate forum (or rather site) has been now been suspended. That's good news for most of the developers here including Matt, at least we know now that there's 1 less site stealing our work. Lets hope that it doesn't pop its ugly head up again. 0 Quote Link to comment Share on other sites More sharing options...
ChrisGooding Posted April 22, 2009 Share Posted April 22, 2009 (edited) I would think an extra staement just above (and replacing) the filename statement would suffice eg {if $gid eq "001" or $gid eq "002"}{fetch file='filename1.txt'}{else} {if $gid eq "004" or $gid eq "003"}{fetch file='filename2.txt'}{else} {fetch file='filename3.txt'}{/if} Although my hack would give you either, or, not multiple TOS And I haven't checked whther the $gid variable is carried to the checkout page . Cheers Zorro, posted earlier it could, as you know I fall over on the code...... love it when you will my gaps @Sparky....... well said..... Love your mods, hence payiing for them. Last thing needed is some filthy theif nicking them..... or any mod made here for that matter. Edited April 22, 2009 by ChrisGooding 0 Quote Link to comment Share on other sites More sharing options...
ES-Aizal Posted May 7, 2009 Share Posted May 7, 2009 My first contribution, I hope I'm not rehashing. If you comment or suggest changes, I will edit this post to incorporate them. One thing I have learned from working with and owning Internet Service providers (since 1993 or so) is - when you have the T&C on the page that asks for acceptance, it goes over a lot better in a courtroom than if you had a link. This tutorial explains how to get rid of the hyperlink to the T&C, and replace it with the actual T&C text - displayed and scrollable right above the acceptance check mark. You will need to modify two files. Here I show the links to the files in the distribution, but I highly recommend using the custom template system so you can avoid changing files which may change with an upgrade: templates/orderforms/cart/viewcart.tpl templates/default/clientregister.tpl Backup! Copy each file so if you make a mistake you can revert. I copy mine to originalfilename.tpl.orig Now, apply the following change to both files: Open the file with an editor Go to the following chunk, near the bottom: First, modify the code to read as: What you have done is add a text area with a scroll bar containing your sites T&C and AUP. As most T&C/AUP texts are very long, the text box keeps the footprint on the page to a reasonable size. Now, get rid of the link to your terms/AUP, and replace it with plain text: should be changed to (feel free to choose your own words): Remove all of your templates_c/* files (BE CAREFUL! That is templates_c, not templates!) Go sign up and see if you are happy Anyone can confirm this code works? I tried and did not see any changes. 0 Quote Link to comment Share on other sites More sharing options...
fearz Posted May 10, 2009 Share Posted May 10, 2009 Can anyone confirm if this is working on V4? If so, kindly post final code, Thanks 0 Quote Link to comment Share on other sites More sharing options...
jeds Posted June 25, 2009 Share Posted June 25, 2009 I understand everything in the OP's instructions except: [*]Remove all of your templates_c/* files 1. Do you remove the files, but not the folder? 2. Why do you remove the (answer to 1.)? My templates_c folder (at unavailable location per instructions) is crammed with a lot of files, viewing some of them looks like they have stuff the system is using. So we just delete the files (or the folder)? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted June 25, 2009 Share Posted June 25, 2009 Leave the templates_c directory and just delete the files. The templates_c directory is a smarty compile directory and act very similar to a cache directory. 0 Quote Link to comment Share on other sites More sharing options...
LemonBarley Posted June 26, 2009 Share Posted June 26, 2009 So does this code still work in v4.0? cheers sparky! 0 Quote Link to comment Share on other sites More sharing options...
jeds Posted June 26, 2009 Share Posted June 26, 2009 (edited) I am using it with V4.02, works fine. BUT: Sparky, I had to use the fqdn in fetch. I stored my document to call in the same folder as my terms.tpl, and could not call it without the fqdn (so in my feeble mind the path relative to either file doesn't matter. But the fqdn also works in my viewcart.tpl. Also, I was confused for a while because my copy of clientregister.tpl only had one line: {if $noregistration} So that went unchanged (while the checkout process worked fine) until I viewed it in my ftp program. Even then I had to copy it inside ftp to edit locally, if I downloaded it with ftp it still only had the one line. Edited June 26, 2009 by jeds clarification 0 Quote Link to comment Share on other sites More sharing options...
jeds Posted June 28, 2009 Share Posted June 28, 2009 Sparky, my tail is between my legs: After a fair bit of experimenting I found this to work: {include file="portal/terms.html"} :?I am still confused why my clientregister.tpl opens in my editor with only the 1st line. If I view my local file from ftp, everything is there, but to work on it in my editor I have to copy all then past to my editor. editor=Arachnophilia 4.0 (that's another whole thread I suppose) ftp=CuteFTP Pro 3.3 Anyways, thanks to all contributors in this thread, especially the OP 0 Quote Link to comment Share on other sites More sharing options...
mike2098 Posted August 2, 2009 Share Posted August 2, 2009 Sparky, my tail is between my legs: After a fair bit of experimenting I found this to work: {include file="portal/terms.html"} :?I am still confused why my clientregister.tpl opens in my editor with only the 1st line. If I view my local file from ftp, everything is there, but to work on it in my editor I have to copy all then past to my editor. editor=Arachnophilia 4.0 (that's another whole thread I suppose) ftp=CuteFTP Pro 3.3 Anyways, thanks to all contributors in this thread, especially the OP Yes it does work in v 4.02 however this does not work {if $gid eq "5" or $gid eq "4"}{fetch file='../tos1.html'}{else} {fetch file='../tos.html'}{/if} I have tried changing gid to pid but that did not work either and you can just use ../ for the home directory to point to the file if anyone does suss how to get different tos depending on what product you have let me know.. Mike 0 Quote Link to comment Share on other sites More sharing options...
Transmutator Posted August 12, 2009 Share Posted August 12, 2009 In step 6, you recommend "Removing all template_c files" ... before I do so, can I ask "Why?" 0 Quote Link to comment Share on other sites More sharing options...
DedicatedPros Posted August 12, 2009 Share Posted August 12, 2009 In step 6, you recommend "Removing all template_c files" ... before I do so, can I ask "Why?" Its like clearing the cache in your web browser 0 Quote Link to comment Share on other sites More sharing options...
Dedigeeks-Sean Posted August 19, 2009 Share Posted August 19, 2009 I cannot get this to work in V4.02, I have tried all the alternatives and it will not correct itself up? 0 Quote Link to comment Share on other sites More sharing options...
jegavelan Posted August 25, 2009 Share Posted August 25, 2009 Hi Non of the method works with 4.0.2 any one can help in setting up for 4.0.2 0 Quote Link to comment Share on other sites More sharing options...
cma01 Posted October 16, 2009 Share Posted October 16, 2009 Does anyone have a solution for conditional terms and conditions based on product name or ID? 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted October 17, 2009 Share Posted October 17, 2009 Does anyone have a solution for conditional terms and conditions based on product name or ID? I wish this would be possible 0 Quote Link to comment Share on other sites More sharing options...
incredipete Posted October 31, 2009 Share Posted October 31, 2009 (edited) My terms of use aren't available in text or HTML form. I am using WordPress for my main site as a CMS, and that means special problems. This is the messy way I managed to get the TOS to work with v 4.1. I edited the orderform > viewcart.tpl. I went to the section (in v. 4.1) that says <h4 align="center">{$companyname} Terms & Conditions</h4> and simply copied and pasted my terms and conditions (with HTML formatting) directly there. then I removed the {include file="$tosurl"} and replaced it with text. Now it's all pretty and actually shows my terms in a scrollable box. Edited October 31, 2009 by incredipete 0 Quote Link to comment Share on other sites More sharing options...
jegavelan Posted November 19, 2009 Share Posted November 19, 2009 My terms of use aren't available in text or HTML form. I am using WordPress for my main site as a CMS, and that means special problems. This is the messy way I managed to get the TOS to work with v 4.1. I edited the orderform > viewcart.tpl. I went to the section (in v. 4.1) that says <h4 align="center">{$companyname} Terms & Conditions</h4> and simply copied and pasted my terms and conditions (with HTML formatting) directly there. then I removed the {include file="$tosurl"} and replaced it with text. Now it's all pretty and actually shows my terms in a scrollable box. Hi Can you explain better so that i can understand more 0 Quote Link to comment Share on other sites More sharing options...
hklcf Posted November 19, 2009 Share Posted November 19, 2009 great, it's work for me. 0 Quote Link to comment Share on other sites More sharing options...
WP Agent Hosting Posted March 22, 2010 Share Posted March 22, 2010 I admire all of you code people, but is there a single set of directions that work for the current version? I learn a lot going through these posts, but also get very confused when they are written and added to over a several year period of time an is in bits and pieces. I continually search the forums for what I think are simple basic things and requests and find it very difficult to find answers. If anyone has any suggestions, please feel free to <<post it here>>. I'm looking for: how do I do a practice purchase? if I can how do I change the colors in the template to closer match my website? this TOS question Thanks 0 Quote Link to comment Share on other sites More sharing options...
Snowman Posted March 27, 2010 Share Posted March 27, 2010 i found a bit of a workaround by adding an iframe to the template and adding a smart iframe plugin to the smart plugin folder i can then include a remote tos file from our site into the frame works well 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted April 3, 2010 Share Posted April 3, 2010 This is a good idea as many companies make you actually read/see them before you can keep going 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted June 4, 2012 Share Posted June 4, 2012 This is a good idea as many companies make you actually read/see them before you can keep going This is old i know, but as always just as valid today as it was way back when. You have to consider the flow of the ordering process before implenting any of this. i think the terms of service should be between the view cart and payment process. Take terms acceptance all together. Far better if i go, order -> cart -> terms -> clientdetails -> pay I know it throws in an extra step, but from a standpoint to the client, the important stuff to them, ordering and giving their details, are not marred by reading the terms on the same page. and look at it this way, its one click more. I think the order form (as it stands today V5) could do with an overhaul, whmcs need to speak to the webhosts and find out what we actually want in an order form. 0 Quote Link to comment Share on other sites More sharing options...
vikasbook Posted June 5, 2012 Share Posted June 5, 2012 This is old i know, but as always just as valid today as it was way back when. You have to consider the flow of the ordering process before implenting any of this. i think the terms of service should be between the view cart and payment process. Take terms acceptance all together. Far better if i go, order -> cart -> terms -> clientdetails -> pay I know it throws in an extra step, but from a standpoint to the client, the important stuff to them, ordering and giving their details, are not marred by reading the terms on the same page. and look at it this way, its one click more. I think the order form (as it stands today V5) could do with an overhaul, whmcs need to speak to the webhosts and find out what we actually want in an order form. This is really updated things that I love, mostly I enjoyed your post and always like to say thanks for your valuable efforts 0 Quote Link to comment Share on other sites More sharing options...
Strother Posted June 5, 2012 Share Posted June 5, 2012 Nice mod, thanks for posting! 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.