Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How to open "Terms and Conditions" page link from shopping cart in same window

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › How to open "Terms and Conditions" page link from shopping cart in same window

Tagged: t&c, Terms & Conditions, terms and conditions

  • This topic has 9 replies, 6 voices, and was last updated 13 years, 10 months ago by amin007.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • January 26, 2011 at 8:51 pm #2583
    sdaugh
    Member

    Can I change the link for the “Terms and Conditions” page that’s beside the checkbox (in the shopping cart) to open in the same window instead of a new window?

    January 26, 2011 at 10:01 pm #28423
    wzp
    Moderator

    ********** DANGER WILL ROBINSON — RUNNING WITH SCISSORS AHEAD **********

    In the file eStore_misc_functions.php, look for the following line…

    $terms = "<a href="$terms_url" target="_blank"><u>".ESTORE_TERMS_AND_CONDITIONS."</u></a>";

    Once you find it change it to the following:

    $terms = "<a href="$terms_url"><u>".ESTORE_TERMS_AND_CONDITIONS."</u></a>";

    Don’t forget to keep a backup of the original file in case you make a mistake!

    April 15, 2011 at 3:11 pm #28424
    jonnys
    Member

    Is there a way to make the T&C page pop up – as a smaller page – then the buyer can have a look – close – and they’re back on the same page as before.

    That was the one feature I liked about WP eCommerce! Didn’t like much else…

    Regards

    Jonathan

    April 16, 2011 at 12:14 am #28425
    amin007
    Participant

    It is possible to do that with JQuery but what happens is that the more JQuery stuff you use the more chance of conflicts and things not working. In an ideal world there should be no issues with using JQuery but unfortunately not every plugin or theme developer follows the coding guidelines and develop a product properly. This is explained here in more details:

    http://www.tipsandtricks-hq.com/when-themes-go-wild-importance-of-using-a-properly-coded-wordpress-theme-2270

    I have found that most of the features that uses JQuery is the source of “not working something”. So I try to evaluate how much of a real value it adds as opposed to “It would be cool” but it will cause conflict on a lot of sites.

    With that said, if you are a developer I can give you some guidance on how you can add this (I don’t think this will be hard to do). If you are interested open a new thread under the “Tweaks” section and I will follow up.

    June 6, 2011 at 5:34 am #28426
    verity
    Member

    I tried to delete the target blank part and doesn’t work anymore. Instead of launching a new little window, it sends me here:

    http://veritychurchmedia.com/legal/%3E%3Cu%3ETerms%20&%20Conditions%3C/u%3E%3C/a%3E%3C/label%3E%3Cbr%20/%3E%3Clabel%20class=

    Is there a way to get the Terms and Conditions in a little pop-up window right in the same page?

    Thanks.

    June 7, 2011 at 12:45 am #28427
    amin007
    Participant

    That looks likes you messed up the PHP code. Can you please post the line of code that you modified so I can see what you did?

    June 7, 2011 at 1:01 am #28428
    verity
    Member

    original

    $terms = "<a href="$terms_url"><u>".ESTORE_TERMS_AND_CONDITIONS."</u></a>";

    When it errored, I had followed the instructions (removing the ” target=”_blank” ) above and changed it to:

    $terms = "<a><u>".ESTORE_TERMS_AND_CONDITIONS."</u></a>";

    But when that didn’t work, I fugred it might be because one of the quotes was missing. So I tried this:

    $terms = "<a href="$terms_url"><u>".ESTORE_TERMS_AND_CONDITIONS."</u></a>";

    and it worked. Now the Terms and Conditions pops up in a new window. But the window is still very big. I would love for it to pop up in a small floating window. Is there a discussion anywhere on how to do this? Maybe in another thread?

    June 7, 2011 at 2:52 am #28429
    amin007
    Participant

    You made a HTML coding error when you did the modification. The following should make it to where is opens in the same window:

    $terms = "<a href="$terms_url"><u>".ESTORE_TERMS_AND_CONDITIONS."</u></a>";

    August 7, 2011 at 6:32 pm #28430
    robhafley
    Member

    Can’t get this to work for me. No matter what I do to the code the T&C still opens a new tab.

    August 7, 2011 at 11:56 pm #28431
    amin007
    Participant

    Duplicate entry: https://support.tipsandtricks-hq.com/forums/topic/terms-and-conditions-tweak-question

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