Support » Plugin: WooCommerce » reorder short descriptin

  • Resolved abdull85

    (@abdull85)


    Hello there,,

    I am trying to reorder shortdescriptin of single product page but i can not find the right code or snipet

    I tried at first this

    remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20 );
    add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 30 );

    but then the short description was duplicated which means it did not remove the first order
    then i tried this but the both short description is deleted

    remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20 );
    function woocommerce_template_single_excerpt() {
    return;
    }
    add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 30 );

    Please I need help to reorder the short description of single product page

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Stuart Duff

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @abdull85,

    Using this code below I was able to re-order the short description text and have that display below the Add To Cart button.

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 30 );

    Image Link: https://cloudup.com/cgGwpmQCDAy

    If this is not working for you it could be your theme is overriding the WooCommerce template files causing the code not to work along with doubling up the Short Description.

    If you visit WooCommerce > Status > Templates you will be able to see if the theme is overriding any WooCommerce template files.

    I just checked and seen this

    oceanwp/woocommerce/cart/mini-cart.php,
    oceanwp/woocommerce/content-single-product.php,
    error_log,
    oceanwp/woocommerce/loop/loop-start.php,
    oceanwp/woocommerce/single-product/title.php

    but how do i fix it ?

    any idea ?

    Plugin Support Stuart Duff

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @abdull85,

    For files that have been overwritten within a theme, you may need to use different code to the default WooCommerce plugin uses.

    For assistance with third party themes like OceanWP you should reach out to the developers of that product and they should be happy to offer guidance for you.

    https://oceanwp.org/support/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘reorder short descriptin’ is closed to new replies.