Global Terms and Conditions

Contrib type: 
Module
Status: 
Uploaded for testing
Moderation: 
Awaiting moderation
Latest version: 
D6 1.0
Compatibility: 
Ubercart 1.x
Compatibility: 
Ubercart 2.x

D6 version is based on zmoves port.

Module to add a pane for agreeing terms and conditions using a checkbox.
There is a HTML popup provided to display terms and conditions, to make sure client stays in checkout.

Look here for an alternative module:
http://www.ubercart.org/contrib/3781
With some German specific functions and more features.

This one here has all I need for our projects.

Help/feedback appreciated.

Regards,

Kees

Related threads: 

PreviewAttachmentSize
uc_gtct1p5.tar13 KB
uc_gtct_D6_1p0.tar.gz2.74 KB
Joined: 12/27/2007
Juice: 33

Hey, i'm not sure if this is the appropriate place to comment this, but there's a tiny typo in this mod, on the checkout page, in the gtct fieldset, the text reads "I agree with the general terms an conditions", should be "I agree with the general terms and conditions"

Also, is this module in active development? I'm a newb, so not so up on devel practices within the UC community.

Thanks!

Hailu

Joined: 08/12/2007
Juice: 174

Thanks Hailu.

I will upload a fully updated version the next days. With more functionality - and surely more typos and english grammar mistakes Smiling

Joined: 08/13/2007
Juice: 485

Hi,

Yes, this module is maintained, typo is fixed in 1.5.
Can you confirm this module working in latest beta?

Thanks,

Kees

Joined: 08/12/2007
Juice: 174

Yes, it works well in Beta4. I'll add a page-view for the gtct-text, the possibility to show the text directly in the checkout-pane (via overflow:scroll) and to upload a file that is also displayed at the checkout-pane.

More the next days. I'll first test it.

Joined: 08/13/2007
Juice: 485

Hey Michels,

That's an option I considered too making this module (showing directly in pane).
Since the checkout page already was too long in my opinion, I choose popup.
I guess the page view is meant for adding GTCT text as a menu-link?

Nice that you are willing to enhance the module, throw me a patch anytime you like.

I think it's nice to have options to choose from:
-popup (could be enhanced by checking if thickbox is available, and displaying thickbox popup instead)
-pane

Just my 2...

Kees

Joined: 08/12/2007
Juice: 174

Here comes version 1.6:

- GTCT could be displayed directly in pane
- Provides a print-link
- Provides a download-link
- Provides page view of GTCT at path '/gtct'
- GTCT could be edit at store administration
- Provides input formats
- Provides file upload
- Some theme functions

See attached screenshot to see how it looks now. Every option could also disabled at store administration.

It would be helpful, if someone could correct my english in the module and make a version 1.61. And I'd love to see if someone could provide a .pot file.

Keesje, please update the file and the changelog in the mainpost.

Thanks
Mic

AttachmentSize
uc_gtct-1.6.tar 19.5 KB
uc_gtct_preview.png 7.73 KB
Joined: 01/16/2008
Juice: 54

Hi,

I enabled multilanguage on my ubercart site and now have problems with "terms and conditions" file download: the link points to
http://mysite/it/files/terms&conditions.pdf (if italian lang is selected)
or
http://mysite/en/files/terms&conditions.pdf (if english lang is selected)

How can I fix it?

Joined: 08/12/2007
Juice: 174

Hmm. Good question.
After thinking about this 5 minutes, I don't find a quick solution.
I hope to have the time next week.

Is it better, that you have the possibility to upload two files? Or do you want both path linked to one file?

Joined: 08/13/2007
Juice: 485

@suoko:

Can you confirm Michael's module working for Beta6?

Kees

Joined: 01/16/2008
Juice: 54

I'm still using beta5.
I'll let you know asap

Joined: 01/19/2008
Juice: 4

heyhey...

according to your screenshot, you seem to be german. are you aware, that in a german shop the customer has to agree to a "widerrufsbelehrung" separately? would be a great feature for this module, maybe optional? Eye-wink

Joined: 08/12/2007
Juice: 174

