22 replies [Last post]
qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554

Hi there,

I want users to have to check a "Agree" box on terms and conditions in checkout (in a perfect world, I want the submit button not clickable until...). Is this already hidden somewhere in Ubercart? Can't find anything about it. I will not the only one wanting this I guess.

Hints and help appreciated.

Kees

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6841
Re: Terms/conditions in checkout

This sounds like a perfect job for a checkout pane. It would have the scrollable (maybe collapsible) block containing the terms and conditions and the checkbox, and doesn't allow the customer to review the order until the box is checked.

To make it useful for everyone, there would need to be a settings page for it, allowing the admin to set the text that would be displayed. A button to print the page out might also be nice.

michels's picture
Offline
Uber DonorBug FinderInternationalizationizer
Joined: 08/12/2007
Juice: 205
I did this last week. But

I did this last week.
But that's just... very standard Smiling

It just displays a pane with 2 checkboxes which must be clicked.

Take it and make it more comfortable.

AttachmentSize
uc_gtct.tar 7 KB
qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: I did this last week. But

Good startingpoint, I'l dig into this.

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Take a look, I've made it

Take a look,
I've made it more general by leaving only terms and conditions (1 checkbox).
Settings are available in a textarea in store>settings, and shown to user in a popup to prevent leaving checkout.

Premature, but functional. Waiting for your feedback.

Regards,

Kees

AttachmentSize
uc_gtct0p1.tar 7.5 KB
michels's picture
Offline
Uber DonorBug FinderInternationalizationizer
Joined: 08/12/2007
Juice: 205
Cool! I improved it a bit

Cool!

I improved it a bit Eye-wink
In germany you have to accept both seperatly, the terms and the right of rescission (legal issue). So I made some checkboxes available in the admin panel, so that you can choose which of them should be displayed at checkout page.
I also made a textfield where you can enter the name of an PDF, that can be downloaded at the checkout page (thats also an obligation in germany).

@todo:
- make an upload field for the pdf instead of a text field
- check if the pdf-file exists
- play a little bit with jquery (see ryans comment)
- correct my english Eye-wink

AttachmentSize
uc_gtct0p2.tar 15 KB
qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: Cool! I improved it a bit

Nice! Gonna look at it after my 1 week holiday. I'll be back Cool .

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Hi Mic, I'm back,

Hi Mic,

I'm back, obviously.
Looks great. I'm stumbeling upon making ubercart 'remember' the form input. F.e. if you go to order-review, and go back to cart, the options you enabled are gone.

How to do this? I have the same question for another module.

Regards,

Kees

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: Hi Mic, I'm back,

I figured out how other modules do it, with hook _order, and save-retrieve to-from database in a module specific table.
A little over the top for this one I think, or do you want to display in other pane's that client did agree with your terms?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: Hi Mic, I'm back,

*bump* Any way this could get posted up to the contributions directory?

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: Re: Hi Mic, I'm back,

Of course Ryan, here you are:
http://www.ubercart.org/contrib/877

Anything else Eye-wink ?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: Re: Re: Hi Mic, I'm back,

lol Awesome. Someone had PMed me about it, and I figured it would be doomed to obscurity when that thread got buried in the forums. Thanks for taking care of it. You've gotta tell me where I can get one of those tattoos. Eye-wink

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: Re: Re: Re: Hi Mic, I'm back,

Lets see, where did I get that?
Some shop....

Oh, yes, I remember, it was Photoshop!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: Re: Terms/conditions in checkout

Yeah, Lyle's on it. I'd say, too, you can just add a bit of JS to disable the "Review order" button until the customer checks your agreement box. Smiling

surbir's picture
Offline
Joined: 08/08/2007
Juice: 113
Re: Terms/conditions in checkout

I have just installed this module when i add product to cart and click on checkout I will get tis error

Fatal error: Call to undefined function: uc_cart_checkout_new_pane() in /home/designsd/public_html/taggedcheap.co.uk/modules/ubercart/contrib/uc_gtct/uc_gtct.module on line 30

www.taggedcheap.co.uk The cheapest price shop

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: Re: Terms/conditions in checkout

Oof... guess it hasn't been updated for the new checkout pane system yet. And I need to finish posting those docs!

dvschramm's picture
Offline
Joined: 10/29/2007
Juice: 2
This should work.

I created this for the new panes system, it seems to work correctly but I am pretty new to drupal/ubercart so I may have missed something.

AttachmentSize
uc_terms.tgz 751 bytes
Mariano's picture
Offline
Joined: 09/04/2007
Juice: 110
Re: This should work.

I tried modifying the original keesje76 & michels' module for alpha 8. It worked somehow, but I still wanted to improve it. Then, I saw dvschramm's version and tested it. No way I get it working.

Did anyone manage to apply 'terms and conditions' at checkout for the current version of Übercart?
If not, then I'll post my fix and see if someone can help me out to improve it, since I don't know too much about php.

Thanks =)

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: Re: This should work.

I sort of maintain the module, so please post your fix.

Explain what you want to improve?

I have to dive into the API changes for A8, to see what should change in the current module.

Thanks,

Kees

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: Re: Re: This should work.

Laters version 1.4 is compatible with alpha8.

hdyami's picture
Offline
Joined: 12/27/2007
Juice: 39
small typo :)

Hey, I just grabbed this module and caught a small typo, "I agree with the general terms *an* conditions". For the text in the checkout pane.

Also FYI, this module *is* compatible with UC beta.

Hailu

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Hi there, Thanks for

Hi there,

Thanks for pointing, typo is fixed.

Regards,

Kees

http://www.qspeed.nl

michels's picture
Offline
Uber DonorBug FinderInternationalizationizer
Joined: 08/12/2007
Juice: 205
New version 1.6

I uploaded the version 1.6 with a lot more features to the uc_gtct contribution page: http://www.ubercart.org/contrib/877