mirror of
https://git.wownero.com/wownero/wownerowp.git
synced 2024-08-15 01:03:16 +00:00
such wow
This commit is contained in:
parent
572f04dfba
commit
b9e5fcc96e
21 changed files with 152 additions and 157 deletions
|
@ -1,19 +1,19 @@
|
|||
<table class="striped" style="width:100%" cellspacing="0" cellpadding="5">
|
||||
<tr>
|
||||
<td>Exchange rate</td>
|
||||
<td>1 XMR = <?php echo $details['rate_formatted'].' '.$details['currency']; ?></td>
|
||||
<td>1 WOW = <?php echo $details['rate_formatted'].' '.$details['currency']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Total amount</td>
|
||||
<td><?php echo $details['amount_total_formatted']; ?> XMR</td>
|
||||
<td><?php echo $details['amount_total_formatted']; ?> WOW</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Total paid</td>
|
||||
<td><?php echo $details['amount_paid_formatted']; ?> XMR</td>
|
||||
<td><?php echo $details['amount_paid_formatted']; ?> WOW</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Total due</td>
|
||||
<td><?php echo $details['amount_due_formatted']; ?> XMR</td>
|
||||
<td><?php echo $details['amount_due_formatted']; ?> WOW</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Order age</td>
|
||||
|
@ -75,7 +75,7 @@
|
|||
<a href="<?php echo MONERO_GATEWAY_EXPLORER_URL.'tx/'.$tx['txid']; ?>" target="_blank"><?php echo $tx['txid']; ?></a>
|
||||
</td>
|
||||
<td><?php echo $tx['height']; ?></td>
|
||||
<td><?php echo sprintf(MONERO_GATEWAY_ATOMIC_UNITS_SPRINTF, $tx['amount'] / MONERO_GATEWAY_ATOMIC_UNITS_POW); ?> XMR</td>
|
||||
<td><?php echo sprintf(MONERO_GATEWAY_ATOMIC_UNITS_SPRINTF, $tx['amount'] / MONERO_GATEWAY_ATOMIC_UNITS_POW); ?> WOW</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php foreach($errors as $error): ?>
|
||||
<div class="error"><p><strong>Monero Gateway Error</strong>: <?php echo $error; ?></p></div>
|
||||
<div class="error"><p><strong>Wownero Gateway Error</strong>: <?php echo $error; ?></p></div>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<h1>Monero Gateway Settings</h1>
|
||||
<h1>Wownero Gateway Settings</h1>
|
||||
|
||||
<?php if($confirm_type === 'monero-wallet-rpc'): ?>
|
||||
<?php if($confirm_type === 'wownero-wallet-rpc'): ?>
|
||||
<div style="border:1px solid #ddd;padding:5px 10px;">
|
||||
<?php
|
||||
echo 'Wallet height: ' . $balance['height'] . '</br>';
|
||||
|
@ -18,12 +18,12 @@
|
|||
<?php echo $settings_html ?>
|
||||
</table>
|
||||
|
||||
<h4><a href="https://github.com/monero-integrations/monerowp">Learn more about using the Monero payment gateway</a></h4>
|
||||
<h4><a href="https://github.com/monero-integrations/monerowp">Learn more about using the Wownero payment gateway</a></h4>
|
||||
|
||||
<script>
|
||||
function moneroUpdateFields() {
|
||||
var confirmType = jQuery("#woocommerce_monero_gateway_confirm_type").val();
|
||||
if(confirmType == "monero-wallet-rpc") {
|
||||
if(confirmType == "wownero-wallet-rpc") {
|
||||
jQuery("#woocommerce_monero_gateway_monero_address").closest("tr").hide();
|
||||
jQuery("#woocommerce_monero_gateway_viewkey").closest("tr").hide();
|
||||
jQuery("#woocommerce_monero_gateway_daemon_host").closest("tr").show();
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<?php echo $method_title ?>
|
||||
</h2>
|
||||
|
||||
<p style="margin: 0 0 16px;">Your order has been confirmed. Thank you for paying with Monero!</p>
|
||||
<p style="margin: 0 0 16px;">Your order has been confirmed. Thank you for paying with Wownero!</p>
|
||||
|
||||
<?php elseif($details['status'] == 'expired' || $details['status'] == 'expired_partial'): ?>
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
|||
<td class="td" style="text-align: left; vertical-align: middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; word-wrap: break-word; color: #636363; border: 1px solid #e5e5e5; padding: 12px;">
|
||||
TOTAL DUE: <br/>
|
||||
<strong>
|
||||
<?php echo $details['amount_total_formatted']; ?> XMR
|
||||
<?php echo $details['amount_total_formatted']; ?> WOW
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -45,7 +45,7 @@
|
|||
<td class="td" style="text-align: left; vertical-align: middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; word-wrap: break-word; color: #636363; border: 1px solid #e5e5e5; padding: 12px;">
|
||||
EXCHANGE RATE: <br/>
|
||||
<strong>
|
||||
1 XMR = <?php echo $details['rate_formatted'] . ' ' . $details['currency']; ?>
|
||||
1 WOW = <?php echo $details['rate_formatted'] . ' ' . $details['currency']; ?>
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<span class="monero_payment_paid">We have received your payment in full. Please wait while amount is confirmed. Approximate confirm time is <span class="monero_confirm_time"></span>. <?php if(is_wc_endpoint_url('order-received')): ?><br/>You can <a href="<?php echo $details['my_order_url']; ?>">check your payment status</a> anytime in your account dashboard.<?php endif; ?></span>
|
||||
|
||||
<span class="monero_payment_confirmed">Your order has been confirmed. Thank you for paying with Monero!</span>
|
||||
<span class="monero_payment_confirmed">Your order has been confirmed. Thank you for paying with Wownero!</span>
|
||||
|
||||
<span class="monero_payment_expired">Your order has expired. Please place another order to complete your purchase.</span>
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
|||
Total due:
|
||||
<strong class="monero_details_row">
|
||||
<span class="monero_details_main">
|
||||
<span id="monero_total_due"></span> XMR
|
||||
<span id="monero_total_due"></span> WOW
|
||||
</span>
|
||||
<span class="monero_details_right button-row">
|
||||
<button href="#" class="button clipboard" title="Copy Amount"
|
||||
|
@ -53,13 +53,13 @@
|
|||
<li style="display:none">
|
||||
Total order amount:
|
||||
<strong>
|
||||
<span id="monero_total_amount"></span> XMR
|
||||
<span id="monero_total_amount"></span> WOW
|
||||
</strong>
|
||||
</li>
|
||||
<li>
|
||||
Total paid:
|
||||
<strong>
|
||||
<span id="monero_total_paid"></span> XMR
|
||||
<span id="monero_total_paid"></span> WOW
|
||||
</strong>
|
||||
</li>
|
||||
<li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue