Page 3 of 6 FirstFirst 12345 ... LastLast
Results 31 to 45 of 76

Thread: HOW TO: Include Terms & Conditions on Order/Register Page instead of a link

  1. #31
    Join Date
    Apr 2007
    Location
    New Jersey, USA
    Posts
    601

    Default

    Quote Originally Posted by ChrisGooding
    Quote Originally Posted by Ace
    I would love to be able to display different terms for different product/services
    That would be good, although possibly difficult if you allow clients to order more than 1 product at a time!!
    This is true. It wouldn't be so bad if they were just one line sentences where you have to tick to agree. So if it were a hosting account, that TOS tick box would appear, but if it were a web banner design, that TOS would appear. If both services were ordered, both tick boxes would appear. I guess this is sort of different from what this thread is about, but I still like the idea.

  2. #32
    Join Date
    Sep 2008
    Location
    United Kingdom
    Posts
    246

    Default

    Quote Originally Posted by dmc_ss View Post
    Ok this is my complete {if $accepttos} section.

    Andrew, it includes the link to the TOS file for dynamic updating however I use a windows based server and had to supply the entire file path location in the include statement, but it does work once you get the file location correct.

    WHMCS 3.8.1

    {if $accepttos}
    <p class="cartsubheading" align="center">Terms and Conditions</p>
    <p align=center>You must review the Terms and Conditions below and tick the "I have read and agree to the Hosting<br>Terms and Conditions" box beneath to signify your acceptance of the terms and conditions.</center></p>
    <center>
    <div style="border:1px black solid; width:600px; height:200px; overflow:auto;">
    {include file='CHANGE TO SUIT YOUR FILE LOCATION'}
    <p align="center"><input type="checkbox" name="accepttos" id="accepttos" /> <labelfor="accepttos">{$LANG.ordertosagreement}
    </label><p>
    </div>
    </center>
    {/if}
    Thanks, I will try it later tonight or tomorrow and update you.
    Andrew - WHMCS Supporter, Owned Licence, No Branding.
    Membership - Since 2008
    Services - Quality, Low cost WebHosting, Resellers, Dedicated Servers, WebDesign, Political CMS systems & more!

  3. #33
    Join Date
    Feb 2008
    Location
    Yorkshire, England
    Posts
    385

    Default

    Actually you could have it do more than one.... I think, although I think it would look a little messy.

    I'm not sure of the code (I do logic Im afraid), but,

    You have a for each statement wherby it inserts a TOS box for each product displayed, but if product 2 has the same product id then it doesnt.

    so, my logic way of writing it would be...

    for each ordered product, insert;

    {TOS Box}
    if product_gid= 1 then include TOS Linux
    else
    if product_gid = 2 then include TOS Windows
    {TOS Box}

    I know the coding will be wrong, the layout probably is too, heck the values probably are too....

    But logically I think it may work. Essentially there is only 1 TOS box, but different layout options within the tos bod using if's.

    All that is required is the bit of code to make it put a box for each product, and I'm guessing there will be something simmalar for the cart page layouts

    OOOhhh I may be on to something there :O)

  4. #34
    Join Date
    Oct 2008
    Posts
    55

    Default

    Why do we keep using {php}.....{/php}?
    I've just read that it's insecure?
    Are there any topics in regards to which form of PHP should be used?

    Wow... i think we've got a bit of work to catch up on, if this is true!


    Can anyone please verify someones post as working?
    i.e. simply display the t's & c's in a text box with scroll bars (external file), where they must click i agree, to proceed?

    Something simple would be great, rather than adding the I AGREE to the bottom of a text box etc... (which was not successful).

    Thanks again!
    Good to see everyone keen to help each other!

  5. #35
    Join Date
    Jan 2009
    Posts
    80

    Default

    Quote Originally Posted by flip View Post
    Can anyone please verify someones post as working?
    i.e. simply display the t's & c's in a text box with scroll bars (external file), where they must click i agree, to proceed?

    Something simple would be great, rather than adding the I AGREE to the bottom of a text box etc... (which was not successful).
    The tick box at the bottom of the scroll box works perfectly fine for me.

    Regards, David.

  6. #36
    Join Date
    Jun 2007
    Posts
    9

    Default

    Thanks for the share

  7. #37
    Join Date
    Oct 2008
    Posts
    55

    Default

    {include file="terms.txt"}
    or
    {include file='terms.txt'}

    This does not seem to work (within a template .tpl file)
    I thought it was bad to mix <p> and <div> tags...?
    As i thought "document type" (at the top of a document) was meant to specify which iso is in use.
    Therefore i thought you "weren't" meant to mix iso standards..?

  8. #38
    Join Date
    Oct 2008
    Posts
    55

    Lightbulb Solution to terms & conditions on checkout & registration...

    This token expired error thing is really annoying...
    Once again, i lose a large post, where i'm trying to help everyone else.....
    This time i will attempt to re-create it.... again!

    ------------------ Solution Working & Resolved! ---------------------

    You can't use "include file" or "file_get_contents" etc...
    None of these are compatible with { } (smarty templates)

    The solution follows.

    REGISTER + ORDERING TERMS & CONDITIONS
    Replace your code (as per the instructions on the 1st and 2nd page).

    Code:
    {if $accepttos}
    	<p><strong>TERMS AND CONDITIONS OF SERVICE</strong></p><p align="left">To continue, you must tick "I AGREE", and click on the "Continue" button.... enter your own friendly text here.....</p>
    
        <div align="center"><p><div align="left" style="text-align:left; border:1px black solid; width:600px; height:350px; overflow:auto; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:5px;">
               <p align="Left"><div align="center"><b>COMPANY NAME'S PRODUCT & SERVICE TERMS AND CONDITIONS</b></div><br />{$LANG.ordertosagreement}
               <p align="center"><labelfor="accepttos"><input type="checkbox" name="accepttos" id="accepttos" />&nbsp; I AGREE</label></p>
    
        	<!-- #### INSERT FROM FILE #### -->
        	{fetch file='filename.txt'}
    
        </div></p></div>
    {/if}

    For more information on Smarty Templates and this function, please visit here: http://www.smarty.net/manual/en/lang...tion.fetch.php

    Enjoy this problem finally resolved!

    Emma
    (:

  9. #39
    Join Date
    Apr 2008
    Location
    Bristol, UK
    Posts
    848

    Default

    Thanks Emma.

  10. #40
    Join Date
    Oct 2008
    Posts
    55

    Default

    i'll send you the bill.... (;

    - 28th March - 17th April @ $150/hr (Coding - Testing - Pulling out Hair!)
    - 8 broken keyboards (munched)
    - 11 broken mice (squashed)
    - 6 bottles of wine (empty) d:

    Heheh..
    (:

  11. #41
    Join Date
    Apr 2007
    Location
    New Jersey, USA
    Posts
    601

    Default

    Do you think it would be possible to have different files fetched for different product groups?

  12. #42
    Join Date
    Mar 2009
    Posts
    96

    Default

    im not really that great with php but couldn't use you some kind of if then or var setting to recognize the product number and if it matches include a different file for tos?
    █>>> MoonSoft Systems Dedicated Managed & Reseller Hosting
    █>> 3rd party scripting support
    █> Find out why we are different!
    Professional Hosting solutions for your business

  13. #43
    Join Date
    Nov 2007
    Location
    Melbourne Australia
    Posts
    670

    Default

    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 .
    OZsmeBusiness
    Getting your Australian small business online and connected!

  14. #44
    Join Date
    Apr 2007
    Location
    New Jersey, USA
    Posts
    601

  15. #45
    Join Date
    Mar 2009
    Posts
    96

    Default

    Quote Originally Posted by Zorro67 View Post
    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 .
    let us know if that works cause if so this is really gonna be an awesome hack for me, then I dont have to use some 10,000 word TOS to insure it encompases everything
    █>>> MoonSoft Systems Dedicated Managed & Reseller Hosting
    █>> 3rd party scripting support
    █> Find out why we are different!
    Professional Hosting solutions for your business

Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. terms and conditions
    By hostand in forum Customisation & Integration Questions
    Replies: 4
    Last Post: 06-08-11, 03:25 PM
  2. Replies: 2
    Last Post: 05-15-10, 02:05 AM
  3. Terms and conditions
    By ozace in forum General Discussion
    Replies: 3
    Last Post: 10-29-09, 02:34 PM