Feature Suggestion – Add new action to allow us to hook into after the product image gallery

This topic has 3 replies, 2 voices, and was last updated 9 months, 2 weeks ago ago by Rose Tyler

  • Avatar: bluehiveinteractive
    BHI
    Participant
    July 13, 2023 at 02:42

    Right now there is no way within Xstore to hook into the theme to add content after the product image gallery. The default woocommerce hook of woocommerce_product_thumbnails does not work. It would be great if we could have a new action to be able to add content right after the thumbnails.

    I realize we can edit the file wp-content/themes/xstore/woocommerce/single-product/product-image.php and register our own action, but that if flawed since it would be overwritten with every Xstore update. Alternatively we could copy the file to our child theme, but again, we would be faced with having to monitor the core file for updates and update our child theme – also not ideal. If you could simply add a new action to this file for the next release, that would be amazing!

    2 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 13, 2023 at 08:48

    Hello, BHI,

    Thank you for contacting us and for using XStore!

    Please post your request here – https://www.8theme.com/taskboard/ , then our dev team will read it.

    If you have any additional questions or concerns, please do not hesitate to reach out to us. Our support team is always available to assist you.

    Kind Regards,
    8theme team

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 14, 2023 at 07:10

    Hello, BHI,

    As a workaround, you can use the next hook

    add_action( 'woocommerce_before_single_product_summary', 'my_custom_function_name', 21 );
    because WooCommerce uses next action to add product images gallery
    add_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );

    Otherwise, you can contact our partners that provide high-quality customization services → https://codeable.io/?ref=qGTdX

    Kind Regards,
    8theme team

  • Viewing 3 results - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.