Home Forums WoodMart support forum Change position / priority for linked variations

Change position / priority for linked variations

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #716918

    metuza
    Participant

    Hello,

    Is it possible to change priority for the linked variation swatches OR quantity discount table in single products? For now the linked variations swatches is positioned above the quantity discount table.

    Brgds
    Rune

    #716925

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Try to use the Theme’s Layout Builder, you can create Custom Layouts for WooCommerce pages like the Single Product page. You can use that to create your own custom layouts for a single product page and rearrange the elements in the layout.

    Further, you can read more about the Layout Builder here: https://xtemos.com/docs-topic/woodmart-woocommerce-layout-builder/

    Best Regards

    #717005

    metuza
    Participant

    Hello,

    Thank you, but a lot easier if you can provide a way to access this action:
    add_action( ‘woocommerce_single_product_summary’, array( $this, ‘render_dynamic_discounts_table’ ), 25 );
    I need to change priority to 24

    Brgds
    Rune

    #717006

    metuza
    Participant

    Problem solved using below function:

    // Change position / priority for quantity discount table
    add_action( 'init', function() {
        remove_action( 'woocommerce_single_product_summary', [ XTS\Modules\Dynamic_Discounts\Frontend::get_instance(), 'render_dynamic_discounts_table' ], 25 );
        add_action( 'woocommerce_single_product_summary', [ XTS\Modules\Dynamic_Discounts\Frontend::get_instance(), 'render_dynamic_discounts_table' ], 24 );
    }, 10);

    Brgds
    Rune

    #717024

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    You are Most Welcome.

    We are glad that you managed to solve the problem yourself. You are Great!!!

    Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.

    Have a wonderful day.

    Topic Closed.
    Best Regards.

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

The topic ‘Change position / priority for linked variations’ is closed to new replies.