• Resolved belvedere312

    (@belvedere312)


    Hello,

    I am currently trying to set up an affiliate store thru woo commerce but I ran into a strange issue with the “buy product” link. The affiliate link is a search query for a certain style of sneakers. For the example link provided , as it is the link pulls up over 22 000 results on eBay. When clicked via the “buy product” button the link brings up about 6600 results. In the example page I provided I inserted the same link in 2 places . Once in the short description for the words “authenticity guarantee” and second in the “buy product” spot. When clicked the 2 links pull the different search queries as described above. I tried with and without a price set on the woo commerce product page , same thing happen. It looks like for some reason the “buy product” link brings back less results witch is not what I want. Any ideas on why this is happening and how it can be fixed?
    Thanks

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Niall a11n

    (@wpniall)

    Hi there!

    Thanks for reaching out to us, I’m happy to help you!

    Hmm, it sounds like you might be using a plugin to handle the affiliate links, as “Once in the short description for the words “authenticity guarantee” and second in the “buy product” spot” don’t sound like default WooCommerce features.

    Could you please let us know if you’re using an affiliate plugin?

    If not, could you please provide us with a screenshot so that we can see what you are describing? It’d be great if you could share a screenshot of the Edit product page for the https://www.soleracks.com/product/air-jordan-4-retro/ specifically, so we can take a closer look at how that’s set up.

    If you don’t already have a screenshot service installed, here are a few free options, I recommend using https://snipboard.io.

    There is also a walkthrough guide here: https://en.support.wordpress.com/make-a-screenshot/

    Thank you!

    Thread Starter belvedere312

    (@belvedere312)

    Hello,

    Thank you for your response. No, I am not using any affiliate plugin. I attached a picture of the edit page for this product. I simply added the same link from the buy now button to the SHORT description text as a text , to see if it pulls the same results, which is not. For some reason , the “buy product” version of the link pulls fewer results – it seems like it adds somehow a “+” between the search terms on eBay. It is the BUY PRODUCT” in woo commerce that changes the search terms somehow. It’s not a theme issue, I deactivated my Avada theme and change it to twenty fifteen and the issue stayed the same. I deactivated all plugins except the woo commerce and the issue stays the same. In the screenshot provided the link inserted in the “buy product” field is the same with the link for the “Authenticity Guarantee” (AGAIN – IS THERE FOR TESTING PURPOSES to see if it also pulls the same # of results on eBay)

    See screenshot here : https://ibb.co/vsjnqhL

    Thread Starter belvedere312

    (@belvedere312)

    For sole reason ONLY when clicked thru the “Buy Product” button the results on eBay are pulled for “air+jordan+4+retro+” instead of just “air jordan 4 retro” which is the reason why fewer results are pulled.

    Hi @belvedere312. Thanks for the additional information. I was able to see the same behavior on my test site. It looks like the + sign is converted to %2B when the link is accessed from the “Buy Product” button. This is then converted back to a + sign in the search field on eBay instead of a space.

    This conversion happens in URLs to be able to include characters that normally wouldn’t be there (like spaces), or to make it so characters that normally have a special significance in URLs (like the / character) can be included in a URL as just text, with no special significance. It seems that the Buy Product button “URL-ifies” certain characters in links.

    Now that we’re aware of this, you can take advantage of it. The + is originally added as a stand-in for a space, so you can just replace the + signs with spaces. Once you do, they will be converted to %20, which is the URL code for the space character. This will then be converted back to a space in the actual eBay search itself, leading to the proper number of search results.

    Feel free to open a GitHub issue here with our developers if you think this should work differently. I’m not entirely clear if this is intended functionality or not.

    Thread Starter belvedere312

    (@belvedere312)

    Thanks a bunch , that did the trick! It’s all good now.

    Plugin Support Sunday Ukafia (a11n)

    (@sukafia)

    I’m glad to hear that worked – thanks for letting us know!

    I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Woo Commerce External Links issue’ is closed to new replies.