Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Product images are not displayed › Reply To: Product images are not displayed
Thanks for help. I still have one more question.
I use external links on the website and the code is used by the visitor to click on an external page directly from the catalog.
For example: https://www.bedy.sk/elektro/kategoria-produktu/inteligentne-hodinky/
However, when I search within multisite, external links stop working and replace them with links to products on the web.
As for products from the same blog, it works.
However, if the product is from another blog, an original link to my site will appear.
For example, when I search from the main page, all external product links are replaced with internal ones.
https://www.bedy.sk/?s=xiaomi&post_type=product
I’m not sure if I explained it correctly. However, I’m sending code that ensures that the user gets to an external page when they click on the product.
echo apply_filters( ‘kapee_template_loop_product_thumbnail’, $html );
}
function woocommerce_template_loop_product_title() {
if( ! kapee_get_loop_prop( ‘products-title’) ) return;
global $product;
$link = apply_filters( ‘woocommerce_loop_product_link’, get_the_permalink(), $product );
$target = ‘_self’;
if( kapee_get_option( ‘open-product-page-new-tab’, 0 ) ){
$target = ‘_blank’;
}
if( $product->is_type( ‘external’ ) ) {
$target = ‘_blank’;
$link = apply_filters( ‘woocommerce_loop_product_link’, $product->get_product_url(), $product );
}
echo ‘<h3 class=”product-title”>‘ . get_the_title() . ‘</h3>’;
}