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

Hey Amin, here's a geeky question for you…

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Hey Amin, here's a geeky question for you…

  • This topic has 2 replies, 2 voices, and was last updated 14 years, 4 months ago by Frank.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 27, 2011 at 1:23 am #2823
    Frank
    Member

    I’d like to insert the following code on my sales page for my site that you’ll find here: http://www.warriorforum.com/programming-talk/275734-unblockable-exit-url-redirector-script.html

    and it’s basically a redirector is someone tries to leave the page. Now, I’d like to be able to set the ‘exit’ value to false if they click the buy now button. Any idea on a fast way to accomplish this?

    Cheers!

    Frank

    February 27, 2011 at 3:38 am #29596
    amin007
    Participant

    There is an “onsubmit” parameter in the form for the buy now button. It calls a function called “ReadForm1” which is stored in the “lib/eStore_read_form.js” file. You can add in that exit value in that function.

    The best way to do this would be to use JQuery. Using plain javascript to control the action of a button which is already doing other stuff is not very clean.

    I don’t understand why you would want to hook that script to the buy now button though? Do you simply want to redirect the user to a URL when they click the button?

    March 1, 2011 at 12:23 am #29597
    Frank
    Member

    No, I want to make it so if they try to click away from the sales page, it will open a second page with more information. But if they click the BUY button, I don’t want this activated of course.

    Frank

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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