Title: order_review query
Last modified: August 31, 2016

---

# order_review query

 *  Resolved [Jamie Gill](https://wordpress.org/support/users/patchgill/)
 * (@patchgill)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/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
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/order_review-query/#post-7422202)
 * Are you using the fees API? Can they not be applied via the ajax events so WC
   core handles the output?
 *  Thread Starter [Jamie Gill](https://wordpress.org/support/users/patchgill/)
 * (@patchgill)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/order_review-query/#post-7422232)
 * Hi Mike,
 * No I used this plugin :-
 * [https://github.com/sunnyluthra/woocommerce-add-charges-to-payment-gateways/blob/master/woocommerce-add-extra-charges-option-to-payment-gateways.php](https://github.com/sunnyluthra/woocommerce-add-charges-to-payment-gateways/blob/master/woocommerce-add-extra-charges-option-to-payment-gateways.php)
 * Then added a 2% charge to anyone checking out with Worldpay assumed this was 
   the best way which maybe not.
 * However the plugin doesn’t work if the payment options are not inside a div containing
   the id ‘order_review’.
 * If theres a better way please point me in the right direction I would rather 
   write something myself if I can to apply 2% based on payment method.
 * cheers
    J
 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/order_review-query/#post-7422238)
 * I took a look in the source and [https://www.woothemes.com/products/payment-gateway-based-fees/](https://www.woothemes.com/products/payment-gateway-based-fees/)
   does also. So you may need to write code to handle the events if you’re messing
   with the default payment gateway positioning.
 * We only support WooCommerce core on this forum. We’re not allowed to support 
   premium plugins and themes on this forum as per the forum guidelines.
 * [https://codex.wordpress.org/Forum_Welcome#The_Bad_Stuff](https://codex.wordpress.org/Forum_Welcome#The_Bad_Stuff)
 *  Thread Starter [Jamie Gill](https://wordpress.org/support/users/patchgill/)
 * (@patchgill)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/order_review-query/#post-7422268)
 * Hi Mike,
 * No worries wasn’t sure if there was a quick fix to change id to class etc but
   it doesn’t look that way.
 * Thanks for your time dude its appreciated.
 * Cheers
    J

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘order_review query’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jamie Gill](https://wordpress.org/support/users/patchgill/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/order_review-query/#post-7422268)
 * Status: resolved