Skip to content

Commit

Permalink
v1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
coax committed Nov 2, 2024
1 parent 3038e84 commit fc4fb1d
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 32 deletions.
27 changes: 14 additions & 13 deletions solo-for-woocommerce/lib/solo-woocommerce-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Solo for WooCommerce
* Plugin URI: https://solo.com.hr/api-dokumentacija/dodaci
* Description: Narudžba u tvojoj WooCommerce trgovini će automatski kreirati račun ili ponudu u servisu Solo.
* Version: 1.6
* Version: 1.7
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Solo
Expand Down Expand Up @@ -265,7 +265,8 @@
'wooplatnica-croatia' => __('Uplatnica', 'solo-for-woocommerce'),
'erste-kekspay-woocommerce' => __('KEKS Pay', 'solo-for-woocommerce'),
'eh_paypal_express' => __('PayPal Express (kartice, fiskalizacija)', 'solo-for-woocommerce'),
'revolut_cc' => __('Revolut (kartice, fiskalizacija)', 'solo-for-woocommerce')
'revolut_cc' => __('Revolut (kartice, fiskalizacija)', 'solo-for-woocommerce'),
'aircash-woocommerce' => __('Aircash (kartice, fiskalizacija)', 'solo-for-woocommerce')
);

// Show only available payments
Expand Down Expand Up @@ -327,7 +328,7 @@
case 'email':

// Cron check
if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) {
if (defined('DISABLE_WP_CRON') && DISABLE_WP_CRON) {
?>
<br>
<div class="notice notice-error inline"><p><?php echo __('Za automatsko slanje računa ili ponude na e-mail, potrebno je izbrisati <code>define(\'DISABLE_WP_CRON\', true);</code> iz <i>wp-config.php</i> datoteke.', 'solo-for-woocommerce'); ?></p></div>
Expand Down Expand Up @@ -404,12 +405,12 @@
</colgroup>
<thead>
<tr>
<th data-sort="int"><?php echo __('Narudžba', 'solo-for-woocommerce'); ?></th>
<th data-sort="string"><?php echo __('API zahtjev', 'solo-for-woocommerce'); ?></th>
<th data-sort="string"><?php echo __('API odgovor', 'solo-for-woocommerce'); ?></th>
<th data-sort="string"><?php echo __('Datum zahtjeva', 'solo-for-woocommerce'); ?></th>
<th data-sort="string"><?php echo __('Datum odgovora', 'solo-for-woocommerce'); ?></th>
<th data-sort="string"><?php echo __('Datum slanja', 'solo-for-woocommerce'); ?></th>
<th data-sortas="numeric"><?php echo __('Narudžba', 'solo-for-woocommerce'); ?></th>
<th data-sortas="case-insensitive"><?php echo __('API zahtjev', 'solo-for-woocommerce'); ?></th>
<th data-sortas="case-insensitive"><?php echo __('API odgovor', 'solo-for-woocommerce'); ?></th>
<th data-sortas="datetime"><?php echo __('Datum zahtjeva', 'solo-for-woocommerce'); ?></th>
<th data-sortas="datetime"><?php echo __('Datum odgovora', 'solo-for-woocommerce'); ?></th>
<th data-sortas="datetime"><?php echo __('Datum slanja', 'solo-for-woocommerce'); ?></th>
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -465,12 +466,12 @@ function timeago($datetime) {
if (!$sent || $sent=='0000-00-00 00:00:00') $sent = '&ndash;';
?>
<tr class="shrink">
<td><p><a href="post.php?post=<?php echo $row->order_id; ?>&action=edit"><?php echo $row->order_id; ?></a></p></td>
<td data-sortvalue="<?php echo $row->order_id; ?>"><p><a href="post.php?post=<?php echo $row->order_id; ?>&action=edit"><?php echo $row->order_id; ?></a></p></td>
<td><p><?php echo $api_request; ?></p></td>
<td><p><?php echo $api_response; ?></p></td>
<td><p><?php echo $created . '<br>' . timeago($created); ?></p></td>
<td><p><?php echo $updated . '<br>' . timeago($updated); ?></p></td>
<td><p><?php echo $sent . '<br>' . timeago($sent); ?></p></td>
<td data-sortvalue="<?php echo $created; ?>"><p><?php echo $created . '<br>' . timeago($created); ?></p></td>
<td data-sortvalue="<?php echo $updated; ?>"><p><?php echo $updated . '<br>' . timeago($updated); ?></p></td>
<td data-sortvalue="<?php echo $sent; ?>"><p><?php echo $sent . '<br>' . timeago($sent); ?></p></td>
</tr>
<?php
}
Expand Down
Loading

0 comments on commit fc4fb1d

Please sign in to comment.