• Resolved fprati

    (@fprati)


    Hello,
    are there hooks available in order to be able to add more elements in the modal view, such as the description or ‘back to shop’ buttons, by any chance?

    Regards

    Franco

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author YITHEMES

    (@yithemes)

    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

    Plugin Author YITHEMES

    (@yithemes)

    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!

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    thanks for your cooperation. We are happy that works now.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding extra information’ is closed to new replies.