Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
Majeed Jamakhani
0 points
Beginner
> 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 Foodykart.com and then to the merchant site. The buy link should contain the merchant Url instead and directly take the visitor to the merchant site.
i want to remove that intermediate part redirecting https://foodykart.com/out/5981/buy_link ….
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
> 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 Foodykart.com 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: https://foodykart.com/listing/sunflower-seeds-inshell/
and then if click visit store and carefully watch address bar > initially https://foodykart.com/out/5981/buy_link …. and then it actually redirects to… https://www.thespicemarket.in/buy-pine-nuts-online…
i want to remove that intermediate part redirecting https://foodykart.com/out/5981/buy_link ….
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
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now