HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/shoetique/wp-content/themes/north-wp/woocommerce/checkout/form-pay.php
<?php
/**
 * Pay for order form
 *
 * @author   WooThemes
 * @package  WooCommerce/Templates
 * @version  2.4.7
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

?>
<section class="page-padding">
	<div class="row">
		<div class="text-center"><a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" class="back_to_account"><?php _e("<small>Back to</small> My Account", 'north'); ?></a></div>
		<div class="small-12 columns">
	<form id="order_review" method="post">
		<div class="largetitle"><?php _e( 'Your Order', 'north' ); ?></div>
		<table class="shop_table shopping_bag order_table">
			<thead>
				<tr>
					<th class="product-name"><?php _e( 'Product', 'north' ); ?></th>
					<th class="product-quantity"><?php _e( 'Qty', 'north' ); ?></th>
					<th class="product-total text-right"><?php _e( 'Totals', 'north' ); ?></th>
				</tr>
			</thead>
			<tbody>
				<?php
				if ( sizeof( $order->get_items() ) > 0 ) :
					foreach ( $order->get_items() as $item ) :
						echo '
							<tr>
								<td class="product-name"><h6>' . $item['name'].'</h6></td>
								<td class="product-quantity">' . $item['qty'].'</td>
								<td class="product-subtotal text-right">' . $order->get_formatted_line_subtotal( $item ) . '</td>
							</tr>';
					endforeach;
				endif;
				?>
			</tbody>
			<tfoot>
			<?php
				if ( $totals = $order->get_order_item_totals() ) foreach ( $totals as $total ) :
					?>
					<tr>
						<th scope="row" colspan="2"><?php echo $total['label']; ?></th>
						<td class="product-total"><?php echo $total['value']; ?></td>
					</tr>
					<?php
				endforeach;
			?>
			</tfoot>
		</table>
	
		<div id="payment" class="cf">
			<?php if ( $order->needs_payment() ) : ?>
			<div class="largetitle"><?php _e( 'Payment', 'north' ); ?></div>
			<ul class="payment_methods methods">
				<?php
					if ( $available_gateways = WC()->payment_gateways->get_available_payment_gateways() ) {
						// Chosen Method
						if ( sizeof( $available_gateways ) )
							current( $available_gateways )->set_current();
	
						foreach ( $available_gateways as $gateway ) {
							?>
							<li class="payment_method_<?php echo $gateway->id; ?>">
								<input id="payment_method_<?php echo $gateway->id; ?>" type="radio" class="input-radio custom_check" name="payment_method" value="<?php echo esc_attr( $gateway->id ); ?>" <?php checked( $gateway->chosen, true ); ?> data-order_button_text="<?php echo esc_attr( $gateway->order_button_text ); ?>" />
								<label for="payment_method_<?php echo $gateway->id; ?>" class="custom_label"><?php echo $gateway->get_title(); ?> <?php echo $gateway->get_icon(); ?></label>
								<?php
									if ( $gateway->has_fields() || $gateway->get_description() ) {
										echo '<div class="payment_box payment_method_' . $gateway->id . '" style="display:none;">';
										$gateway->payment_fields();
										echo '</div>';
									}
								?>
							</li>
							<?php
						}
					} else {
	
						echo '<li>' . __( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'north' ) . '</li>';
	
					}
				?>
			</ul>
			<?php endif; ?>
	
			<div class="form-row text-center">
				<?php wp_nonce_field( 'woocommerce-pay' ); ?>
				<?php
					$pay_order_button_text = apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'north' ) );
	
					echo apply_filters( 'woocommerce_pay_order_button_html', '<input type="submit" class="button alt" id="place_order" value="' . esc_attr( $pay_order_button_text ) . '" data-value="' . esc_attr( $pay_order_button_text ) . '" />' );
				?>
				<input type="hidden" name="woocommerce_pay" value="1" />
			</div>
	
		</div>
	
	</form>
		</div>
	</div>
</div>