@artycul: It's on my todo-list and will be added in 1.7. Hopefully at the next week, cause I need it for a customer. If you need it faster, take the module, rename the files and install it twice.

@suoko: I'm so sorry, but I'm really short in time at the moment. I don't think that I will get multilanguage support working in the next few days.

Joined: 01/19/2008
Juice: 4

i'm not in a hurry, so thats just perfect! thanks for your great work!

Joined: 03/12/2008
Juice: 4

Hi there,

great, michels thought about german legal issues and added 2 checkboxes,
- one for terms and conditions
- one for the revocation-rights.
But in the uc_gtc 1.6, wich has additional features like download-buttons, this is missing again..

i tried drupal eCommerce, someone created the module "legal" and a patch to integrate with ecommerce. There are options for up to 4 additional customizable checkboxes. But these terms apply even on user-registration, where i do not need such revocation-stuff.. I like eCommerce, but although eC4 will be published soon, it is still missing issues about CreditCard-Security and other legal stuff.

the gtc-text creates an additional menu-entry with text that does not appear as and is therefore not handled as node (e.g. translation). Or didn't i get it right?

It would be perfect, if gtc could be customized with

- Some customizable checkboxes
- checkboxes can apply on different nodes, on registration, on checkout
- need confirmation before further processing, customizable (e.g. checkout)
- link to existing node-fields (and make them downloadable)
instead of creating text and menu in a way of proprietary piece of software.

Thinking about the above, the module should be developed and named like "confirm-checkboxes.module", and not necessarily as an ubercart-module. So i am wrong here, dreaming... i hope not.

If someone would get this challenge it would be a big boost for drupal and the ecommerce solutions (ec and uc). Why am i not able to develop it? Is it difficult? I have in understanding php and js, proud enough to get css-files working.

Joined: 01/16/2008
Juice: 54

Here are modifications I did to have it working on multilanguage ubercart (beta7):

//Show Checkbox
$contents['gtct']['agree'] = array(
'#type' => 'checkboxes',
'#title' => t('General Terms and Conditions'),
'#options' => array('gtct' => t('I agree with the '). '

<SCRIPT TYPE=\'text/javascript\'>
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == \'string\')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, "width=400,height=200,scrollbars=yes");
return false;
}
//-->
</SCRIPT>

<a
   HREF="http://mysite/terms.html"
   onClick="return popup(this, \'notes\')">
' .$link. '</a>'),
'#default_value' => $contents['gtct']['agree'],
'#weight' => 1,
'#required' => true,
);

Then I commented out both the if claus under //GTCT-File uploaded?
and below line (which is the third to end line):
//$output .= theme('display_file', variable_get('uc_gtct_term_conditions_upload', ''), 'You can download the GTCT here');

My terms.html contains bilingual content.

thanks all
regards
Gabriele Vidali

Joined: 08/12/2007
Juice: 174

I had some time yesterday, so I added a couple more features and make a new contribution:
Legal aspects checkout pane
http://www.ubercart.org/contrib/3781

It does the same like uc_gtct 1.6 + revocation rights and some more administer options.
I would appreciate it, if you could test it and give some feedback at the new contribution site.

I also need urgently someone who could go in the code and correct my english.

Joined: 03/12/2008
Juice: 4

great idea, thanks a lot!

edit: *browser refresh* michels did all the work and got it online yesterday, so fast, wow.
if this speed goes on, there should be a perfect shopping-soluion next month..

thank you!

frank

Joined: 11/21/2007
Juice: 107

This module seems to be broken using Ubercart 5.x-1.0-rc4. For anonymous users it displays n/a instead of showing the t&c

Joined: 08/13/2007
Juice: 485

Sorry, I cant reproduce, more info please?

Joined: 11/21/2007
Juice: 107

I'm sorry keeje76 your module works perfectly! I got your module confused with uc_gtct-1.6.tar which michels had posted in the comments. uc-gtct-1.6.tar is the module that doesn't seem to work with anonymous users.

Joined: 08/08/2007
Juice: 106

Nice module. Two questions:

1. The module (5.x-1.6-beta4) created a new entry in the default navigation menu (at the top level). I think it should instead be configurable under admin/store/settings (menu entry nested). What do you think? Could you change that?

