Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created February 9, 2016 15:35
Show Gist options
  • Save joshfeck/e8336ad7b83630811427 to your computer and use it in GitHub Desktop.
Save joshfeck/e8336ad7b83630811427 to your computer and use it in GitHub Desktop.
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
// move promotions table row to just before total table row
//
function move_promotion_table_row() {
?>
<script>
jQuery( document ).on('ajaxComplete ready', function() {
jQuery('table#spco-payment-info-table .spco-grand-total')
.before( jQuery('table#spco-payment-info-table tr.item:last') );
});
</script>
<?php
}
add_action( 'AHEE__payment_options__reg_step_start', 'move_promotion_table_row' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment