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, 3 months ago by amin007.
-
AuthorPosts
-
January 26, 2011 at 8:51 pm #2583sdaughMember
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 #28423wzpModerator********** 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 #28424jonnysMemberIs 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 #28425amin007ParticipantIt 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:
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 #28426verityMemberI tried to delete the target blank part and doesn’t work anymore. Instead of launching a new little window, it sends me here:
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 #28427amin007ParticipantThat 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 #28428verityMemberoriginal
$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 #28429amin007ParticipantYou 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 #28430robhafleyMemberCan’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 #28431amin007Participant -
AuthorPosts
- You must be logged in to reply to this topic.