Action etheme_product_single_product_description don’t work

This topic has 7 replies, 3 voices, and was last updated 2 weeks, 6 days ago ago by Tony Rodriguez

  • Avatar: Akmal
    Akmal
    Participant
    January 8, 2026 at 14:46

    Hello, I have created my own single product page template using XStore Builders and now I want to use woocommerce_single_product_summary action. As I understand it’s don’t work and I need to use etheme_product_single_product_description.

    Now I use:

    add_action( ‘etheme_product_single_product_description’, ‘my_short_desc’, 16);
    function my_short_desc(){
    global $product;
    $color = $product->get_attribute(‘color’);
    $length = $product->get_attribute(‘length’);
    $season = $product->get_attribute(‘sezonnost’);

    echo ‘

    ‘;

    if (!empty($color)) {
    echo “$color“;
    }

    if (!empty($season)) {
    echo “$season“;
    }

    if (!empty($length)) {
    echo “$length“;
    }

    echo ‘

    ‘;

    But nothing happen…

    6 Answers
    Avatar: Akmal
    Akmal
    Participant
    January 8, 2026 at 15:33

    I have tryed to use this: https://github.com/elementor/elementor/issues/5574

    add_shortcode( 'do_hook', function( $atts = array(), $content = null, $tag = ''){
    	if ( isset( $atts['hook'] ) ) {
    		do_action( $hook );
    	}
    	return;
    });

    and then use

    [do_hook hook="woocommerce_single_product_summary"]

    but it still not working

    Avatar: Akmal
    Akmal
    Participant
    January 8, 2026 at 16:10

    I even tried to use the example from your article https://www.8theme.com/documentation/xstore/additional-customisation/single-product-builder-hooks/ and add code to my child-theme/functions.php

    add_action('etheme_woocommerce_template_single_title', function() {

    	global $product;

    	echo $product->get_id();

    });

    But it isn’t work…

    Avatar: Akmal
    Akmal
    Participant
    January 9, 2026 at 06:09

    I can give you admin access. Please help me

    Please contact administrator
    for this information.
    Avatar: Samir Malik
    Samir Malik
    Support staff
    January 9, 2026 at 07:26

    Hello,

    We have corrected the custom code for you: https://prnt.sc/WL0cPzEdN2Tw.

    Could you please review the code and check the changes again?

    Best regards,
    The 8Theme Team

    Avatar: Akmal
    Akmal
    Participant
    January 9, 2026 at 07:34

    Thanks for the support! My topic “Action etheme_product_single_product_description don’t work” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    January 9, 2026 at 07:34

    Dear Akmal,

    It’s great having you in our WordPress & WooCommerce community!

    Every insight you share helps us refine XStore and build tools that empower thousands of online store owners worldwide.

    Together, we grow stronger with every release.

    Topic closed.
    The 8Theme Team

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

The issue related to '‘Action etheme_product_single_product_description don’t work’' has been successfully resolved, and the topic is now closed for further responses

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