I am having an issue with the Cpop window. After the popup window loads and the code is shown the tab where I clicked on the “Get Code” button that has my site loaded goes to the website for the coupon. I would like to load the coupon website in a new tab (i.e. “_blank” or “_new”) and ensure that my website is still loaded on a tab.
Popup windows are popups and don’t open in new tabs.
Thanks for that response, however, my issue is more with the original site window versus the coupon popup window. The coupon popup window works correctly. It is the window where the user clicked (my website) the “get code” button that I would like to alter. The coupon link is currently loading in the same tab as my site but I would like the coupon link to open in a new tab or window. That way the website user will have the coupon link site on one tab and my site will still remain open on another tab. I hope that make sense.
I would like the ultimate result to happen like this:
Tab 1 – My website (couponbum.com) with coupons listed. User will click the “get code” button on this site. This tab should remain open and no site loaded over it.
Once user clicks “get code” button – Popup window will open displaying coupon code
Tab 2 (New tab that loads) – opens link to other website that has the deal/sale that my coupon was advertising
Original Tab 1 remains on my website but user can now browse on Tab 2 to shop and use the coupon code. Popup window is completely independent from those two tabs.
Are you done with this ?
No. I have still not been able to solve this problem. You can view code at http://www.couponbum.com.
Any help would be appreciated. Thanks.
Hey check out my website , If your describing the same , then let me know …
But some browser blocks your cpop window/tab by default and the links opens in new window.
Thus, few visitors may find it difficult to get coupon code. As coupons are not visible even after clicking the button, if browser block the cpop window/tab.
You can activate the coupon code visible afetr clicking and cpop window/tab both. This will make sense.
I am checking on chrome, it blocks your popup by default.
Yeah popup gets blocked most of the time.. Isnt it better to open in new tab? Atleast we could get more visibility plus a new whole window for us where we could add email sign up and many other elements using HTML
What you have coded, to open it in new tab or in new window ?
@rahuljain the way your site (https://www.thecoupondeals.in) is just the functionality that I am looking for.
Only difference for me would be that the coupon code window (cpop) opens up in a smaller popup window but your code is still very good. How are you able to get the coupon link site to open in a new tab? Mine will just load in the same tab that my site was on.
Just to add a target=”_blank” to the link anchor in CP/framework/class/defaul_coupon.php
Instead of making a cpop window, you can make a light box/modal pop up. As sometimes pop-up windows are blocked by browser.
@Eric : what’s your website ?
Start your new website today!