• Resolved mukhthar

    (@mukhthar)


    I want to reorder the contents of my checkout page ,now payment option is shown on top ,instead i want to show orders ,payment options and the terms and policy checker.Any solutions??

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author vendidero

    (@vendidero)

    Hi,

    the re-ordering happens due to the so-called button-solution. The german “H?ndlerbund” advised to not show any information between the order product summary and the pay-now-button. If you want to change that order (not recommended), you’ll need to change the hook priorities in:
    https://github.com/vendidero/woocommerce-germanized/blob/master/includes/wc-gzd-template-hooks.php

    via removing the action and adding the action again.

    Cheers

    Thread Starter mukhthar

    (@mukhthar)

    Hi,
    I am using a child theme and trying to remove the priority and hook the new priority .But no luck i cant find any changes
    i have tried this also

    add_filter( 'wc_gzd_frontend_hook_priority', 'my_theme_change_gzd_priorities', 10, 3 );
    
    function my_theme_change_gzd_priorities( $prio, $hook, $class ) {
        if ( 'checkout_payment' === $hook ) {
           $prio = 20;
        } 
        return $prio;
    }

    Is there any other filters available to override the plugin priority
    Thanks in advance

    Plugin Author vendidero

    (@vendidero)

    Hi,

    yes, please remove the action (via remove_action) and add the action again with your priority (via add_action) e.g.:

    add_action( 'init', 'my_child_adjust_gzd_hooks', 100 );
    
    function my_child_adjust_gzd_hooks() {
       remove_action( 'woocommerce_checkout_order_review', 'woocommerce_order_review', 20 );
       remove_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 10 );
    
      add_action( 'woocommerce_checkout_order_review', 'woocommerce_order_review', 10 );
      add_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 20 );
    }

    Cheers

    • This reply was modified 6 years, 9 months ago by vendidero.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Checkout page re order’ is closed to new replies.