Problems with plugin and woocommerce 3.0
-
Hello,
First of all, thank you for your plugin. I use it for a long time and it works very well.
After the update of woocommerce 3.0 I got some trouble with the plugin.
I used the following code to get the subtitle below the product title and also in my cart and on the checkout page after the product title.function kia_add_subtitle_to_woocommerce(){
if( function_exists( ‘the_subtitle’ ) ) the_subtitle( ‘<h6 class=”subtitle”>’, ‘</h6>’ );
}
add_action( ‘woocommerce_single_product_summary’, ‘kia_add_subtitle_to_woocommerce’, 7 );function kia_subtitle_for_woocommerce_products( $title, $product ){
if( function_exists( ‘get_the_subtitle’ ) && $subtitle = get_the_subtitle( $product->id ) ){
$title .= ‘ | ‘ . $subtitle;
}
return $title;
}
add_filter( ‘woocommerce_product_title’, ‘kia_subtitle_for_woocommerce_products’, 10, 2 );After the update of woocommerce the subtitle isn’t shown at the cart and checkout page.
Are there more people with this problem?I think the ‘woocommerce_product_title’ doens’t exists anymore….
- The topic ‘Problems with plugin and woocommerce 3.0’ is closed to new replies.