Buy link Redirecting issue , when click visit Store button in comparison press

  • Majeed
    Newbie 7 points
    August 26, 2016 at 2:43 pm

    > i installed price comparison theme (child theme) , when i got to a single product and click its Visit store button ……”Buy Link” is redirecting to and then to the merchant site. The buy link should contain the merchant Url instead and directly take the visitor to the merchant site.

    for example
    go to site address:
    and then if click visit store and carefully watch address bar > initially …. and then it actually redirects to……

    i want to remove that intermediate part redirecting ….
    i asked one of your collegue ..they said edit code in …framework/class/defaults_comparison.php …
    i edited something like this :
    > went down to the … // AFFILIATE LINK
    $buy_link = get_post_meta($p[‘ID’],’buy_link’, true);
    if($buy_link == “”){ continue; }
    $link = home_url(). “/out/”.$p[‘ID’].”/buy_link/”;
    > then removed … home_url(). “/out/”.$p[‘ID’]. this part but nothing goes well …
    still products redirecting via home url …
    i want directly it redirects to merchant affiliated product site not through my home url
    for your reference i attached a template which contains code…

    Atleast tell me … where , which position i should make changes (editing code) and what should i change

  • Majeed
    Newbie 7 points
    August 27, 2016 at 6:21 pm

    Does Anyone help me out with this issue .. Thank you

  • Chuck
    Newbie 70 points
    January 6, 2017 at 2:53 am

    I know this is an older thread, but for anyone wondering, I just bought the latest version of the theme today (1-5-2017), v8.9.6, and I fixed this problem by simply changing the permalinks settings to the “Post name” /%postname%/ option.

  • Josh
    Super Guru 13,875 points
    January 6, 2017 at 1:17 pm

    Thanks for sharing Carlo 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes