New Landing How can we help? Themeforest Theme Support Uplift Order of Woocommerce single product hooks?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Posted in: Uplift
  • #296820
    adstream
    Member
    Post count: 85

    Hello,

    Where do I change the woocommerce hooks? I want the upsell hook to come before the product meta hook.

    This is the default current order:

    <?php
    /**
    * woocommerce_single_product_summary hook
    *
    * @hooked sf_product_short – 20
    * @hooked woocommerce_template_single_add_to_cart – 30
    * @hooked woocommerce_template_single_meta – 40
    * @hooked sf_product_share – 45
    * @hooked woocommerce_template_single_sharing – 50
    */

    do_action( ‘woocommerce_single_product_summary’ );
    ?>

    ANd it dosent even seem to include the uppsells hook?

    Kind regards,
    Richard

    #297100
    adstream
    Member
    Post count: 85

    No worries, I solved it!

    in functions.php
    remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_meta’, 40 );
    add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_meta’, 90 );

    #297111
    David Martin – Support
    Moderator
    Post count: 20834

    Glad you got it working. Usually changes like this however should be within a child theme.

    – David.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register