Plugin Directory

Changeset 2350232


Ignore:
Timestamp:
08/01/2020 06:37:09 AM (5 years ago)
Author:
edoha
Message:

Release 1.1.0

Location:
woo-wholesale/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • woo-wholesale/trunk/assets/js/script.js

    r2059220 r2350232  
    11var j = jQuery.noConflict();
    2 j(document).ready(function(){
     2j(document).ready(function () {
     3    j('#_vedows_status').click(function () {
     4
     5        if (this.checked)
     6            j('#checkuncheck').fadeIn('slow');
     7        else
     8            j('#checkuncheck').fadeOut('slow');
     9    })
     10
     11    j(".add-rowWS").click(function () {
     12        var markup = '<tr><td><input type="number" name="_vedows_wholesale[qty][]" value=""></td><td><input type="text" name="_vedows_wholesale[price][]" value=""></td><td><input type="button" class="delete-row" value="X"></td></tr>';
     13
     14        j("#inputWS tbody").append(markup);
     15    });
     16
     17    j("#inputWS").on('click', '.delete-row', function () {
     18        j(this).parent().parent().remove();
     19    });
     20
    321});
    422
  • woo-wholesale/trunk/class-woo-wholesale.php

    r2059729 r2350232  
    1616        public function admin_scripts() {
    1717            if ( is_admin() ) {
    18                 wp_register_script('vedows-script', VEDOWS_PLUGIN_DIR_PATH .'/assets/js/script.js', array('jquery'), '', false);
     18                wp_register_script('vedows-script', VEDOWS_PLUGIN_URL .'/assets/js/script.js', array('jquery'), null, false);
    1919                wp_enqueue_script('vedows-script');
    2020            }
  • woo-wholesale/trunk/functions.php

    r2060402 r2350232  
    3232
    3333    ?>
    34     <script type="text/javascript">
    35 
    36         $(document).ready(function(){
    37             $("#_vedows_status").change(function(){
    38                 if(this.checked)
    39                     $('#checkuncheck').fadeIn('slow');
    40                 else
    41                     $('#checkuncheck').fadeOut('slow');
    42 
    43 
    44             });
    45 
    46             $(".add-rowWS").click(function(){
    47                 var markup = '<tr><td><input type="number" name="_vedows_wholesale[qty][]" value=""></td><td><input type="text" name="_vedows_wholesale[price][]" value=""></td><td><input type="button" class="delete-row" value="X"></td></tr>';
    48 
    49                 $("#inputWS tbody").append(markup);
    50             });
    51 
    52             $("#inputWS").on('click', '.delete-row', function(){
    53                   $(this).parent().parent().remove();
    54                });
    55 
    56             });
    57     </script>
    5834
    5935   
     
    140116
    141117function vedows_woocommerce_cart_item_price_filter( $price, $cart_item, $cart_item_key ) {
    142 
     118    global $woocommerce;
    143119    $status = get_post_meta( $cart_item['data']->get_id(), '_vedows_status', true);
    144120    $wholesale = get_post_meta( $cart_item['data']->get_id(), '_vedows_wholesale', true);
     
    159135    }
    160136
     137    return wc_price($price);
     138}
    161139
    162     return $wholesale_price;
    163 }
  • woo-wholesale/trunk/readme.txt

    r2060402 r2350232  
    44Requires at least: 3.4
    55Donate link: http://www.github.com/edohartono
    6 Tested up to: 5.1.1
    7 Requires PHP: 5.2.4
    8 Stable tag: 1.6.5
     6Tested up to: 5.4.2
     7Requires PHP: 7
     8Stable tag: 1.0.0
    99Donate link:
    1010License: GPLv3
     
    5151* Fix visibility wholesale checkboxes
    5252
     53= 1.1.0 =
     54*Release Date - 1st August, 2020*
     55* Fix error with PHP 7
     56* Fix error with PHP 5.4.2
     57
    5358== Upgrade notice ==
    5459
  • woo-wholesale/trunk/woocommerce-wholesale.php

    r2060402 r2350232  
    44Plugin URI: https://wordpress.org/plugins/woo-wholesale
    55description: Wordpress & WooCommerce plugin that help you to make wholesale pricing easily to your product pricing of your product.
    6 Version: 1.0.8
     6Version: 1.1.0
    77Author: Edo Hartono
    88Author URI: https://profiles.wordpress.org/edoha
     
    1818
    1919define('VEDOWS_PLUGIN_URL', plugins_url().'/'.basename(dirname(__FILE__)));
    20 
    2120require_once( VEDOWS_PLUGIN_DIR_PATH. 'functions.php');
    2221require_once( VEDOWS_PLUGIN_DIR_PATH. 'hooks.php' );
Note: See TracChangeset for help on using the changeset viewer.