Re-order Single product details - by finleydesign

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

  • Avatar: finleydesign
    finleydesign
    Participant
    November 15, 2018 at 12:18

    Hi, I am trying to move the small description to underneath the price, qty and add to cart section

    There are hundreds of simple codes online yet none work, I can’t seem to locate what order the theme places on each section, for example if I use this script it does nothing, doesn’t seem to matter what reference I pu on the order nothing changes, so assume the theme has amended this order?

    /**
    * woocommerce_single_product_summary hook
    *
    * @hooked woocommerce_template_single_title – 5
    * @hooked woocommerce_template_single_price – 10
    * @hooked woocommerce_template_single_excerpt – 20
    * @hooked woocommerce_template_single_add_to_cart – 30
    * @hooked woocommerce_template_single_meta – 40
    * @hooked woocommerce_template_single_sharing – 50
    */

    remove_action(‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 30);
    add_action(‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 15);

    2 Answers
    Avatar: finleydesign
    finleydesign
    Participant
    November 15, 2018 at 12:21

    Its ok sussed it, its in the woocommerce/content-single-product.php

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 15, 2018 at 14:22

    Hello,

    I am glad that you sorted out.

    Regards

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

The forum ‘TheLeader Support Forum’ is closed to new topics and replies.

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