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 a Product Image link in a new tab when one clicks on it

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › How to open a Product Image link in a new tab when one clicks on it

Tagged: eStore_button_display_helper.php, Product Image link

  • This topic has 5 replies, 2 voices, and was last updated 13 years ago by interlinkusa1.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • April 30, 2012 at 1:13 pm #6204
    interlinkusa1
    Member

    I have the three plugins. eMember, eStore and eAffiliate. I have different sales pages. On eStore I have the product images. When one clicks on the image – sales page opens in the same tab. How can I have the sales/product page open in a separate tab.

    I saw an answer in the forum which may apply to my question. This is what it says:

    To open a new browser window you simply have to add target=”_blank” attribute to a link.

    Open the “eStore_misc_functions.php” file and look for the line of code….

    If this is the right answer for my question then “Where and how do I find eStore_misc_functions.php file”.

    So many times I see some answers where it says do this or that without really telling how to get to that point. As a total beginner to this plugin it will be very much appreciated if the answer also tells as to how to even get to the starting point.

    Thanks for you help.

    May 1, 2012 at 3:43 am #44606
    admin
    Keymaster

    If you tell me which fancy display you are using then I will be able to tell you more specific instruction.

    May 2, 2012 at 12:06 am #44607
    interlinkusa1
    Member

    Thank you for your reply. I am using [wp_eStore_fancy2 id=1].

    URL is [https://emoveon.com/premium-content/]

    If I need to use a different code then please let me know.

    May 2, 2012 at 7:46 am #44608
    admin
    Keymaster

    Open the “eStore_button_display_helper.php” file and look for the following line of code:

    $output .= '<div class="eStore-thumbnail"><a href="'.$ret_product->target_thumb_url.'" title="'.$ret_product->name.'"><img class="'.$thumb_class.'" src="'.$thumb_img.'" alt="'.$ret_product->name.'" /></a></div>';

    Once you find it, change it to the following:

    $output .= '<div class="eStore-thumbnail"><a href="'.$ret_product->target_thumb_url.'" title="'.$ret_product->name.'" target="_blank"><img class="'.$thumb_class.'" src="'.$thumb_img.'" alt="'.$ret_product->name.'" /></a></div>';

    That should make the thumbnail open the target URL in a new tab/window.

    May 2, 2012 at 1:45 pm #44609
    interlinkusa1
    Member

    Thank you for your reply. You said:

    “Open the “eStore_button_display_helper.php” file and look for the following line of code”

    Here’s a beginner question. How do I get to “eStore_button_display_helper.php” file?

    I looked in eStore Settings, Admin Functions and also went over each tab but could not figure out how to access “eStore_button_display_helper.php” file.

    May 2, 2012 at 9:48 pm #44610
    interlinkusa1
    Member

    Hey…. what do you know I figured it out and followed your instructions and it worked. Thanks. You don’t need to reply. The image is now opening in a new tab.

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