Changeset 2167342
- Timestamp:
- 10/03/2019 05:24:04 AM (6 years ago)
- Location:
- dokan-lite/trunk
- Files:
-
- 13 edited
-
assets/js/vue-admin.js (modified) (2 diffs)
-
dokan.php (modified) (2 diffs)
-
includes/class-api-manager.php (modified) (1 diff)
-
includes/class-commission.php (modified) (37 diffs)
-
includes/functions.php (modified) (5 diffs)
-
includes/order-functions.php (modified) (1 diff)
-
includes/product-functions.php (modified) (1 diff)
-
includes/wc-functions.php (modified) (1 diff)
-
includes/wc-template.php (modified) (1 diff)
-
languages/dokan-lite.pot (modified) (4 diffs)
-
lib/class.category-walker.php (modified) (1 diff)
-
lib/class.taxonomy-walker.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dokan-lite/trunk/assets/js/vue-admin.js
r2162312 r2167342 2271 2271 "use strict"; 2272 2272 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_admin_components_ColorPicker_vue__ = __webpack_require__(12); 2273 //2274 //2275 //2276 //2277 //2278 //2279 //2280 //2281 //2282 //2283 2273 // 2284 2274 // … … 4996 4986 : _vm._e(), 4997 4987 _vm._v(" "), 4998 "number" == _vm.fieldData.type && "admin_percentage" !== _vm.id4999 ? [5000 _c("th", { attrs: { scope: "row" } }, [5001 _c(5002 "label",5003 {5004 attrs: { for: _vm.sectionId + "[" + _vm.fieldData.name + "]" }5005 },5006 [_vm._v(_vm._s(_vm.fieldData.label))]5007 )5008 ]),5009 _vm._v(" "),5010 _c("td", [5011 _c("input", {5012 directives: [5013 {5014 name: "model",5015 rawName: "v-model",5016 value: _vm.fieldValue[_vm.fieldData.name],5017 expression: "fieldValue[fieldData.name]"5018 }5019 ],5020 staticClass: "regular-text",5021 attrs: {5022 type: "number",5023 min: _vm.fieldData.min,5024 max: _vm.fieldData.max,5025 step: _vm.fieldData.step,5026 id: _vm.sectionId + "[" + _vm.fieldData.name + "]",5027 name: _vm.sectionId + "[" + _vm.fieldData.name + "]"5028 },5029 domProps: { value: _vm.fieldValue[_vm.fieldData.name] },5030 on: {5031 input: function($event) {5032 if ($event.target.composing) {5033 return5034 }5035 _vm.$set(5036 _vm.fieldValue,5037 _vm.fieldData.name,5038 $event.target.value5039 )5040 }5041 }5042 }),5043 _vm._v(" "),5044 _c("p", {5045 staticClass: "description",5046 domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }5047 })5048 ])5049 ]5050 : _vm._e(),5051 _vm._v(" "),5052 4988 "textarea" == _vm.fieldData.type 5053 4989 ? [ -
dokan-lite/trunk/dokan.php
r2162664 r2167342 4 4 Plugin URI: https://wordpress.org/plugins/dokan-lite/ 5 5 Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs. 6 Version: 2.9.2 16 Version: 2.9.22 7 7 Author: weDevs 8 8 Author URI: https://wedevs.com/ … … 79 79 * @var string 80 80 */ 81 public $version = '2.9.2 1';81 public $version = '2.9.22'; 82 82 83 83 /** -
dokan-lite/trunk/includes/class-api-manager.php
r2162312 r2167342 159 159 * @param array $data 160 160 * 161 * @since DOKAN_LITE_SINCE161 * @since 2.9.21 162 162 * 163 163 * @return array -
dokan-lite/trunk/includes/class-commission.php
r2162312 r2167342 8 8 * Dokan Commission Class 9 9 * 10 * @since DOKAN_LITE_SINCE10 * @since 2.9.21 11 11 */ 12 12 class Dokan_Commission { … … 16 16 * Order id holder 17 17 * 18 * @since DOKAN_LITE_SINCE18 * @since 2.9.21 19 19 * 20 20 * @var integer … … 25 25 * Order quantity holder 26 26 * 27 * @since DOKAN_LITE_SINCE27 * @since 2.9.21 28 28 * 29 29 * @var integer … … 34 34 * Boot method 35 35 * 36 * @since DOKAN_LITE_SINCE36 * @since 2.9.21 37 37 * 38 38 * @return void … … 45 45 * Init hooks 46 46 * 47 * @since DOKAN_LITE_SINCE47 * @since 2.9.21 48 48 * 49 49 * @return void … … 56 56 * Hide extra meta data 57 57 * 58 * @since DOKAN_LITE_SINCE58 * @since 2.9.21 59 59 * 60 60 * @param array … … 78 78 * Set order id 79 79 * 80 * @since DOKAN_LITE_SINCE80 * @since 2.9.21 81 81 * 82 82 * @param int $id … … 91 91 * Get order id 92 92 * 93 * @since DOKAN_LITE_SINCE93 * @since 2.9.21 94 94 * 95 95 * @return int … … 102 102 * Set order quantity 103 103 * 104 * @since DOKAN_LITE_SINCE104 * @since 2.9.21 105 105 * 106 106 * @param int $number … … 115 115 * Get order quantity 116 116 * 117 * @since DOKAN_LITE_SINCE117 * @since 2.9.21 118 118 * 119 119 * @return int … … 126 126 * Get earning by product 127 127 * 128 * @since DOKAN_LITE_SINCE128 * @since 2.9.21 129 129 * 130 130 * @param int|WC_Product $product … … 155 155 * Get earning by order 156 156 * 157 * @since DOKAN_LITE_SINCE157 * @since 2.9.21 158 158 * 159 159 * @param int|WC_Order $order … … 180 180 181 181 if ( $saved_admin_fee != '' ) { 182 return apply_filters( 'dokan_order_admin_commission', $saved_admin_fee, $order ); 182 $saved_fee = ( 'seller' == $context ) ? $order->get_total() - $saved_admin_fee : $saved_admin_fee; 183 return apply_filters( 'dokan_order_admin_commission', $saved_fee, $order ); 183 184 } 184 185 … … 220 221 } 221 222 222 return apply_filters_deprecated( 'dokan_order_admin_commission', array( $earning, $order, $context ), ' DOKAN_LITE_SINCE', 'dokan_get_earning_by_order' );223 return apply_filters_deprecated( 'dokan_order_admin_commission', array( $earning, $order, $context ), '2.9.21', 'dokan_get_earning_by_order' ); 223 224 } 224 225 … … 226 227 * Get global rate 227 228 * 228 * @since DOKAN_LITE_SINCE229 * @since 2.9.21 229 230 * 230 231 * @return float … … 237 238 * Get vendor wise commission rate 238 239 * 239 * @since DOKAN_LITE_SINCE240 * @since 2.9.21 240 241 * 241 242 * @param int $vendor_id … … 250 251 * Get product wise commission rate 251 252 * 252 * @since DOKAN_LITE_SINCE253 * @since 2.9.21 253 254 * 254 255 * @param int $product_id … … 263 264 * Validate product id (if it's a variable product, return it's parent id) 264 265 * 265 * @since DOKAN_LITE_SINCE266 * @since 2.9.21 266 267 * 267 268 * @param int $product_id … … 279 280 * Get category wise commission rate 280 281 * 281 * @since DOKAN_LITE_SINCE282 * @since 2.9.21 282 283 * 283 284 * @param int $product_id … … 301 302 * Get global commission type 302 303 * 303 * @since DOKAN_LITE_SINCE304 * @since 2.9.21 304 305 * 305 306 * @return string … … 312 313 * Get vendor wise commission type 313 314 * 314 * @since DOKAN_LITE_SINCE315 * @since 2.9.21 315 316 * 316 317 * @param int $vendor_id … … 325 326 * Get category wise commission type 326 327 * 327 * @since DOKAN_LITE_SINCE328 * @since 2.9.21 328 329 * 329 330 * @param int $product_id … … 341 342 * Get product wise commission type 342 343 * 343 * @since DOKAN_LITE_SINCE344 * @since 2.9.21 344 345 * 345 346 * @param int $product_id … … 354 355 * Validate commission rate 355 356 * 356 * @since DOKAN_LITE_SINCE357 * @since 2.9.21 357 358 * 358 359 * @param float $rate … … 371 372 * Get global earning 372 373 * 373 * @since DOKAN_LITE_SINCE374 * @since 2.9.21 374 375 * 375 376 * @param float $product_price … … 384 385 * Get vendor wise earning 385 386 * 386 * @since DOKAN_LITE_SINCE387 * @since 2.9.21 387 388 * 388 389 * @param int $vendor_id … … 398 399 * Get category wise earning 399 400 * 400 * @since DOKAN_LITE_SINCE401 * @since 2.9.21 401 402 * 402 403 * @param int $product_id … … 412 413 * Get product wise earning 413 414 * 414 * @since DOKAN_LITE_SINCE415 * @since 2.9.21 415 416 * 416 417 * @param int $product_id … … 426 427 * Prepare for calculation 427 428 * 428 * @since DOKAN_LITE_SINCE429 * @since 2.9.21 429 430 * 430 431 * @param function $callable … … 540 541 * Get product wise additional fee 541 542 * 542 * @since DOKAN_LITE_SINCE543 * @since 2.9.21 543 544 * 544 545 * @param int $product_id … … 553 554 * Get global wise additional fee 554 555 * 555 * @since DOKAN_LITE_SINCE556 * @since 2.9.21 556 557 * 557 558 * @param int $product_id … … 566 567 * Get vendor wise additional fee 567 568 * 568 * @since DOKAN_LITE_SINCE569 * @since 2.9.21 569 570 * 570 571 * @param int $vendor_id … … 579 580 * Get category wise additional fee 580 581 * 581 * @since DOKAN_LITE_SINCE582 * @since 2.9.21 582 583 * 583 584 * @param int $product_id … … 601 602 * Get earning from order table 602 603 * 603 * @since DOKAN_LITE_SINCE604 * @since 2.9.21 604 605 * 605 606 * @param int $order_id … … 636 637 * Get shipping fee recipient 637 638 * 638 * @since DOKAN_LITE_SINCE639 * @since 2.9.21 639 640 * 640 641 * @param int $order_id … … 658 659 * Get tax fee recipient 659 660 * 660 * @since DOKAN_LITE_SINCE661 * @since 2.9.21 661 662 * 662 663 * @param int $order_id … … 680 681 * Calculate commission (commission priority [1.product, 2.category, 3.vendor, 4.global] wise) 681 682 * 682 * @since DOKAN_LITE_SINCE683 * @since 2.9.21 683 684 * 684 685 * @param int $product_id -
dokan-lite/trunk/includes/functions.php
r2162312 r2167342 2798 2798 */ 2799 2799 function dokan_get_earning_by_product( $product_id, $seller_id ) { 2800 wc_deprecated_function( 'dokan_get_earning_by_product', ' DOKAN_LITE_SINCE', 'Dokan_Commission::get_earning_by_product()' );2800 wc_deprecated_function( 'dokan_get_earning_by_product', '2.9.21', 'Dokan_Commission::get_earning_by_product()' ); 2801 2801 2802 2802 return dokan()->commission->get_earning_by_product( $product_id ); … … 3346 3346 function dokan_get_variable_product_earning( $product_id, $formated = true, $deprecated = false ) { 3347 3347 if ( $deprecated ) { 3348 wc_deprecated_argument( 'seller_id', ' DOKAN_LITE_SINCE', 'dokan_get_variable_product_earning() does not require a seller_id anymore.' );3348 wc_deprecated_argument( 'seller_id', '2.9.21', 'dokan_get_variable_product_earning() does not require a seller_id anymore.' ); 3349 3349 } 3350 3350 … … 3486 3486 * Dokan commission types 3487 3487 * 3488 * @since DOKAN_LITE_SINCE3488 * @since 2.9.21 3489 3489 * 3490 3490 * @return array … … 3542 3542 * Backward compatibile settings option map 3543 3543 * 3544 * @since DOKAN_LITE_SINCE3544 * @since 2.9.21 3545 3545 * 3546 3546 * @param string $option … … 3591 3591 * Add item in specefic position of an array 3592 3592 * 3593 * @since DOKAN_LITE_SINCE3593 * @since 2.9.21 3594 3594 * 3595 3595 * @param array $array -
dokan-lite/trunk/includes/order-functions.php
r2162312 r2167342 670 670 function dokan_get_admin_commission_by( $order, $context ) { 671 671 $context = 'seller' === $context ? $context : 'admin'; 672 wc_deprecated_function( 'dokan_get_admin_commission_by', ' DOKAN_LITE_SINCE', 'Dokan_Commission::get_earning_by_order()' );672 wc_deprecated_function( 'dokan_get_admin_commission_by', '2.9.21', 'Dokan_Commission::get_earning_by_order()' ); 673 673 674 674 return dokan()->commission->get_earning_by_order( $order, $context ); -
dokan-lite/trunk/includes/product-functions.php
r2129956 r2167342 599 599 * Get translated product stock status 600 600 * 601 * @since DOKAN_LITE_SINCE601 * @since 2.9.21 602 602 * 603 603 * @param mix $stock -
dokan-lite/trunk/includes/wc-functions.php
r2075290 r2167342 115 115 if ( isset( $data['attribute_names'] ) && is_array( $data['attribute_names'] ) && isset( $data['attribute_values'] ) && is_array( $data['attribute_values'] ) ) { 116 116 $attribute_names = array_map( 'wc_clean', $data['attribute_names'] ); 117 118 $attribute_values = array(); 119 120 foreach ( $data['attribute_values'] as $values ) { 121 $attribute_values[] = $values; 122 } 117 $attribute_values = array_map( function( $value ) { 118 return $value; 119 }, $data['attribute_values'] ); 123 120 124 121 if ( isset( $data['attribute_visibility'] ) ) { -
dokan-lite/trunk/includes/wc-template.php
r2129956 r2167342 367 367 * Remove store avatar set by ultimate member from store and store listing page 368 368 * 369 * @since DOKAN_LITE_SINCE369 * @since 2.9.21 370 370 */ 371 371 add_action( 'pre_get_avatar', function() { -
dokan-lite/trunk/languages/dokan-lite.pot
r2162312 r2167342 1 # Copyright (C) 2019 weDevs , LLC1 # Copyright (C) 2019 weDevs 2 2 # This file is distributed under the GPL2. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Dokan 2.9.2 1\n"5 "Project-Id-Version: Dokan 2.9.22\n" 6 6 "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n" 7 "POT-Creation-Date: 2019- 09-24 15:48:45+00:00\n"7 "POT-Creation-Date: 2019-10-03 04:15:27+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 4194 4194 msgstr "" 4195 4195 4196 #: includes/wc-functions.php:75 84196 #: includes/wc-functions.php:755 4197 4197 msgid "Your {site_title} order receipt from {order_date}" 4198 4198 msgstr "" 4199 4199 4200 #: includes/wc-functions.php:75 94200 #: includes/wc-functions.php:756 4201 4201 msgid "Your {site_title} order from {order_date} is complete" 4202 4202 msgstr "" 4203 4203 4204 #: includes/wc-functions.php:8 60templates/account/vendor-registration.php:94204 #: includes/wc-functions.php:857 templates/account/vendor-registration.php:9 4205 4205 #: templates/global/seller-registration-form.php:15 4206 4206 msgid "First Name" 4207 4207 msgstr "" 4208 4208 4209 #: includes/wc-functions.php:8 61templates/account/vendor-registration.php:144209 #: includes/wc-functions.php:858 templates/account/vendor-registration.php:14 4210 4210 #: templates/global/seller-registration-form.php:20 4211 4211 msgid "Last Name" 4212 4212 msgstr "" 4213 4213 4214 #: includes/wc-functions.php:8 62templates/account/vendor-registration.php:274214 #: includes/wc-functions.php:859 templates/account/vendor-registration.php:27 4215 4215 #: templates/dashboard/edit-account.php:65 4216 4216 msgid "Email address" 4217 4217 msgstr "" 4218 4218 4219 #: includes/wc-functions.php:86 74219 #: includes/wc-functions.php:864 4220 4220 msgid "is a required field." 4221 4221 msgstr "" 4222 4222 4223 #: includes/wc-functions.php:87 34223 #: includes/wc-functions.php:870 4224 4224 msgid "Please provide a valid email address." 4225 4225 msgstr "" 4226 4226 4227 #: includes/wc-functions.php:87 54227 #: includes/wc-functions.php:872 4228 4228 msgid "This email address is already registered." 4229 4229 msgstr "" 4230 4230 4231 #: includes/wc-functions.php:8 814231 #: includes/wc-functions.php:878 4232 4232 msgid "Your current password is incorrect." 4233 4233 msgstr "" 4234 4234 4235 #: includes/wc-functions.php:883 4236 msgid "Please fill out all password fields." 4237 msgstr "" 4238 4235 4239 #: includes/wc-functions.php:886 4236 msgid "Please fill out all password fields."4240 msgid "Please enter your current password." 4237 4241 msgstr "" 4238 4242 4239 4243 #: includes/wc-functions.php:889 4240 msgid "Please enter your currentpassword."4244 msgid "Please re-enter your password." 4241 4245 msgstr "" 4242 4246 4243 4247 #: includes/wc-functions.php:892 4244 msgid "Please re-enter your password."4245 msgstr ""4246 4247 #: includes/wc-functions.php:8954248 4248 msgid "New passwords do not match." 4249 4249 msgstr "" 4250 4250 4251 #: includes/wc-functions.php:91 64251 #: includes/wc-functions.php:913 4252 4252 msgid "Account details changed successfully." 4253 4253 msgstr "" 4254 4254 4255 #: includes/wc-functions.php:100 44255 #: includes/wc-functions.php:1001 4256 4256 msgid "More Products" 4257 4257 msgstr "" 4258 4258 4259 #: includes/wc-functions.php:105 54259 #: includes/wc-functions.php:1052 4260 4260 msgid "No product has been found!" 4261 4261 msgstr "" … … 4460 4460 msgstr "" 4461 4461 4462 #: src/admin/components/Fields.vue: 2004462 #: src/admin/components/Fields.vue:190 4463 4463 msgid "Active" 4464 4464 msgstr "" 4465 4465 4466 #: src/admin/components/Fields.vue: 204 src/admin/pages/Settings.vue:1554466 #: src/admin/components/Fields.vue:194 src/admin/pages/Settings.vue:155 4467 4467 msgid "Select" 4468 4468 msgstr "" … … 5984 5984 5985 5985 #. Author of the plugin/theme 5986 msgid "weDevs , LLC"5986 msgid "weDevs" 5987 5987 msgstr "" 5988 5988 -
dokan-lite/trunk/lib/class.category-walker.php
r2162312 r2167342 45 45 } else { 46 46 $commission_val = dokan()->commission->get_earning_by_product( $this->post_id ); 47 48 if ( is_wp_error( $commission_val ) ) { 49 $commission_val = 0; 50 } 47 51 } 48 52 -
dokan-lite/trunk/lib/class.taxonomy-walker.php
r2162312 r2167342 53 53 } else { 54 54 $commission_val = dokan()->commission->get_earning_by_product( $this->post_id ); 55 56 if ( is_wp_error( $commission_val ) ) { 57 $commission_val = 0; 58 } 55 59 } 56 60 -
dokan-lite/trunk/readme.txt
r2162664 r2167342 18 18 = DOKAN MULTIVENDOR MARKETPLACE PLUGIN FOR WORDPRESS = 19 19 20 👉 Official Free Demo Link: [Official Demo](https://wedevs.com/ in/dokandemo)20 👉 Official Free Demo Link: [Official Demo](https://wedevs.com/dokan/demo) 21 21 👉 Learn More About Dokan(PRO): [All The Features of Dokan](https://wedevs.com/dokan/features/) 22 22 … … 285 285 == Changelog == 286 286 287 v2.9.22 -> October 03, 2019 288 ----------------------------------- 289 - **fix*** Remove duplicate inpute filed in dokan admin settings form 290 - **fix*** Make commissison value to 0 if no product found 291 - **fix*** Attribute value's are swapped after changing the order of the attributes 292 287 293 v2.9.21 -> September 24, 2019 288 294 -----------------------------------
Note: See TracChangeset
for help on using the changeset viewer.