Server IP : 162.0.217.223 / Your IP : 216.73.216.150 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/www/wp-content/plugins/woocommerce-currency-switcher/views/ |
Upload File : |
<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?> <?php $currencies = $this->get_currencies(); //hpos //$rate = get_post_meta($post->ID, '_woocs_order_rate', TRUE); //$currency = get_post_meta($post->ID, '_order_currency', TRUE); //$base_currency = get_post_meta($post->ID, '_woocs_order_base_currency', TRUE); //$changed_mannualy = get_post_meta($post->ID, '_woocs_order_currency_changed_mannualy', TRUE); $rate = $order->get_meta( '_woocs_order_rate',true); $currency = $order->get_currency(); $base_currency = $order->get_meta( '_woocs_order_base_currency',true); $changed_mannualy = $order->get_meta( '_woocs_order_currency_changed_mannualy',true); if (empty($base_currency)) { $base_currency = $this->default_currency; } ?> <div id="woocs_order_metabox" > <strong><?php esc_html_e('Order currency', 'woocommerce-currency-switcher') ?></strong>: <span class="woocs_order_currency"> <i><?php echo $currency ?></i> <select name="woocs_order_currency2" class="woocs_settings_hide" > <?php foreach ($currencies as $key => $curr) : ?> <option value="<?php echo $key ?>"><?php echo $curr['name'] ?></option> <?php endforeach; ?> </select> </span> <span class="tips" data-tip="<?php esc_html_e('Currency in which the customer paid.', 'woocommerce-currency-switcher') ?><?php if ($changed_mannualy > 0): ?> <?php printf(esc_html__('THIS order currency is changed manually %s!', 'woocommerce-currency-switcher'), date('d-m-Y', $changed_mannualy)) ?><?php endif; ?>">[?]</span><br /> <strong><?php esc_html_e('Base currency', 'woocommerce-currency-switcher') ?></strong>: <?php echo $base_currency ?><br /> <strong><?php esc_html_e('Order currency rate', 'woocommerce-currency-switcher') ?></strong>: <?php echo $rate ?> <span class="tips" data-tip="<?php esc_html_e('Currency rate when the customer paid', 'woocommerce-currency-switcher') ?>"> [?]</span><br /> <strong><?php esc_html_e('Total amount', 'woocommerce-currency-switcher') ?></strong>: <?php $_REQUEST['no_woocs_order_amount_total'] = 1; echo trim(number_format($order->get_total(), $this->price_num_decimals) . ' ' . $currency); ?><br /> <hr /> <?php if ($this->default_currency === $base_currency): ?> <a href="javascript:woocs_change_order_data();void(0);" class="button woocs_change_order_curr_button"><?php esc_html_e('Change order currency', 'woocommerce-currency-switcher') ?> <img class="help_tip" data-tip="<?php esc_html_e('Change the order currency to any other', 'woocommerce-currency-switcher') ?>" src="<?php echo WOOCS_LINK ?>/img/help.png" height="16" width="16" /></a> <?php else: ?> <?php echo sprintf(esc_html__('Not possible to recalculate the order - because current base currency is %s, and order base currency is %s!', 'woocommerce-currency-switcher'), $this->default_currency, $base_currency) ?> <?php endif; ?> <a href="javascript:woocs_cancel_order_data();void(0);" class="button woocs_cancel_order_curr_button" style="display: none;"><?php esc_html_e('cancel', 'woocommerce-currency-switcher') ?></a> <a data-order_id="<?php /*hpos*/echo $order->get_id() ?>" href="javascript:woocs_recalculate_order_data();void(0);" style="display: none;" class="button woocs_recalculate_order_curr_button"><?php esc_html_e("Recalculate order", 'woocommerce-currency-switcher') ?> <img class="help_tip" data-tip="<?php esc_html_e('Recalculate current order with the selected currency.', 'woocommerce-currency-switcher') ?>" src="<?php echo WOOCS_LINK ?>/img/help.png" height="16" width="16" /></a><br /> </div>