the problem is that the YITH Wishlist plugin does not display the *”BUY AT AMAZON” button for affiliate products. You would know how to program it. Well thank you.
*(For an affiliate product, the name can be anything, it is set individually during import or on the product card).
]]>I am preparing an affiliate website using the Flatsome template. Since Flatsome uses this extension, I need to solve one big problem.
When I add the product to the Wishlist, the BUY NOW button is missing, which would redirect (“target=_blank”) the customer to the partner store.
Is there a possibility to display a BUY NOW button for an external/affiliate product? With code?
Thank you in advance for your help.
]]>What is happening is that when clicking on the product image or title you are redirected to the single product page, but when clicking the button you are redirected to the external page (which is what I need).
I saw some threads here with the same problem but no solution.
Some of them suggest putting this code (code below) to redirect to the external page when clicking on the product.
<?php // Do not include this if already open!
/**
* Code goes in theme functions.php.
*/
add_action( 'template_redirect', 'redirect_external_products' );
function redirect_external_products() {
global $post;
if ( is_singular( 'product' ) && ! empty( $post ) && ( $product = wc_get_product( $post ) ) && $product->is_type( 'external' ) ) {
wp_redirect( $product->get_product_url() );
exit;
}
}
But for SEO reasons, I don’t want to lose the store’s single product page and with this code, when you click on the link, eg: site/products/yourproduct it redirects you to the external link.
So what I need is basically to point the external product lik on the product page instead of redirecting it.
I don’t know how Woocommerce hasn’t made this modification yet or put an option for it, because the send button for a link and the image send for another one doesn’t make sense.
]]>The add to cart button when clicked connects to the correct destination, however, the button should read what is specified in the product setup and not display “Add to Cart”. Also, the price is displaying as “free” when it is not as there is no price listed in the product setup due to the contractual requirements of the affiliate agreement.
* Is there a way of getting the affiliate products to display correct information in the Wishlist?
* Is there a way of filtering out / preventing affiliate products from being added to the Wishlist?
How can this be resolved?
Many thanks in advance for your assistance.
]]>This is the link in the product feed:
https://clk.tradedoubler.com/click?a(3261955)p(326304)product(44236-331023)ttid(3)url(https://www.d-reizen.nl/vakantie/jamaica/westkant/negril/hotel-legends-beach?reisduurdagen=9&view=prices)=
But when I go to the website it becomes
https://clk.tradedoubler.com/click?a%283261955%29p%28326304%29product%2844236-331023%29ttid%283%29url%28https%3A%2F%2Fwww.d-reizen.nl%2Fvakantie%2Fjamaica%2Fwestkant%2Fnegril%2Fhotel-legends-beach%3Freisduurdagen%3D9%26view%3Dprices%29=
Which is a link that is not working – the decoded link is correct in the product URL in the import.
Does someone know how I can do to avoid the url encoding after the form submit to make those affiliate urls working?
]]>I have added the Blocksy PRO affiliate product to my WooCommerce store.
In the product settings, in the General tab, in the Product URL field, I have pasted the affiliate link. So far, everything is understandable.
But what should I do with the Regular price field?
There is no point in entering a price here:
First, Blocksy PRO prices can fluctuate and I would have to check them often.
Secondly, in fact, the affiliate link redirects the user to a page where he has to choose one of several available options: lifetime purchase or annual payments. Additionally, they can buy a personal, professional or agency package.
So should I leave the price field blank and enter prices in the product description?
Or maybe we don’t provide a prices for affiliate products (?). The user simply finds out about them after clicking the Buy now button.
regards,
Grzegorz
Question 1
Very often such products have a few options. For example, Blocksy Pro plugin has three prices: for Personal, Professional and Agency use. But in WooCommerce we can give only one of them. Probably the best way is to use the lowest price? Am I right?
Question 2
What should we do if our site is multilingual? For example, my site is Polish-English. I think it does not make sense to give it in the Polish currency as we would have to calculate it. Maybe a better approach is to give it in dollars. But I do not know how to change the currency only for selected products.
ragrds,
Grzegorz
My homepage display external/affliate products. When a user click on a external/affliate product, I want them to go directly to external/affliate product URL (instead of going to product permalink and they need to click a button linking to the external product or external/affliate product URL).
Thanks for your help
]]>