WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
WooCommerce Check Out Page Terms & Conditions Link (12 posts)

  1. edmangl@aol.com
    Member
    Posted 1 year ago #

    The default link opens a new browser on the same page. How do I re-point/edit the link? I can't find/access the code.

    http://wordpress.org/extend/plugins/woocommerce/

  2. IgniteWoo
    Member
    Posted 1 year ago #

    WooCommerce 2.x already has this "open in a tab" feature in the plugin templates, but maybe your template doesn't? The link code is in the checkout/review-order.php template.

  3. edmangl@aol.com
    Member
    Posted 1 year ago #

    Thanks! I'm having trouble following your instructions. I have WooCommerce version 2.0.5 - which a very recently downloaded (this month). Where do I find this "open in a tab" feature? Somewhere in settings? Do I search via editor?

  4. IgniteWoo
    Member
    Posted 1 year ago #

    Your theme might have its own Woocommerce templates. If it does they'll be in a subdirectory called "woocommerce". Look in there for a checkout subdirectory. Then find the file I mentioned and edit it. There's an "A" tag in it for terms and conditions. Add this:

    target="_blank"

    If your theme doesn't have WooCommerce templates then you will have to copy them from the plugin directory. I can't explain all of this step by step, and you do need to know a little HTML to get it done.

    Here's a place to start:

    http://docs.woothemes.com/document/template-structure/

  5. IgniteWoo
    Member
    Posted 1 year ago #

    The code looks like this:

    <label for="terms" class="checkbox"><?php _e( 'I have read and accept the', 'woocommerce' ); ?>
     <a href="<?php echo esc_url( get_permalink(woocommerce_get_page_id('terms')) ); ?>" target="_blank">
    <?php _e( 'terms & conditions', 'woocommerce' ); ?>
    </a></label>
  6. edmangl@aol.com
    Member
    Posted 1 year ago #

    Hmm... At present I'm using the WP 2011 theme - I don't see a woocommerce subdirectory. I go into the WooCommerce via edit and look in checkout subdirectoy and finding the code you've given me, I'll try to edit it. Thanks again. I'm far from a programmer and don't know HTML, but Ill give it a shot.

  7. IgniteWoo
    Member
    Posted 1 year ago #

    copy wp-content/woocommerce/templates/checkout/review-order.php

    to

    wp-content/themes/twentyeleven/woocommerce/checkout/review-order.php

    then edit the file, otherwise you'll loose any edits you make to the plugin itself when you upgrade.

  8. edmangl@aol.com
    Member
    Posted 1 year ago #

    I appreciate all your advice and patience. Copy "wp-content/woocommerce/templates/checkout/review-order.php" from where? Do you mean find this in some directory? I don't see anything labeled this in either WP background editor or WooCommerce editor. Will just copying this label suffice?

    Copy it to where? Where is "wp-content/themes/twentyeleven/woocommerce/checkout/review-order.php" I don't see anything labeled this in either WP background editor or WooCommerce editor.

    Thanks again.

  9. edmangl@aol.com
    Member
    Posted 1 year ago #

    This the closest I can find to what you're talking about: "woocommerce/classes/class-wc-checkout.php"

    I found it by going into edit mode for the WooCommerce plugin. Should I edit this?

  10. IgniteWoo
    Member
    Posted 1 year ago #

    No - wrong file. And I gave the wrong path last time. Ooops. Here's the correct path:

    wp-content/plugins/woocommerce/templates/checkout/review-order.php

    copy to

    wp-content/themes/twentyeleven/woocommerce/checkout/review-order.php

    then edit.

  11. maharg
    Member
    Posted 1 year ago #

    Rather than open in a tab it would be great to open T & C's in a lightbox / popup. Once read the customer just needs to close the box

  12. clk87
    Member
    Posted 1 year ago #

    Thank you for the help IgniteWoo.com Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic