order_review query
-
Hi There,
I am trying to move the payment methods ouside the order review div however as you can imagine this is making it work incorrectly as I am trying to apply Surcharges dependant on a gateway selected.
I have replicated the same div id on the page and it seems to work but obviously duplicate IDs is not the best practice. Is there any way I can tell the same action to initialize via a different id or class?
I have Payment Methods :-
<div class="col2-set nine columns main" id="customer_details"> <div id="order_review" class="woocommerce-checkout-review-order seven columns main"> <?php do_action( 'custom_woo_payment' ); ?> </div> </div>
And after We generate the order review :-
<div id="order_review" class="woocommerce-checkout-review-order seven columns main"> <h4 id="order_review_heading"><?php _e( 'Order Summary', 'woocommerce' ); ?></h4> <?php do_action( 'woocommerce_checkout_order_review' ); ?> </div>
Any help on how to achieve this would be appreciated, to be honest if it were a class instead of an ID then would that not fix the issue? However I assume this would mean editing the core
Cheers
J
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘order_review query’ is closed to new replies.