- This topic has 22 replies, 3 voices, and was last updated 7 years, 6 months ago by
Tom.
-
AuthorPosts
-
September 27, 2018 at 9:05 pm #688241
robchanoi
hi,
Just wondering why u cannot 301 redirect in “product” page affiliate url in WC?
All links must be external?
Tks.
September 28, 2018 at 8:54 am #688676David
StaffCustomer SupportHi there,
so can you explain a little more? Do you want that product to redirect to the affiliate link?
If so the best way is to set the product up as an External Product.October 1, 2018 at 8:05 pm #691183robchanoi
External product is listed as external/affiliate product under product data beneath the wp editor. It doesn’t allow you to set up a redirecting internal link to an external affiliate link, any ideas?
Thanks.October 1, 2018 at 8:11 pm #691193robchanoi
Clicking the button if saved as an internal redirect will not take you to the affiliate link, takes you no where in fact. Only external link works as stated in Wp editor.
October 2, 2018 at 2:59 am #691347David
StaffCustomer SupportOctober 2, 2018 at 7:54 pm #692038robchanoi
Looks like it could be useful, thanks. Please allow a while to wrap my brain round.
October 3, 2018 at 1:19 am #692162David
StaffCustomer SupportOK – if you figure it out let me know 🙂
October 7, 2018 at 8:44 pm #695760robchanoi
I have tried placing rel=”nofollow” in /woocommerce/includes/wc-template-functions.php like this:
function woocommerce_template_loop_product_link_open() { echo '<a href="' . get_the_permalink() . '" rel="nofollow">'; }No joy.
Currently still having to use affiliate urls in here:
October 8, 2018 at 10:37 am #696401Tom
Lead DeveloperLead DeveloperI’m not sure I understand. You want to redirect to an external link when someone visits one of your products?
Couldn’t you just set up the 301 redirect inside your .htaccess file? Or use a redirection plugin?
October 8, 2018 at 4:51 pm #696654robchanoi
No. They are Not my products, these are affiliate products, I don’t own them, I just refer people to them.
I’m using a 301 plugin which works/worked fine except with with this gp/wc product page.
It doesn’t redirect to the affiliate site, or open in a new tab. The page just refreshes.
October 8, 2018 at 6:48 pm #696702Tom
Lead DeveloperLead DeveloperAny chance you can link me to the page where I would click the button to be taken to the affiliate site?
October 21, 2018 at 12:59 am #706240robchanoi
Hi, apologies for delay – I’ve swapped over the aff url for now back to a 301 redirect on this page:
the 301 url is http://menspleasures.com/kiiroo-onyx which redirects but not when placed in the Product Url box.
October 21, 2018 at 9:25 am #706560Tom
Lead DeveloperLead DeveloperSo the
http://menspleasures.com/kiiroo-onyxredirect to the affiliate works fine when added to the browser.For some reason, the actual Visit Product button is just refreshing the page.
Have you asked WooCommerce about this?
October 21, 2018 at 9:03 pm #706860robchanoi
Yes, that’s exactly what I’ve been attempting to explain 🙂
Not yet no as I believe I didn’t have an issue with previous theme.
October 22, 2018 at 11:27 am #707510Tom
Lead DeveloperLead DeveloperThe theme itself shouldn’t have any control over redirects.
What happens if you temporarily switch to one of the Twenty-x themes? The issue goes away?
-
AuthorPosts
- You must be logged in to reply to this topic.