• Resolved dcoplan

    (@dcoplan)


    For what it’s worth, I found the initial answer to my question by Googling but the topic is closed so I can’t continue the thread. Initial question was how do I get the checkbox for accepting terms and conditions to be ON by default. That was answered at the bottom of this thread (for anyone else who needs to know)…

    https://www.ads-software.com/support/topic/plugin-woocommerce-accept-terms-and-conditions-by-default?replies=14

    Great. But my changes ended up reverting back to original somewhere along the way. I’m only guessing that when I updated WooCommerce, it replaced by changes. So…

    1. How do I make this change so it remains permanent even when the plugin is updated?
    2. The checkbox is all the way over by the payment button rather than right next to the text which is confusing to people. How do I get it right next to the text?
    3. Better yet, how do I just make it disappear?

    I revised the text to say “By placing your order you accept the ‘terms & conditions'” so I’m covered and if a customer has a problem with it, they can email me.

    Thanks for any help!

    https://www.ads-software.com/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 1. If you want to edit:
    /wp-content/plugins/woocommerce/templates/checkout/review-order.php
    in an update-resistant manner, copy it to:
    /wp-content/themes/your-theme/woocommerce/checkout/review-order.php
    and edit the copy.
    2. Please post the url to your site so the checkbox can be examined with browser tools.
    3. As per the other thread, you can still have a T&C page accessed via a menu item or whatever, just don’t have it defined in the WC settings T&C page drop-down.

    Thread Starter dcoplan

    (@dcoplan)

    Thanks for your reply.

    1a. I’m using a child theme so should I put the ‘update-resistant’ copy in there?
    1b. Just to be clear, so I don’t screw anything up, the original file is mydomain/wp-content/plugins/woocommerce/templates/checkout/payment.php. Your suggestion leaves out the templates folder so I’m wondering if that’s accurate or if I should be putting it in mydomain/wp-content/themes/mytheme-child/woocommerce/templates/checkout/payment.php.
    2. URL is https://www.bubbabeancoffee.com and the checkbox is at the bottom of the ‘Checkout’ page.
    3. Accessing the T&C page is fine because there’s a link for it in the phrase ‘By placing your order you accept the ‘terms & conditions”. I just want the checkbox gone because I think it will confuse people. Having it default to checked is fine but it just doesn’t need to be there at all. If this can be made invisible then that eliminates the need to move it closer to the text.

    1a. Yes
    1b. There’s no /templates/ in the destination path. See:
    https://docs.woothemes.com/document/template-structure/
    2.
    This custom css should reposition the checkbox:

    .woocommerce #payment .terms,
    .woocommerce-page #payment .terms
    {text-align: left}
    .woocommerce form .form-row.terms .input-checkbox
    {width:16px; height:16px; margin:19px 0 0 16px}

    3.
    Yes, now that you’ve got is checked by default you don’t need to show it. This custom css (instead of the above) should hide it:

    .woocommerce form .form-row.terms .input-checkbox
    {display:none}

    Personally I’d leave it in, it kind of reinforces the point.

    Thread Starter dcoplan

    (@dcoplan)

    Outstanding! Thank you very much for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Checkout: Terms & Conditions questions’ is closed to new replies.