2. When the "Review Order" is pressed without the "Agree to GT" checkbox checked, the user is correctly sent back to the order page, but without a clear indication that "Agree to GT" must be checked before one can proceed. (Mandatory text input fields are styled with a red border when input is still missing.) Could this also be implemented for the checkbox?

Thanks!

Joined: 08/13/2007
Juice: 485

This is a fork, look here: http://www.ubercart.org/contrib/3781

Joined: 06/05/2008
Juice: 43

hi folks,
i´m also a newby ubercart user with no php experince - and i´m also germany based so i was happy to find this contrib. now my question is there any chance that somone push it to a stabel version for ubercart 1.0 (the today actual version). and secon question - anybody out there who would make it integrate with i18 multilanguage support ?
i´m realy in urgent need of a solution as german law for online shops drives me sometimes cracy.
hope to get an answer from you folks out ther !
cheers
carsten

Joined: 08/13/2007
Juice: 1108

Hi,

I begin to set up a shop with the D6 version of ubercart, and, as a training, I improved and updated this module to make it work with Drupal 6 (and so the dev version of ubercart 2).

Changes

  • Now GTCT are considered as a node. Basically, you create a node and put your gtct in it, and the module now ask you for a node ID in which your GTCT are
  • Removed the upload and print options, because as GTCT are a node now, you can easily add these functions with some module, example for page printing : printer friendly page it is more powerfull, more maintained, avoid duplicate etc...
  • Added multilanguage setting, you have one setting page for each language you have installed
  • Some code optimisation, translatable variables added
AttachmentSize
uc_gtct_1.7_D6.zip 3.25 KB
Joined: 08/13/2007
Juice: 485

Wow, thanks.
I will add this to the releases.
Since I will stick to D5 for now on bigger projects I have no quick resources to test it, so I leave it up to the community.

Regards,

Kees

Joined: 02/28/2008
Juice: 36

Is there a way to have the checkbox only appear for certain product or roles?

Our site sells to both end consumers and our dealers. We currently only have required GTCT for our dealers and it is unnecessary for our direct consumers to review them.

So it would be nice to be ablet orturn it off either by role or by product.

Thanks in advance!

Joined: 10/22/2008
Juice: 13

@zmove: Great! Do you have a template for translation available?

Joined: 08/13/2007
Juice: 1108

Hi, not really. In fact, I never put my node in pot file generation. ^^

Joined: 08/13/2007
Juice: 485

Install potx module and extract POT templates with ease:
http://drupal.org/project/potx

Joined: 01/20/2009
Juice: 392

Hi. I can't get this to display my terms and conditions.

I get, "The requested URL /cart/checkout/gtct was not found on this server."

??

Thanks

Glenn

Joined: 01/20/2009
Juice: 392

UPDATE:

Line 72 is:

        ' <a onclick="window.open(\'/cart/checkout/gtct\', \'gtct_popup\', \'top=100,left=100,width=600,height=500,status=yes,resizable=yes,scrollbars=yes\'); return false;" href="/cart/checkout/gtct" target="_BLANK">'.

The URL is hard coded here, it needs to call the base url of the site.

Glenn

Joined: 08/13/2007
Juice: 485

Hi Glenn,

For which version(s)?

Joined: 02/03/2009
Juice: 7

I'm using the D6 version for my site (Buyandcreate.com) and the terms work fine when I'm logged in as admin, but the check out pop up displays an "Access Denied" message when logged in as an authenticated user or anonymous. Not sure what to do, I set the user permissions to allow all users to view content.

Any help would be appreciated, thanks.

Joined: 01/20/2009
Juice: 392

1.6

Joined: 10/01/2008
Juice: 81

I am getting the same problem. Terms and Conditions only show for admin. If guest user checking out, it just shows n/a.

I am using Drupal 5, Ubercart 1.6

I figured it out. It's the check_markup function (http://api.drupal.org/api/function/check_markup) that does not allow access to anonymous users (depending on the filters and permissions you have set up).

What I did was go thru uc_gtct.module and search for the string

check_markup

Then change that string to add ,$check = FALSE at the end so that the check_markup function does not check if user has permission check the markup!

So this line

