Contrib type:
ModuleModeration:
Failed code reviewStatus:
Work in progressSponsored by:
Qrios Webdiensten, Drupal servicesCompatibility:
Ubercart 1.xLatest version:
1.5With help from Mic:
http://www.ubercart.org/user/88
D6 version by zmove.
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:
http://www.ubercart.org/forum/support/503/terms_conditions_checkout
Mic provided some german specific functions.
I'm to lazy busy to make this one module right now.
This one has all I need personally.
Help/feedback appreciated.
Regards,
Kees
------------
Changelog:
1.5: typo fix
Related threads:
| Attachment | Size |
|---|---|
| uc_gtct1p5.tar | 13 KB |
| uc_gtct_1.7_D6.zip | 3.25 KB |



typo...
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
Thanks Hailu. I will upload
Thanks Hailu.
I will upload a fully updated version the next days. With more functionality - and surely more typos and english grammar mistakes
Hi, Yes, this module is
Hi,
Yes, this module is maintained, typo is fixed in 1.5.
Can you confirm this module working in latest beta?
Thanks,
Kees
Works well in Beta 4
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.
Hey Michels, That's an
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
version 1.6 uc_gtct
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
problem with multilanguage
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?
Hmm. Good question. After
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?
@suoko: Can you confirm
@suoko:
Can you confirm Michael's module working for Beta6?
Kees
not yet
I'm still using beta5.
I'll let you know asap
heyhey... according to your
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?
Re: heyhey... according to your
@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.
Re: Re: heyhey... according to your
i'm not in a hurry, so thats just perfect! thanks for your great work!
T/asking
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.
temporary dirty hack for multilanguage
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
New contribution "Legal aspects checkout pane"
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.
install it twice...
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
Re: Global Terms and Conditions
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
Re: Re: Global Terms and Conditions
Sorry, I cant reproduce, more info please?
Re: Re: Re: Global Terms and Conditions
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.
Link should appear under store configuration
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!
Re: Link should appear under store configuration
This is a fork, look here: http://www.ubercart.org/contrib/3781
get it to work with ubercart 1.0
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
D6 version of this module
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
Thanks!
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
GTCT per product or role
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!