Woocommerce snippet problem
-
hello
i really love your theme and i use ever, but currently i have a problem
i use a snippet that make open external link when people click on a product in the shop page
remove_action( ‘woocommerce_before_shop_loop_item’, ‘woocommerce_template_loop_product_link_open’, 10 );
add_action( ‘woocommerce_before_shop_loop_item’, ‘tsa_woocommerce_link_nofollow’, 10 );
function tsa_woocommerce_link_nofollow() {
global $product;
if ( $product->is_type(‘external’) ) {
echo ‘get_product_url() . ‘”>’;
}else{
echo ‘‘;
}
}but whith your theme i have a conflic, that make only open the external link with the boutton and no in a new windows
i have try to unable all woocommerce script but the conflic continue, when i change to other templete wordk perfect the snippet
Do u know what i could do to solve it and use ocean wp??
thank u
- The topic ‘Woocommerce snippet problem’ is closed to new replies.