HEX
Server: LiteSpeed
System: Linux dune179.sitesanctuary.org 5.14.0-427.40.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 16 07:08:17 EDT 2024 x86_64
User: h278792 (1197)
PHP: 8.1.29
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/h278792/www/wp-content/plugins/learnpress/templates/order/confirm.php
<?php
/**
 * Template for displaying confirm message after order is placed.
 *
 * This template can be overridden by copying it to yourtheme/learnpress/order/confirm.php.
 *
 * @author  ThimPress
 * @package  Learnpress/Templates
 * @version  3.0.0
 */

defined( 'ABSPATH' ) || exit();

if ( ! isset( $order ) ) {
	$order = learn_press_get_order();
}
?>

<?php if ( $order ) { ?>

	<?php if ( $order->has_status( 'failed' ) ) : ?>
		<p>
			<?php esc_html_e( 'متأسفانه سفارش شما قابل پردازش نیست زیرا بانک/تاجر مبدأ تراکنش شما را رد کرده است.', 'learnpress' ); ?>
		</p>

		<p>
			<?php
			if ( is_user_logged_in() ) {
				esc_html_e( 'لطفاً دوباره اقدام به خرید کنید یا به صفحه حساب خود بروید.', 'learnpress' );
			} else {
				esc_html_e( 'لطفا دوباره اقدام به خرید کنید.', 'learnpress' );
			}
			?>
		</p>

	<?php else : ?>
		<?php $confirm_text = $order->get_confirm_order_received_text(); ?>

		<?php if ( false !== $confirm_text ) : ?>
			<p class="confirm-order-received-text"><?php echo $confirm_text; ?></p>
		<?php endif; ?>

		<?php do_action( 'learn-press/before-confirm-order-details', $order->get_id() ); ?>

		<ul class="order_details">
			<li class="order">
				<?php esc_html_e( 'شماره سفارش:', 'learnpress' ); ?>
				<strong><?php echo $order->get_order_number(); ?></strong>
			</li>

			<li class="date">
				<?php esc_html_e( 'تاریخ:', 'learnpress' ); ?>
				<strong><?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?></strong>
			</li>

			<li class="total">
				<?php esc_html_e( 'مجموع:', 'learnpress' ); ?>
				<strong><?php echo $order->get_formatted_order_total(); ?></strong>
			</li>

			<?php $payment_method_title = $order->get_payment_method_title(); ?>
			<?php if ( $payment_method_title ) : ?>
				<li class="method">
					<?php esc_html_e( 'روش پرداخت:', 'learnpress' ); ?>
					<strong><?php echo $payment_method_title; ?></strong>
				</li>
			<?php endif; ?>

			<li class="status">
				<?php esc_html_e( 'وضعیت:', 'learnpress' ); ?>
				<strong><?php echo $order->get_status(); ?></strong>
			</li>
		</ul>

		<?php do_action( 'learn-press/after-confirm-order-details', $order->get_id() ); ?>
	<?php endif; ?>

	<?php do_action( 'learn_press_confirm_order' . $order->transaction_method, $order->get_id() ); ?>
	<?php do_action( 'learn_press_confirm_order', $order->get_id() ); ?>

<?php } else { ?>

	<p><?php echo $order->get_thankyou_message(); ?></p>

<?php } ?>