Need to open the coupon_link in new window instead of same window

  • Praveen
    Praveen
    Senior Member 216 points
    July 25, 2013 at 7:31 pm

    Hi,

    I need to know where to add target=’_blank’ in class_coupon_defaults.css file.

    So that when a coupon code is clicked it should open a pop-up and the merchants link should open in new window rather than in the same link.

  • Praveen
    Praveen
    Senior Member 216 points
    July 25, 2013 at 7:32 pm

    Typo its code_link

  • Praveen
    Praveen
    Senior Member 216 points
    August 14, 2013 at 9:45 pm

    Mark, hope you are the only one who can guide us on this.

  • zhiwei
    zhiwei
    Newbie 5 points
    August 15, 2013 at 12:16 am

    I had the same problem, please help.

  • Mark Fail
    Mark Fail
    Super Guru 13,013 points
    August 15, 2013 at 2:35 am

    so you want the affiliate link and coupon link to open in separate windows..? fell for your visitors as they wont know whats going on.

  • Praveen
    Praveen
    Senior Member 216 points
    August 15, 2013 at 8:54 am

    Affiliate link should open in new tab, same as rmn.

  • Praveen
    Praveen
    Senior Member 216 points
    August 15, 2013 at 8:55 am

    Let the popup be same as now…only the affiliate link should open in new tab.

  • Mark Fail
    Mark Fail
    Super Guru 13,013 points
    August 15, 2013 at 10:59 am

    Praveen, ill let you customize it for that, seems odd to me having so many windows for 1 click.

  • YAEL
    YAEL
    Newbie 18 points
    August 15, 2013 at 12:07 pm

    Hello

    Same problem, how to do )

  • Praveen
    Praveen
    Senior Member 216 points
    August 15, 2013 at 12:38 pm

    Ok thanks Mark 🙂

  • Mark Fail
    Mark Fail
    Super Guru 13,013 points
    August 15, 2013 at 2:23 pm

    you’ll need to edit the core code, its not something i wish to add into the base framework as too many pop-ups is almost spam and will just end up casuing more harm than good.

    the button link is found in the file;

    framework/class/class_coupons.php

  • Praveen
    Praveen
    Senior Member 216 points
    August 15, 2013 at 6:16 pm
  • Praveen
    Praveen
    Senior Member 216 points
    August 16, 2013 at 6:03 pm

    Mark, your help please!

  • Pradeep
    Pradeep
    Newbie 6 points
    August 31, 2013 at 4:09 pm

    Hey Praveen,Did you sort this out?

  • Pradeep
    Pradeep
    Newbie 6 points
    August 31, 2013 at 4:57 pm

    Hi Mark,
    whats the best way to edit the code so merchants website will open in a new tab?

Viewing 15 posts - 1 through 15 (of 59 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes