Plugin Directory

Changeset 1590307

Timestamp:
02/06/2017 10:27:58 PM (7 years ago)
Author:
hemnathmouli
Message:

Version 1.0.8 Update

Location:
wc-wallet
Files:
12 added
6 edited

Legend:

Unmodified
Added
Removed
  • wc-wallet/trunk/includes/cancel_requests.php

    r1401564 r1590307  
    22<?php
    33    if( !is_cancel_request_enabled() ){
    4         wcw_plugin_success_msg('To have this feature, please enable cancel requests in settings under WC Wallet menu',"error");
     4        wcw_plugin_success_msg(,"error");
    55    }
    66?>
     
    1313<form method  = "get">
    1414    <div class="alignleft actions">
    15         <label for="filter-by-date" class="screen-reader-text">Filter by date</label>
     15        <label for="filter-by-date" class="screen-reader-text"></label>
    1616        <select name="ID" id="filter-by-date">
    17             <option value="0">All Users</option>
     17            <option value="0"></option>
    1818            <?php
    1919            $array = array();
     
    3535    <thead>
    3636        <tr>
    37             <th scope = "col">Transaction ID</th>
    38             <th scope = "col">User</th>
    39             <th scope = "col">Order Number</th>
    40             <th scope = "col">Amount</th>
    41             <th scope = "col">Date</th>
    42             <th scope = "col">Refund</th>
     37            <th scope = "col"></th>
     38            <th scope = "col"></th>
     39            <th scope = "col"></th>
     40            <th scope = "col"></th>
     41            <th scope = "col"></th>
     42            <th scope = "col"></th>
    4343        </tr>
    4444    </thead>
     
    9191    <tfoot>
    9292        <tr>
    93             <th scope = "col">Transaction ID</th>
    94             <th scope = "col">User</th>
    95             <th scope = "col">Order Number</th>
    96             <th scope = "col">Amount</th>
    97             <th scope = "col">Date</th>
    98             <th scope = "col">Refund</th>
     93            <th scope = "col"></th>
     94            <th scope = "col"></th>
     95            <th scope = "col"></th>
     96            <th scope = "col"></th>
     97            <th scope = "col"></th>
     98            <th scope = "col"></th>
    9999        </tr>
    100100    </tfoot>
  • wc-wallet/trunk/includes/functions.php

    r1574650 r1590307  
    171171    if( is_user_logged_in() ){
    172172        if( get_user_meta( get_current_user_id(), 'onhold_credits',true ) !== null && get_user_meta( get_current_user_id(), 'onhold_credits',true ) != 0 ){
    173             WC()->cart->add_fee( 'Credits', -get_user_meta( get_current_user_id(), 'onhold_credits',true ), false, '' );
     173            WC()->cart->add_fee( 'Credits', -get_user_meta( get_current_user_id(), 'onhold_credits',true ), e, '' );
    174174        }
    175175    }
     
    455455        } else {
    456456           
    457             $item_tax_rates        = $tax_rates[ $_product->get_tax_class() ];
     457            if( $_product->get_tax_class() != false ) {
     458                $item_tax_rates        = $tax_rates[ $_product->get_tax_class() ];
     459            } else {
     460                $item_tax_rates        = 0;
     461            }
    458462   
    459463            // Work out a new base price without the shop's base tax
     
    476480            }
    477481        }
    478         $tax                = array_map( array( 'WC_Tax', 'round' ), $tax);
    479         $tax                = array_sum($tax);
     482        if ( $tax ) {
     483            $tax                = array_map( array( 'WC_Tax', 'round' ), $tax);
     484            $tax                = array_sum($tax);
     485        }
    480486        $shipping_total     = WC()->shipping->shipping_total;
    481487        $shipping_taxes     = WC()->shipping->shipping_taxes;
     
    834840            $order_id = (int)$_GET['order_id'] ? (int)$_GET['order_id'] : 0;
    835841        }else{
    836             home_url();
     842            wp_safe_redirect(wp_get_referer() ? wp_get_referer() :
     843                get_permalink(get_option('woocommerce_myaccount_page_id')));
    837844            die();
    838845        }
  • wc-wallet/trunk/includes/settings.php

    r1574650 r1590307  
    99    }   
    1010}
     11
     12
    1113
    1214$wcw_payment_method         = explode( ",",get_option('wcw_payment_method') );
     
    7880                        echo "<table>";
    7981                        foreach( $methods as $key => $method ){
    80                             $current_status = $wcw_transfer_only["$key"];
    81                             echo "<tr>";
    82                             echo "<td style ='padding-left: 0px; vertical-align: top;'>" . $method->title . "</td><td>";
    83                             foreach( $sts as $keys => $status ){
    84                                 ?>
    85                                 <label class = "w200" for="dashboard_right_now-hide_<?php echo $keys;?>_<?php echo $key;?>">
    86                                     <input class="hide-postbox-tog" name="wcw_transfer_only[<?php echo $key; ?>][]" type="checkbox" <?php if( $current_status&&in_array($keys, $current_status) ){ echo "checked"; }  ?> id="dashboard_right_now-hide_<?php echo $keys;?>_<?php echo $key;?>" value="<?php echo $keys; ?>">
    87                                     <?php echo $status; ?>                     
    88                                 </label>
    89                                 <?php
     82                            if ( isset( $wcw_transfer_only["$key"] ) ) {
     83                                $current_status = $wcw_transfer_only["$key"];
     84                                echo "<tr>";
     85                                echo "<td style ='padding-left: 0px; vertical-align: top;'>" . $method->title . "</td><td>";
     86                                foreach( $sts as $keys => $status ){
     87                                    ?>
     88                                    <label class = "w200" for="dashboard_right_now-hide_<?php echo $keys;?>_<?php echo $key;?>">
     89                                        <input class="hide-postbox-tog" name="wcw_transfer_only[<?php echo $key; ?>][]" type="checkbox" <?php if( $current_status&&in_array($keys, $current_status) ){ echo "checked"; }  ?> id="dashboard_right_now-hide_<?php echo $keys;?>_<?php echo $key;?>" value="<?php echo $keys; ?>">
     90                                        <?php echo $status; ?>                     
     91                                    </label>
     92                                    <?php
     93                                }
     94                                echo "</td></tr>";
    9095                            }
    91                             echo "</td></tr>";
    9296                        }
    9397                        echo "</table>";
  • wc-wallet/trunk/languages/wc-wallet.pot

    r1574650 r1590307  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WC Wallet 1.0.7\n"
     5"Project-Id-Version: WC Wallet 1.0.\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-wallet\n"
    7 "POT-Creation-Date: 2017-01-14 14:13:54+00:00\n"
     7"POT-Creation-Date: 2017-0+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    1313"Language-Team: LANGUAGE <LL@li.org>\n"
    1414
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
    1556#: includes/functions.php:16
    1657msgid "WooCommerce Wallet"
    1758msgstr ""
    1859
    19 #. #-#-#-#-#  wc-wallet.pot (WC Wallet 1.0.7)  #-#-#-#-#
     60#. #-#-#-#-#  wc-wallet.pot (WC Wallet 1.0.)  #-#-#-#-#
    2061#. Plugin Name of the plugin/theme
    2162#: includes/functions.php:19
     
    81122msgstr ""
    82123
    83 #: includes/functions.php:862 includes/functions.php:878
     124#: includes/functions.php:86
    84125msgctxt "WooCommerce Order status"
    85126msgid "On Cancel Request"
    86127msgstr ""
    87128
    88 #: includes/functions.php:867
     129#: includes/functions.php:8
    89130msgid "On Cancel Request <span class=\"count\">(%s)</span>"
    90131msgid_plural "On Cancel Request <span class=\"count\">(%s)</span>"
     
    92133msgstr[1] ""
    93134
    94 #: includes/functions.php:921
     135#: includes/functions.php:92
    95136msgid "Available Credits: "
    96137msgstr ""
    97138
    98 #: includes/functions.php:923
     139#: includes/functions.php:9
    99140msgid "You need to login to see your credits"
    100141msgstr ""
    101142
    102 #: includes/functions.php:1016 includes/functions.php:1018
     143#: includes/functions.php:10
    103144msgid "Wallet"
    104145msgstr ""
    105146
    106 #: includes/functions.php:1033
     147#: includes/functions.php:10
    107148msgid "Hello"
    108149msgstr ""
    109150
    110 #: includes/functions.php:1034
     151#: includes/functions.php:10
    111152msgid "Your wallet balance is"
    112153msgstr ""
    113154
    114 #: includes/functions.php:1038
     155#: includes/functions.php:10
    115156msgid "Transaction Number"
    116157msgstr ""
    117158
    118 #: includes/functions.php:1039
    119 msgid "Order Number"
    120 msgstr ""
    121 
    122 #: includes/functions.php:1040
    123 msgid "Date"
    124 msgstr ""
    125 
    126 #: includes/functions.php:1041
     159#: includes/functions.php:1048
    127160msgid "Usage"
    128161msgstr ""
    129162
    130 #: includes/functions.php:1042
    131 msgid "Amount"
    132 msgstr ""
    133 
    134 #: includes/functions.php:1062 includes/functions.php:1064
     163#: includes/functions.php:1069 includes/functions.php:1071
    135164msgid "Credits/money used from wallet"
    136165msgstr ""
    137166
    138 #: includes/functions.php:1063
     167#: includes/functions.php:10
    139168msgid "Credits/money added to wallet"
    140169msgstr ""
    141170
    142 #: includes/functions.php:1093
     171#: includes/functions.php:1
    143172msgid "Wallet Balance"
    144173msgstr ""
    145174
    146 #: includes/settings.php:41
     175#: includes/settings.php:4
    147176msgid "WC Wallet Settings"
    148177msgstr ""
    149178
    150 #: includes/settings.php:43
     179#: includes/settings.php:4
    151180msgid "General Settings"
    152181msgstr ""
    153182
    154 #: includes/settings.php:46
     183#: includes/settings.php:4
    155184msgid "Credits Applicable If The Order Are In These Method"
    156185msgstr ""
    157186
    158 #: includes/settings.php:61
     187#: includes/settings.php:6
    159188msgid "No Payment Methods found.!"
    160189msgstr ""
    161190
    162 #: includes/settings.php:64
     191#: includes/settings.php:6
    163192msgid ""
    164193"When order is cancelled, if the above checked method are there, the cancel "
     
    166195msgstr ""
    167196
    168 #: includes/settings.php:70
     197#: includes/settings.php:7
    169198msgid "Credits Transfered When Order Status is in"
    170199msgstr ""
    171200
    172 #: includes/settings.php:98
     201#: includes/settings.php:
    173202msgid ""
    174203"This option is used to filter transfer of credits only if the checked status "
     
    176205msgstr ""
    177206
    178 #: includes/settings.php:104
     207#: includes/settings.php:10
    179208msgid "Apply Credits For Tax and Shipping?"
    180209msgstr ""
    181210
    182 #: includes/settings.php:107 includes/settings.php:118
    183 #: includes/settings.php:128 includes/settings.php:183
     211#: includes/settings.php:1
     212#: includes/settings.php:1
    184213msgid "Yes"
    185214msgstr ""
    186215
    187 #: includes/settings.php:108 includes/settings.php:119
     216#: includes/settings.php:112 includes/settings.php:123
     217#: includes/settings.php:133
     218msgid "No"
     219msgstr ""
     220
     221#: includes/settings.php:119
     222msgid "Show wallet history and balance in My Account page?"
     223msgstr ""
     224
    188225#: includes/settings.php:129
    189 msgid "No"
    190 msgstr ""
    191 
    192 #: includes/settings.php:115
    193 msgid "Show wallet history and balance in My Account page?"
    194 msgstr ""
    195 
    196 #: includes/settings.php:125
    197226msgid "Validate round value"
    198227msgstr ""
    199228
    200 #: includes/settings.php:130
     229#: includes/settings.php:13
    201230msgid ""
    202231"Enabling this option, can values can be give as 200.99 and disabling this, "
     
    204233msgstr ""
    205234
    206 #: includes/settings.php:136
     235#: includes/settings.php:1
    207236msgid "Restrict Maximum credits"
    208237msgstr ""
    209238
    210 #: includes/settings.php:140
     239#: includes/settings.php:14
    211240msgid ""
    212241"This can restrict maximum credits usage for a person. Leave blank for no "
     
    214243msgstr ""
    215244
    216 #: includes/settings.php:146
     245#: includes/settings.php:1
    217246msgid "Notify Admin"
    218247msgstr ""
    219248
    220 #: includes/settings.php:150
     249#: includes/settings.php:15
    221250msgid "Notify admin if any changes happen in user wallet."
    222251msgstr ""
    223252
    224 #: includes/settings.php:156
     253#: includes/settings.php:1
    225254msgid "Show Credits Remining In Cart"
    226255msgstr ""
    227256
    228 #: includes/settings.php:160
     257#: includes/settings.php:16
    229258msgid ""
    230259"Hide or Show the remaining credits available for a user in the cart page."
    231260msgstr ""
    232261
    233 #: includes/settings.php:166
     262#: includes/settings.php:1
    234263msgid "New user credits"
    235264msgstr ""
    236265
    237 #: includes/settings.php:170
     266#: includes/settings.php:17
    238267msgid "Offer credits for new users, just like coupon."
    239268msgstr ""
    240269
    241 #: includes/settings.php:176
     270#: includes/settings.php:1
    242271msgid "Send Cancel Request Option"
    243272msgstr ""
    244273
    245 #: includes/settings.php:180
     274#: includes/settings.php:18
    246275msgid "Enable \"Send Cancel Request\""
    247276msgstr ""
    248277
    249 #: includes/settings.php:184
     278#: includes/settings.php:18
    250279msgid ""
    251280"Enabling this will add a button called \"Send Cancel Request\" in my-account "
     
    253282msgstr ""
    254283
    255 #: includes/settings.php:190
     284#: includes/settings.php:19
    256285msgid ""
    257286"Automatically Cancel Order On \"Send Cancel Request\" and Refund Credits"
    258287msgstr ""
    259288
    260 #: includes/settings.php:194
     289#: includes/settings.php:19
    261290msgid ""
    262291"If this option is not enabled, you need to customly click refund under "
     
    264293msgstr ""
    265294
    266 #: includes/settings.php:200
     295#: includes/settings.php:20
    267296msgid "Save Changes"
    268297msgstr ""
     
    362391msgstr ""
    363392
    364 #: wcw.php:265
     393#: wcw.php:2
    365394msgid "Requires"
    366395msgstr ""
    367396
    368 #: wcw.php:265
     397#: wcw.php:2
    369398msgid "To Be Installed And Activated"
    370399msgstr ""
  • wc-wallet/trunk/readme.txt

    r1574650 r1590307  
    33Tags: wc wallet, wc credits, woocommerce wallet, cancelled order to wallet, woocommerce credits
    44Requires at least: 4.0
    5 Tested up to: 4.7.1
    6 Stable tag: 1.0.7
     5Tested up to: 4.7.
     6Stable tag: 1.0.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7575* My Account Menu
    7676
     77
     78
     79
     80
    7781== Upgrade Notice ==
    7882
     
    100104= 1.0.7 =
    101105Awesome. We have fixed the bugs and added new Features. Update to 1.0.7
     106
     107
     108
  • wc-wallet/trunk/wcw.php

    r1574650 r1590307  
    66 * Author URI: http://hemzware.com
    77 * Description: Activate this plugin to make the wallet system with WooCommerce.!
    8  * Version: 1.0.7
     8 * Version: 1.0.
    99 * Text Domain: wc-wallet
    1010 */
     
    2020     * @var The current version of the plugin
    2121     */
    22     private $version    = '1.0.7';
     22    private $version    = '1.0.';
    2323   
    2424    /**
     
    158158            add_action( 'admin_menu', array($this, 'wc_w_add_menus'), 5 );
    159159            register_activation_hook(__FILE__, array( $this, 'add_options') );
     160
    160161            //add_action( 'woocommerce_order_status_cancelled', array($this, 'wc_m_move_order_money_to_user') );
    161162            add_action( 'woocommerce_order_status_changed', array( $this, 'wc_m_move_order_money_to_user'), 99, 3 );
     
    249250    }
    250251   
     252
     253
     254
     255
     256
     257
     258
     259
    251260   
    252261}
Note: See TracChangeset for help on using the changeset viewer.