Changeset 2350232
- Timestamp:
- 08/01/2020 06:37:09 AM (5 years ago)
- Location:
- woo-wholesale/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
woo-wholesale/trunk/assets/js/script.js
r2059220 r2350232 1 1 var j = jQuery.noConflict(); 2 j(document).ready(function(){ 2 j(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 3 21 }); 4 22 -
woo-wholesale/trunk/class-woo-wholesale.php
r2059729 r2350232 16 16 public function admin_scripts() { 17 17 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); 19 19 wp_enqueue_script('vedows-script'); 20 20 } -
woo-wholesale/trunk/functions.php
r2060402 r2350232 32 32 33 33 ?> 34 <script type="text/javascript">35 36 $(document).ready(function(){37 $("#_vedows_status").change(function(){38 if(this.checked)39 $('#checkuncheck').fadeIn('slow');40 else41 $('#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>58 34 59 35 … … 140 116 141 117 function vedows_woocommerce_cart_item_price_filter( $price, $cart_item, $cart_item_key ) { 142 118 global $woocommerce; 143 119 $status = get_post_meta( $cart_item['data']->get_id(), '_vedows_status', true); 144 120 $wholesale = get_post_meta( $cart_item['data']->get_id(), '_vedows_wholesale', true); … … 159 135 } 160 136 137 return wc_price($price); 138 } 161 139 162 return $wholesale_price;163 } -
woo-wholesale/trunk/readme.txt
r2060402 r2350232 4 4 Requires at least: 3.4 5 5 Donate link: http://www.github.com/edohartono 6 Tested up to: 5. 1.17 Requires PHP: 5.2.48 Stable tag: 1. 6.56 Tested up to: 5.4.2 7 Requires PHP: 7 8 Stable tag: 1.0.0 9 9 Donate link: 10 10 License: GPLv3 … … 51 51 * Fix visibility wholesale checkboxes 52 52 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 53 58 == Upgrade notice == 54 59 -
woo-wholesale/trunk/woocommerce-wholesale.php
r2060402 r2350232 4 4 Plugin URI: https://wordpress.org/plugins/woo-wholesale 5 5 description: Wordpress & WooCommerce plugin that help you to make wholesale pricing easily to your product pricing of your product. 6 Version: 1. 0.86 Version: 1.1.0 7 7 Author: Edo Hartono 8 8 Author URI: https://profiles.wordpress.org/edoha … … 18 18 19 19 define('VEDOWS_PLUGIN_URL', plugins_url().'/'.basename(dirname(__FILE__))); 20 21 20 require_once( VEDOWS_PLUGIN_DIR_PATH. 'functions.php'); 22 21 require_once( VEDOWS_PLUGIN_DIR_PATH. 'hooks.php' );
Note: See TracChangeset
for help on using the changeset viewer.