Jump to content

Terms of Service on Checkout Page


Recommended Posts

  • WHMCS Support Manager

This simple template addition replaces the Terms of Service link on the checkout page with a text box into which you can paste your company's wording so that your clients can read it without navigating away from the order form. Clients are still required to tick the checkbox to indicate they have read the terms.

 

Open templates/orderforms/*your active template*/viewcart.tpl

 

Find:

 {if $accepttos}
 <p align="center">
   <input type="checkbox" name="accepttos" id="accepttos" />
   <label for="accepttos">{$LANG.ordertosagreement} <a href="{$tosurl}" target="_blank">{$LANG.ordertos}</a></label>
 <p> {/if}

Replace with:

 {if $accepttos}
 <p align="center">
<textarea rows="10" cols="100" readonly="readonly">

***INSERT YOUR TERMS AND CONDITIONS HERE IN PLAIN TEXT***


</textarea>
</p><p align="center">
   <input type="checkbox" name="accepttos" id="accepttos" />
   <label for="accepttos">{$LANG.ordertosagreement} {$LANG.ordertos} above.</label>
 </p> {/if}

 

Replace "***INSERT YOUR TERMS AND CONDITIONS HERE IN PLAIN TEXT***" with your own terms of service wording.

Upload and you're done!

 

 

Update: 24/05/2010 - Text area is no longer editable by the visitor. (Thanks to gs-liam).

tosbox.jpg

Link to comment
Share on other sites

  {if $accepttos}
 <p align="center">
<textarea rows="10" cols="100" readonly="readonly">

***INSERT YOUR TERMS AND CONDITIONS HERE IN PLAIN TEXT***


</textarea>
</p><p align="center">
   <input type="checkbox" name="accepttos" id="accepttos" />
   <label for="accepttos">{$LANG.ordertosagreement} {$LANG.ordertos} above.</label>
 </p> {/if}

 

If you use this code instead of what John has posted, your clients will not be able to edit the text ;)

Link to comment
Share on other sites

Why make it a text area at all? As long as the TOS checkbox is within the form, it still works. I'm using this:

<div style="border:1px black solid; width:600px; height:200px; overflow:auto;">
{include file='/home/user/www/terms.html'}
<p align="center"><input type="checkbox" name="accepttos" id="accepttos" /> <labelfor="accepttos">{$LANG.ordertosagreement}{$LANG.ordertos}
</label><p>
</div>

It's in a scrolling DIV, and as it's text on the page, they can't edit. Bonus is that it's in a separate file so easily maintained, not overwritten by updates, and can have formatting.

Link to comment
Share on other sites

  • 2 months later...
Why make it a text area at all? As long as the TOS checkbox is within the form, it still works. I'm using this:

<div style="border:1px black solid; width:600px; height:200px; overflow:auto;">
{include file='/home/user/www/terms.html'}
<p align="center"><input type="checkbox" name="accepttos" id="accepttos" /> <labelfor="accepttos">{$LANG.ordertosagreement}{$LANG.ordertos}
</label><p>
</div>

It's in a scrolling DIV, and as it's text on the page, they can't edit. Bonus is that it's in a separate file so easily maintained, not overwritten by updates, and can have formatting.

 

 

nice one bear!! thanks everyone. implemented looks great

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
  • 1 month later...

Thanks John for starting this and to gs-liam and bear for the followups. I've implemented bear's version but pulled the checkbox out of the div so that those who don't wish to read and scroll can simply accept the terms and check out. Great work everyone!

 

Rick

Link to comment
Share on other sites

Why only plain text?

 

It's in a scrolling DIV, and as it's text on the page, they can't edit. Bonus is that it's in a separate file so easily maintained, not overwritten by updates, and can have formatting.

If it's not in a form field, you can indeed format it.

Link to comment
Share on other sites

  • 4 weeks later...
Can this be specified on a per-product basis? Different terms per product?

 

The simplest solution would be to put the terms for all products within a singe TOS, otherwise you'd have to do some custom coding to get it to pull a separate TOS per product.

 

Cheers,

Rick

Link to comment
Share on other sites

  • 1 month later...
Why make it a text area at all? As long as the TOS checkbox is within the form, it still works. I'm using this:

<div style="border:1px black solid; width:600px; height:200px; overflow:auto;">
{include file='/home/user/www/terms.html'}
<p align="center"><input type="checkbox" name="accepttos" id="accepttos" /> <labelfor="accepttos">{$LANG.ordertosagreement}{$LANG.ordertos}
</label><p>
</div>

It's in a scrolling DIV, and as it's text on the page, they can't edit. Bonus is that it's in a separate file so easily maintained, not overwritten by updates, and can have formatting.

 

Thanks bear that is exactly the way I wanted it to rock, thanks so much

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

What did i do wrong that my terms and conditions are not showing up?, i repalce the below code on the viewcart.tpl of the boxes folder as thats what i am using.

 

 

<div style="border:1px black solid; width:600px; height:200px; overflow:auto;">

{include file='/public_html/billing/templates/orderforms/boxes/tos.html'}

 

<p align="center"><input type="checkbox" name="accepttos" id="accepttos" /> <labelfor="accepttos">{$LANG.ordertosagreement}{$LANG.ordertos}

</label>

<p> </div>

terms&conditions.JPG

Link to comment
Share on other sites

The file would need to have been in your normal template directory eg.. templates/portal/tos.html

if it is in the cart directory, your case using the boxes theme would be

{include file="orderforms/boxes/tos.html"}

 

The path is relative to the templates directory

 

Else as bear sugested use the absolute full path

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