WPIntell

Source evidence

Custom Button Call

Cloak Affiliate Links for WooCommerce · support · 2020-11-21T20:48:00+00:00

mixedsentiment
mediumseverity
0.84relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 25 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
shenom resolved
Hi. Is it possible to call the cloaked URL on a custom button we made – or what is the exact phrase? For example : The external URL field in a Woo product is called by ‘_product_url’. Best / Sascha Sorry for the late reply… You’ll need to use the get_product_url() method in order to get the cloaked URL for an external WooCommerce product. Something like this: $product->get_product_url(); Hope this helps! Now – I´m late as well. 🙂 Thank You for Your help! This would be one way. An other to help out… Would You consider to implement a small extra feature that let the user choose to open these external links in a new tab? I don´t now why Woo don´t listen and implement this feature years ago. Also – it would safe us from installing another plugin. What – in my case – didn´t work. I´ve also tried some PHP codes – that don´t work as well. I´ve seen a lot of affiliate / cloaking plugins that have this feature. It´s the right place for it! 🙂 Try this code: https://datafeedrapi.helpscoutdocs.com/article/166-open-buy-now-links-in-new-window In our special setup that code don´t seem to work. We´ll manage this otherwise. Thx!

Comments

4 shown
datafeedr 2020-11-23T21:11:00+00:00

Sorry for the late reply… You’ll need to use the get_product_url() method in order to get the cloaked URL for an external WooCommerce product. Something like this: $product->get_product_url(); Hope this helps!

shenom 2020-12-08T16:52:00+00:00

Now – I´m late as well. 🙂 Thank You for Your help! This would be one way. An other to help out… Would You consider to implement a small extra feature that let the user choose to open these external links in a new tab? I don´t now why Woo don´t listen and implement this feature years ago. Also – it would safe us from installing another plugin. What – in my case – didn´t work. I´ve also tried some PHP codes – that don´t work as well. I´ve seen a lot of affiliate / cloaking plugins that have this feature. It´s the right place for it! 🙂

datafeedr 2020-12-08T16:54:00+00:00

Try this code: https://datafeedrapi.helpscoutdocs.com/article/166-open-buy-now-links-in-new-window

shenom 2020-12-10T12:00:00+00:00

In our special setup that code don´t seem to work. We´ll manage this otherwise. Thx!