'#value' => check_markup(variable_get('uc_gtct_term_conditions_text', 'not set'),variable_get('uc_gtct_term_conditions_format', 3)),

Becomes:

'#value' => check_markup(variable_get('uc_gtct_term_conditions_text', 'not set'),variable_get('uc_gtct_term_conditions_format', 3),$check = FALSE),
Joined: 05/19/2009
Juice: 2

I've installed the module
I get the check button
but I don't see the terms text

Joined: 08/13/2007
Juice: 485

Added a new release for D6/UC2. Please test and report bugs, I already use it in live projects and don't expect much issues.
The "access denied" issues is fixed.

Joined: 06/24/2009
Juice: 5

I too am having a problem where the tick box is displayed but no t;s and c;s. I suspect it maybe because I have not created a node. I cant hoever find where I set which node is used for the terms and confitions, Any help would be apprecitaed.

Dill

Joined: 01/19/2009
Juice: 61

Hello,

Did you figure out how to create the node? I am having the same issue.

Thank you,
Kim

Joined: 06/28/2009
Juice: 58

I dont know how I missed this, but I figured it out now. In admin there is a link to Terms and Conditions (like I said don't know how I missed this). Once you have created a new node go to admin/store/settings/store/gtct and enter the node for the t's and c's job done. One tip, clear cache first, when I tried this the first time it kept telling me that the nid was invalid. I cleared the cache and tried again and it worked.

Hope this helps
Dill

Joined: 06/28/2009
Juice: 58

I am still getting the problem with access denied of terms and conditions pop up enabled.

Update 30/06/09 - This only happens if I am not logged in. Is it a setting or something where I have to give permission to view /gtct/blank/23?

Joined: 01/06/2009
Juice: 61

Dill,

I just:
Installed the module (uc_gtct_D6_1p0.tar.gz) <-- Are you using this version?
Enabled it
Created a page/node to use for gtct
Went to store settings, Terms and Conditions page
Put in the node id, checked box for popup, entered text.

And everything works when user is anonymous -- no errors here, and I did nothing else other than the basic setup. Maybe you can uninstall and try it again ...

Rachel

Joined: 01/06/2009
Juice: 61

FYI, I copied "function theme_uc_gtct($nid)" from uc_gtct.module to my template.php and renamed it "function {my-theme-name}_uc_gtct($nid)" so I could format the HTML for the popup window.

Joined: 06/28/2009
Juice: 58

Thanks for your reply Rachel. I re-installed the latest version and all is working fine now. Thanks for the tip on formatting the page as well.

Dill

Joined: 07/13/2009
Juice: 10

Hi, I had a client who needed multiple checkboxes on their T&C. I patched this module to provide a check box wherever [check] is placed in the text. It's expected to be at the end of a paragraph. It's only for text in the pane -- not pop up or node. If anyone's interested I can provide a patch.

Joined: 08/13/2007
Juice: 485

This is not legally needed AFAIK. This will not make it to release, but you can provide a patch for anyone interested.

Luck,

Kees

Armbandenshop, armband kopen

Joined: 07/21/2009
Juice: 2

First off, thank you for this great module. It is just what I needed. In working with the module, I have identified one bug, one typo, and added one new feature:

The bug was with regards to the popup link. Since it was not wrapping the link in Drupal's url function, a Drupal install that was not located in the root directory would result in a broken link.

The type was a missing "p" in the work apply.

The new feature is the ability to rename the panel and link text through the admin menu.

I have attached the patch file; hopefully this helps out.

Thanks.

AttachmentSize
uc_gtct.module.patch 4.81 KB
Joined: 03/11/2009
Juice: 21

I'm looking through this thread to find a link to the latest D6 version of this module. It's probably obvious, but I'm not seeing it. If someone could be so kind as to post the link that would be fantastic.

Joined: 08/05/2009
Juice: 22

@RachelNY post#43
I see the function, and understand theme overrides. What would be the syntax to output html from the created node? Thanks!

Joined: 08/05/2009
Juice: 22

Re: Post#26 (per product or role)
Did you find a solution for this? Similarly, I will need GTCT only for one product class, as we have trainings which will use it, and products which will not.