Terms/conditions in checkout

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

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

Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

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.

Posts: 82
Joined: 08/12/2007
Uber DonorBug FinderInternationalizationizer

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.tar7 KB
Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

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

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

Good startingpoint, I'l dig into this.

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

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.tar7.5 KB
Posts: 82
Joined: 08/12/2007
Uber DonorBug FinderInternationalizationizer

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.tar15 KB
Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

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

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

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

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

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?

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

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

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

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

Anything else Eye-wink ?

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

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

Posts: 42
Joined: 08/08/2007

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

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

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

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

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

Oh, yes, I remember, it was Photoshop!

Posts: 1
Joined: 10/29/2007

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.tgz751 bytes
Posts: 60
Joined: 09/04/2007

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 =)

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

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

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

Laters version 1.4 is compatible with alpha8.

Posts: 13
Joined: 12/27/2007

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

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

Hi there,

Thanks for pointing, typo is fixed.

Regards,

Kees

http://www.qspeed.nl

Posts: 82
Joined: 08/12/2007
Uber DonorBug FinderInternationalizationizer

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