Hi Franco,
you can use the hook ‘yith_wcqv_product_summary’ with different priority to show your additional information.
We do it in the method ‘yith_quick_view_action_template’ of the class ‘YITH_WCQV_Frontend’
// Image
add_action( 'yith_wcqv_product_image', 'woocommerce_show_product_sale_flash', 10 );
add_action( 'yith_wcqv_product_image', 'woocommerce_show_product_images', 20 );
// Summary
add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_title', 5 );
add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_rating', 10 );
add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_price', 15 );
add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_excerpt', 20 );
add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_add_to_cart', 25 );
add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_meta', 30 );
I hope to be helpful for you.
-
This reply was modified 6 years, 8 months ago by
YITHEMES.
Thread Starter
fprati
(@fprati)
Hi,
thank you for that. I tried the add_action( ‘yith_wcqv_product_summary’, ‘woocommerce_template_single_excerpt’, 20 );
and it adds the summary excerpt under the price, which is fine. But how do I add the full description (not the summary) below the quantity and add-to-cart button, please?
Best regards
Franco
Hi Franco,
But how do I add the full description (not the summary) below the quantity and add-to-cart button, please?
you can achieve this goal by adding the following code snippet to your theme functions.php
remove_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_excerpt', 20 );
add_action( 'yith_wcqv_product_summary', 'the_content', 27 );
Please try this solution and let us know if everything works fine!
Thread Starter
fprati
(@fprati)
Great, it works, thanks a lot!
Hi there,
thanks for your cooperation. We are happy that works now.