Terms/conditions in checkout

22 replies [Last post]
Joined: 08/13/2007
Juice: 485

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

Joined: 08/07/2007
Juice: 6674

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.

Joined: 08/12/2007
Juice: 174

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
Joined: 08/13/2007
Juice: 485

Good startingpoint, I'l dig into this.

Joined: 08/13/2007
Juice: 485

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
Joined: 08/12/2007
Juice: 174

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
Joined: 08/13/2007
Juice: 485

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

Joined: 08/13/2007
Juice: 485

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

Joined: 08/13/2007
Juice: 485

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?

Joined: 08/07/2007
Juice: 15046

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

Joined: 08/13/2007
Juice: 485

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

Anything else Eye-wink ?

Joined: 08/07/2007
Juice: 15046

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

Joined: 08/13/2007
Juice: 485

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

Oh, yes, I remember, it was Photoshop!

Joined: 08/07/2007
Juice: 15046

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

Joined: 08/08/2007
Juice: 97

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

Joined: 08/07/2007
Juice: 15046

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

Joined: 10/29/2007
Juice: 2

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
Joined: 09/04/2007
Juice: 110

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

Joined: 08/13/2007
Juice: 485

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

Joined: 08/13/2007
Juice: 485

Laters version 1.4 is compatible with alpha8.

Joined: 12/27/2007
Juice: 33

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

Joined: 08/13/2007
Juice: 485

Hi there,

Thanks for pointing, typo is fixed.

Regards,

Kees

http://www.qspeed.nl

Joined: 08/12/2007
Juice: 174

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