Version Description
Download this release
Release Info
Developer | sormano |
Plugin | WooCommerce Advanced Free Shipping |
Version | 1.1.15 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.1.15
- assets/css/woocommerce-advanced-free-shipping.min.css +1 -3
- assets/css/woocommerce-advanced-free-shipping.min.css.map +1 -0
- includes/admin/views/conditions-table.php +1 -1
- includes/core-functions.php +2 -3
- libraries/wp-conditions/admin-functions.php +2 -2
- libraries/wp-conditions/assets/css/wp-conditions.min.css +1 -1
- libraries/wp-conditions/assets/css/wp-conditions.scss +11 -6
- libraries/wp-conditions/assets/js/repeater/jquery.repeater.js +3 -1
- libraries/wp-conditions/assets/js/repeater/jquery.repeater.min.js +1 -1
- libraries/wp-conditions/assets/js/wp-conditions.js +67 -43
- libraries/wp-conditions/assets/js/wp-conditions.min.js +1 -1
- libraries/wp-conditions/conditions/wpc-contains-shipping-class-condition.php +1 -1
- libraries/wp-conditions/conditions/wpc-coupon-condition.php +6 -5
- libraries/wp-conditions/conditions/wpc-page-condition.php +4 -3
- libraries/wp-conditions/conditions/wpc-shipping-method-condition.php +4 -3
- libraries/wp-conditions/conditions/wpc-state-condition.php +12 -9
- libraries/wp-conditions/conditions/wpc-subtotal-condition.php +10 -1
- libraries/wp-conditions/conditions/wpc-subtotal-ex-tax-condition.php +10 -1
- libraries/wp-conditions/conditions/wpc-tax-condition.php +10 -1
- libraries/wp-conditions/conditions/wpc-weight-condition.php +26 -0
- libraries/wp-conditions/gulpfile.js +38 -0
- libraries/wp-conditions/package.json +23 -0
- libraries/wp-conditions/readme.txt +26 -2
- package.json +16 -0
- readme.txt +20 -5
- woocommerce-advanced-free-shipping.php +3 -3
assets/css/woocommerce-advanced-free-shipping.min.css
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
.wpc-condition-groups .wpc-condition-group{background-color:#f5f5f5;padding:15px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0
|
2 |
-
|
3 |
-
/*# sourceMappingURL=woocommerce-advanced-free-shipping.min.css.map */
|
1 |
+
.wpc-condition-groups .wpc-condition-group{background-color:#f5f5f5;padding:15px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);min-height:30px;margin:0 -13px 1.5em}.wpc-condition-groups .wpc-condition-group:hover .wpc-condition-group-actions{opacity:1}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions{opacity:0;margin:-10px -10px 0 0;font-size:80%}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions a{text-decoration:none}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions a.delete{color:#a00}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions a.delete:hover{color:red}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap{margin:10px 0 5px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-condition{width:35%}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-operator{width:22.5%}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-value{width:calc(42.5% - 75px);max-width:unset;height:28px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-description{float:right}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-description .woocommerce-help-tip{height:28px;line-height:28px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-description .woocommerce-help-tip:after{line-height:28px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap input{vertical-align:top}.wpc-condition-groups .clearfix:after{content:" ";display:block;height:0;clear:both}.wpc-condition-groups .wpc-add.button:before{font-family:"dashicons";content:"";vertical-align:middle;height:1.2em;line-height:1;display:inline-block;margin-right:5px;color:#667}.wpc-condition-groups .wpc-condition-delete.button{font-weight:600;width:30px;text-align:center;padding:0}.wpc-condition-groups .wpc-condition-delete.button:before{font-family:"dashicons";content:"";vertical-align:middle;height:1.2em;line-height:1;display:inline-block;color:#667}.wpc-condition-groups>p+.wpc-condition-group-wrap p.or-text{display:none}.wpc-condition-groups .or-text{margin:1.5em 0}.wpc-condition-groups .match-text{margin:0 0 1em}.wpc-condition-groups .wpc-condition-delete{display:none;opacity:0;transition:opacity .3s ease-in-out}.wpc-condition-groups .wpc-condition-wrap:hover .wpc-condition-delete{display:inline-block;opacity:1}.wpc-condition-groups .wpc-condition-wrap.loading{height:30px}.wpc-condition-groups .wpc-condition-wrap.loading .loading-icon{width:100%;clear:both;display:block;text-align:center;line-height:110%;margin:0 1px}.wpc-condition-wrap .select2-container{vertical-align:top}.wpc-condition-wrap .select2-container .select2-selection--single{height:28px;margin:1px}.wpc-condition-wrap .select2-container .select2-selection--single .select2-selection__rendered,.wpc-condition-wrap .select2-container .select2-selection--single .select2-selection__arrow{line-height:26px;height:28px}@media screen and (max-width: 782px){.wpc-condition-wrap .select2-container .select2-selection--single{height:36px}.wpc-condition-wrap .select2-container .select2-selection--single .select2-selection__rendered,.wpc-condition-wrap .select2-container .select2-selection--single .select2-selection__arrow{line-height:36px;height:36px}}.wpc-condition-wrap .select2-container .select2-selection--multiple .select2-selection__choice{margin:4px 5px 0 0;line-height:12px;font-size:11px;font-weight:600}.wpc-condition-wrap .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#aaa}.wpc-condition-wrap .select2-container .select2-selection--multiple{line-height:.7}.wpc-conditions-post-table .sort{padding:0 4px;cursor:move;text-align:center;vertical-align:middle}.wpc-conditions-post-table .sort:before{content:"";font-family:WooCommerce;text-align:center;line-height:1;color:#999;display:block;width:100%;float:left;height:100%}.wpc-conditions-post-table .sort:before,.wpc-conditions-post-table .row-actions{visibility:hidden !important}.wpc-conditions-post-table tr:hover .sort:before,.wpc-conditions-post-table tr:hover>td>.row-actions{visibility:visible !important}.wpc-conditions-post-table .add.button:before{font-family:WooCommerce;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin-right:7px;content:""}@media screen and (max-width: 782px){.wpc-conditions-post-table th{padding:8px}.wpc-conditions-post-table td{padding:8px 10px}.wpc-conditions-post-table tfoot .button{margin-bottom:0}}.wpc-currency{padding:3px 10px;font-size:14px;font-weight:400;line-height:19px;height:30px;box-sizing:border-box;color:#555;text-align:center;background-color:#eee;border:1px solid #8c8f94;border-right:none;border-radius:4px 0px 0px 4px;margin:1px 0px 1px 1px;display:inline-block;vertical-align:middle}.wpc-currency+input{margin-left:-4px;line-height:19px;width:161px !important;border-left:unset;border-radius:0 4px 4px 0;vertical-align:middle}@media screen and (max-width: 782px){.wpc-currency{font-size:16px;padding:6px 10px;height:33px}}.post-type-wafs .misc-pub-visibility#visibility{display:none}.wafs-option label{display:inline-block;width:150px}.wafs_conditions_meta_box>p:first-child+div>.or_match{display:none}.wafs_desc{display:none;position:absolute;background:rgba(0,0,0,.8);min-width:25px;max-width:200px;border-radius:6px;padding:5px 10px;color:#fff;margin-top:10px;right:40px;text-align:center}.wafs_desc:after{border-top:0px solid rgba(0,0,0,0);border-right:10px solid rgba(0,0,0,0);border-left:10px solid rgba(0,0,0,0);border-bottom:10px solid rgba(0,0,0,.8);content:" ";position:absolute;top:-10px;right:10px;z-index:999}.wafs_tip:hover~.wafs_desc{display:block !important}.wafs-description{width:40px;float:right;line-height:20px}.condition-delete{display:none;opacity:0;transition:opacity .3s ease-in-out}.wafs-condition-wrap:hover .condition-delete{display:inline-block;opacity:1}#advanced_free_shipping_shipping_methods tr .row-actions{visibility:hidden}#advanced_free_shipping_shipping_methods tr:hover>td>.row-actions{visibility:visible !important}
|
|
|
|
assets/css/woocommerce-advanced-free-shipping.min.css.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"file":"woocommerce-advanced-free-shipping.min.css","sources":["woocommerce-advanced-free-shipping.scss","../../libraries/wp-conditions/assets/css/wp-conditions.scss"],"sourcesContent":["@import '../../libraries/wp-conditions/assets/css/wp-conditions';\n\n/* Hide visibility from admin */\n.post-type-wafs .misc-pub-visibility#visibility {\n\tdisplay: none;\n}\n\n.wafs-option label {\n\tdisplay: inline-block;\n\twidth: 150px;\n}\n\n.wafs_conditions_meta_box > p:first-child + div > .or_match {\n\tdisplay: none;\n}\n\n/* Description */\n.wafs_desc {\n\tdisplay: none;\n\tposition: absolute;\n\tbackground: rgba( 0, 0, 0, .8 );\n\tmin-width: 25px;\n\tmax-width: 200px;\n\tborder-radius: 6px;\n\tpadding: 5px 10px;\n\tcolor: white;\n\tmargin-top: 10px;\n\tright: 40px;\n\ttext-align: center;\n}\n.wafs_desc:after {\n\tborder-top: 0px solid transparent;\n\tborder-right: 10px solid transparent;\n\tborder-left: 10px solid transparent;\n\tborder-bottom: 10px solid rgba( 0, 0, 0, .8 );\n\tcontent: ' ';\n\tposition: absolute;\n\ttop: -10px;\n\tright: 10px;\n\tz-index: 999;\n}\n.wafs_tip:hover ~ .wafs_desc {\n\tdisplay: block !important;\n}\n.wafs-description {\n\twidth: 40px;\n\tfloat: right;\n\tline-height: 20px;\n}\n\n.condition-delete {\n\tdisplay: none;\n\topacity: 0;\n\ttransition: opacity .3s ease-in-out;\n}\n.wafs-condition-wrap:hover .condition-delete {\n\tdisplay: inline-block;\n\topacity: 1;\n}\n\n/* Overview row actions */\n#advanced_free_shipping_shipping_methods tr .row-actions {\n\tvisibility: hidden;\n}\n#advanced_free_shipping_shipping_methods tr:hover > td > .row-actions {\n\tvisibility: visible !important;\n}","/**\n * WP-Conditions 1.0.0\n */\n\n/**************************************************************\n * Conditions\n *************************************************************/\n.wpc-condition-groups {\n\n\t// Condition group\n\t.wpc-condition-group {\n\t\tbackground-color: #f5f5f5;\n\t\tpadding: 15px;\n\t\tborder: 1px solid #e5e5e5;\n\t\t-webkit-box-shadow: 0 1px 1px rgba( 0, 0, 0, .04 );\n\t\tbox-shadow: 0 1px 1px rgba( 0, 0, 0, .04 );\n\t\tmin-height: 30px;\n\t\tmargin: 0 -13px 1.5em;\n\n\t\t&:hover {\n\t\t\t.wpc-condition-group-actions {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t.wpc-condition-group-actions {\n\t\t\topacity: 0;\n\t\t\tmargin: -10px -10px 0 0;\n\t\t\tfont-size: 80%;\n\n\t\t\ta {\n\t\t\t\ttext-decoration: none;\n\n\t\t\t\t&.delete {\n\t\t\t\t\tcolor: #a00;\n\n\t\t\t\t\t&:hover {\n\t\t\t\t\t\tcolor: #f00;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Condition row\n\t\t.wpc-condition-wrap {\n\t\t\tmargin: 10px 0 5px;\n\n\t\t\t.wpc-condition {\n\t\t\t\twidth: 35%;\n\t\t\t}\n\t\t\t.wpc-operator {\n\t\t\t\twidth: 22.5%;\n\t\t\t\t//min-width: 140px;\n\t\t\t}\n\t\t\t.wpc-value {\n\t\t\t\twidth: calc( 42.5% - 75px );\n\t\t\t\theight: 28px;\n\t\t\t}\n\t\t\t.wpc-description {\n\t\t\t\tfloat: right;\n\n\t\t\t\t.woocommerce-help-tip {\n\t\t\t\t\theight: 28px;\n\t\t\t\t\tline-height: 28px;\n\n\t\t\t\t\t&:after {\n\t\t\t\t\t\tline-height: 28px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tinput {\n\t\t\t\tvertical-align: top;\n\t\t\t}\n\t\t}\n\t}\n\n\t.clearfix:after {\n\t\tcontent: \" \";\n\t\tdisplay: block;\n\t\theight: 0;\n\t\tclear: both;\n\t}\n\n\t/* Add / delete icon */\n\t.wpc-add.button {\n\t\t//font-weight: 500;\n\n\t\t&:before {\n\t\t\tfont-family: 'dashicons';\n\t\t\tcontent: \"\\f502\";\n\t\t\tvertical-align: middle;\n\t\t\theight: 1.2em;\n\t\t\tline-height: 1;\n\t\t\tdisplay: inline-block;\n\t\t\tmargin-right: 5px;\n\t\t\tcolor: #667;\n\t\t}\n\t}\n\t.wpc-condition-delete.button {\n\t\tfont-weight: 600;\n\t\twidth: 30px;\n\t\ttext-align: center;\n\t\tpadding: 0;\n\n\t\t&:before {\n\t\t\tfont-family: 'dashicons';\n\t\t\tcontent: \"\\f460\";\n\t\t\tvertical-align: middle;\n\t\t\theight: 1.2em;\n\t\t\tline-height: 1;\n\t\t\tdisplay: inline-block;\n\t\t\tcolor: #667;\n\t\t}\n\t}\n\n\t& > p + .wpc-condition-group-wrap p.or-text {\n\t\tdisplay: none;\n\t}\n\t.or-text {\n\t\tmargin: 1.5em 0;\n\t}\n\t.match-text {\n\t\tmargin: 0 0 1em;\n\t}\n\n\t// Delete button\n\t.wpc-condition-delete {\n\t\tdisplay: none;\n\t\topacity: 0;\n\t\ttransition: opacity .3s ease-in-out;\n\t}\n\t.wpc-condition-wrap:hover .wpc-condition-delete {\n\t\tdisplay: inline-block;\n\t\topacity: 1;\n\t}\n\n\t// Load icon\n\t.wpc-condition-wrap.loading {\n\t\theight: 30px;\n\n\t\t.loading-icon {\n\t\t\twidth: 100%;\n\t\t\tclear: both;\n\t\t\tdisplay: block;\n\t\t\ttext-align: center;\n\t\t\tline-height: 110%;\n\t\t\tmargin: 0 1px;\n\t\t}\n\t}\n}\n\n\n/**************************************************************\n * Select2\n *************************************************************/\n.wpc-condition-wrap {\n\n\t.select2-container {\n\t\tvertical-align: top;\n\n\t\t.select2-selection--single {\n\t\t\theight: 28px;\n\t\t\tmargin: 1px;\n\n\t\t\t#select2--container,\n\t\t\t.select2-selection__arrow {\n\t\t\t\tline-height: 26px;\n\t\t\t\theight: 28px;\n\t\t\t}\n\t\t}\n\t\t@media screen and ( max-width: 782px ) {\n\t\t\t.select2-selection--single {\n\t\t\t\theight: 36px;\n\n\t\t\t\t#select2--container,\n\t\t\t\t.select2-selection__arrow {\n\t\t\t\t\tline-height: 36px;\n\t\t\t\t\theight: 36px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t.select2-selection--multiple .select2-selection__choice {\n\t\t\tmargin: 4px 5px 0 0;\n\t\t\tline-height: 12px;\n\t\t\tfont-size: 11px;\n\t\t\tfont-weight: 600;\n\t\t}\n\t}\n\t.select2-container--default.select2-container--focus .select2-selection--multiple {\n\t\tborder-color: #aaa;\n\t}\n\t.select2-container .select2-selection--multiple {\n\t\tline-height: 0.7;\n\t}\n}\n\n/************************\n * Table / overview\n ***********************/\n.wpc-conditions-post-table {\n\n\t.sort {\n\t\tpadding: 0 4px;\n\t\tcursor: move;\n\t\ttext-align: center;\n\t\tvertical-align: middle;\n\n\t\t&:before {\n\t\t\tcontent: \"\\e032\";\n\t\t\tfont-family: WooCommerce;\n\t\t\ttext-align: center;\n\t\t\tline-height: 1;\n\t\t\tcolor: #999;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tfloat: left;\n\t\t\theight: 100%;\n\t\t}\n\t}\n\t.sort:before,\n\t.row-actions {\n\t\tvisibility: hidden !important;\n\t}\n\ttr:hover .sort:before,\n\ttr:hover > td > .row-actions {\n\t\tvisibility: visible !important;\n\t}\n\n\t/* WooCommerce Add icon */\n\t.add.button:before {\n\t\tfont-family: WooCommerce;\n\t\tspeak: none;\n\t\tfont-weight: 400;\n\t\tfont-variant: normal;\n\t\ttext-transform: none;\n\t\tline-height: 1;\n\t\t-webkit-font-smoothing: antialiased;\n\t\tmargin-right: 7px;\n\t\tcontent: \"\\e007\";\n\t}\n}\n@media screen and (max-width: 782px) {\n\t.wpc-conditions-post-table {\n\n\t\tth {\n\t\t\tpadding: 8px;\n\t\t}\n\t\ttd {\n\t\t\tpadding: 8px 10px;\n\t\t}\n\t\ttfoot .button {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n}\n\n// Currency\n.wpc-currency {\n\tpadding: 3px 10px;\n\tfont-size: 14px;\n\tfont-weight: 400;\n\tline-height: 19px;\n\theight: 27px;\n\tbox-sizing: border-box;\n\tcolor: #555;\n\ttext-align: center;\n\tbackground-color: #EEE;\n\tborder: 1px solid #DDD;\n\tborder-right: none;\n\tborder-radius: 4px 0px 0px 4px;\n\tmargin: 1px 0px 1px 1px;\n\tdisplay: inline-block;\n\n\t& + input {\n\t\tmargin-left: -4px;\n\t\tline-height: 19px ;\n\t\twidth: 161px !important;\n\t}\n\n\t@media screen and (max-width: 782px) {\n\t\tfont-size: 16px;\n\t\tpadding: 6px 10px;\n\t\theight: 33px;\n\t}\n}"],"names":[],"mappings":"ACOA,AAGC,qBAHoB,CAGpB,oBAAoB,AAAC,CACpB,gBAAgB,CAAE,OAAO,CACzB,OAAO,CAAE,IAAI,CACb,MAAM,CAAE,iBAAiB,CACzB,kBAAkB,CAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,gBAAoB,CAClD,UAAU,CAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,gBAAoB,CAC1C,UAAU,CAAE,IAAI,CAChB,MAAM,CAAE,aAAa,CAyDrB,AAnEF,AAaG,qBAbkB,CAGpB,oBAAoB,AASlB,MAAM,CACN,4BAA4B,AAAC,CAC5B,OAAO,CAAE,CAAC,CACV,AAfJ,AAkBE,qBAlBmB,CAGpB,oBAAoB,CAenB,4BAA4B,AAAC,CAC5B,OAAO,CAAE,CAAC,CACV,MAAM,CAAE,eAAe,CACvB,SAAS,CAAE,GAAG,CAad,AAlCH,AAuBG,qBAvBkB,CAGpB,oBAAoB,CAenB,4BAA4B,CAK3B,CAAC,AAAC,CACD,eAAe,CAAE,IAAI,CASrB,AAjCJ,AA0BI,qBA1BiB,CAGpB,oBAAoB,CAenB,4BAA4B,CAK3B,CAAC,AAGC,OAAO,AAAC,CACR,KAAK,CAAE,IAAI,CAKX,AAhCL,AA6BK,qBA7BgB,CAGpB,oBAAoB,CAenB,4BAA4B,CAK3B,CAAC,AAGC,OAAO,AAGN,MAAM,AAAC,CACP,KAAK,CAAE,IAAI,CACX,AA/BN,AAqCE,qBArCmB,CAGpB,oBAAoB,CAkCnB,mBAAmB,AAAC,CACnB,MAAM,CAAE,UAAU,CA4BlB,AAlEH,AAwCG,qBAxCkB,CAGpB,oBAAoB,CAkCnB,mBAAmB,CAGlB,cAAc,AAAC,CACd,KAAK,CAAE,GAAG,CACV,AA1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,KAAK,CAAE,IAAI,CACX,OAAO,CAAE,GAAG,CACZ,AACD,AAAA,SAAS,AAAA,MAAM,GAAG,UAAU,AAAC,CAC5B,OAAO,CAAE,gBAAgB,CACzB,AACD,AAAA,iBAAiB,AAAC,CACjB,KAAK,CAAE,IAAI,CACX,KAAK,CAAE,KAAK,CACZ,WAAW,CAAE,IAAI,CACjB,AAED,AAAA,iBAAiB,AAAC,CACjB,OAAO,CAAE,IAAI,CACb,OAAO,CAAE,CAAC,CACV,UAAU,CAAE,uBAAuB,CACnC,AACD,AAAA,oBAAoB,AAAA,MAAM,CAAC,iBAAiB,AAAC,CAC5C,OAAO,CAAE,YAAY,CACrB,OAAO,CAAE,CAAC,CACV,AAGD,AAAA,wCAAwC,CAAC,EAAE,CAAC,YAAY,AAAC,CACxD,UAAU,CAAE,MAAM,CAClB,AACD,AAAA,wCAAwC,CAAC,EAAE,AAAA,MAAM,CAAG,EAAE,CAAG,YAAY,AAAC,CACrE,UAAU,CAAE,kBAAkB,CAC9B"}
|
includes/admin/views/conditions-table.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
|
12 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
13 |
|
14 |
-
$shipping_rates = wafs_get_rates( array( 'post_status' => array( 'draft', 'publish' ) ) );
|
15 |
|
16 |
?><tr valign="top">
|
17 |
<th scope="row" class="titledesc">
|
11 |
|
12 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
13 |
|
14 |
+
$shipping_rates = wafs_get_rates( array( 'post_status' => array( 'draft', 'publish', 'future' ) ) );
|
15 |
|
16 |
?><tr valign="top">
|
17 |
<th scope="row" class="titledesc">
|
includes/core-functions.php
CHANGED
@@ -72,9 +72,8 @@ add_filter( 'wp-conditions\condition_descriptions', 'wafs_add_bc_filter_conditio
|
|
72 |
* @since 1.1.0
|
73 |
*/
|
74 |
function wafs_add_bc_action_custom_fields( $type, $args ) {
|
75 |
-
|
76 |
-
|
77 |
-
do_action( 'woocommerce_advanced_fees_condition_value_field_type_' . $args['type'], $args );
|
78 |
}
|
79 |
|
80 |
}
|
72 |
* @since 1.1.0
|
73 |
*/
|
74 |
function wafs_add_bc_action_custom_fields( $type, $args ) {
|
75 |
+
if ( has_action( 'woocommerce_advanced_free_shipping_condition_value_field_type_' . $type ) ) {
|
76 |
+
do_action( 'woocommerce_advanced_free_shipping_condition_value_field_type_' . $args['type'], $args );
|
|
|
77 |
}
|
78 |
|
79 |
}
|
libraries/wp-conditions/admin-functions.php
CHANGED
@@ -71,7 +71,7 @@ if ( ! function_exists( 'wpc_html_field' ) ) {
|
|
71 |
?><input
|
72 |
name="<?php echo esc_attr( $name ); ?>"
|
73 |
type="<?php echo $args['type']; ?>"
|
74 |
-
id="<?php echo esc_attr( $args['id'] ); ?>"
|
75 |
value="<?php echo esc_attr( $value ); ?>"
|
76 |
class="input-text <?php echo $class; ?>"
|
77 |
<?php echo implode( ' ', $custom_attributes ); ?>
|
@@ -86,7 +86,7 @@ if ( ! function_exists( 'wpc_html_field' ) ) {
|
|
86 |
|
87 |
?><select
|
88 |
name="<?php echo esc_attr( $args['name'] ); ?>"
|
89 |
-
id="<?php echo esc_attr( $args['id'] ); ?>"
|
90 |
class="input-select <?php echo $class; ?>"
|
91 |
<?php echo implode( ' ', $custom_attributes ); ?>
|
92 |
><?php
|
71 |
?><input
|
72 |
name="<?php echo esc_attr( $name ); ?>"
|
73 |
type="<?php echo $args['type']; ?>"
|
74 |
+
<?php if ( ! empty( $args['id'] ) ) : ?>id="<?php echo esc_attr( $args['id'] ); ?>"<?php endif; ?>
|
75 |
value="<?php echo esc_attr( $value ); ?>"
|
76 |
class="input-text <?php echo $class; ?>"
|
77 |
<?php echo implode( ' ', $custom_attributes ); ?>
|
86 |
|
87 |
?><select
|
88 |
name="<?php echo esc_attr( $args['name'] ); ?>"
|
89 |
+
<?php if ( ! empty( $args['id'] ) ) : ?>id="<?php echo esc_attr( $args['id'] ); ?>"<?php endif; ?>
|
90 |
class="input-select <?php echo $class; ?>"
|
91 |
<?php echo implode( ' ', $custom_attributes ); ?>
|
92 |
><?php
|
libraries/wp-conditions/assets/css/wp-conditions.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wpc-condition-groups .wpc-condition-group{background-color:#f5f5f5;padding:15px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.04);box-shadow:0 1px 1px rgba(0,0,0,0.04);min-height:30px;margin:0 -13px 1.5em}.wpc-condition-groups .wpc-condition-group:hover .wpc-condition-group-actions{opacity:1}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions{opacity:0;margin:-10px -10px 0 0;font-size:80%}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions a{text-decoration:none}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions a.delete{color:#a00}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions a.delete:hover{color:#f00}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap{margin:10px 0 5px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-condition{width:35%}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-operator{width:22.5%}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-value{width:calc( 42.5% - 75px);height:28px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-description{float:right}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-description .woocommerce-help-tip{height:28px;line-height:28px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-description .woocommerce-help-tip:after{line-height:28px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap input{vertical-align:top}.wpc-condition-groups .clearfix:after{content:" ";display:block;height:0;clear:both}.wpc-condition-groups .wpc-add.button:before{font-family:'dashicons';content:"\f502";vertical-align:middle;height:1.2em;line-height:1;display:inline-block;margin-right:5px;color:#667}.wpc-condition-groups .wpc-condition-delete.button{font-weight:600;width:30px;text-align:center;padding:0}.wpc-condition-groups .wpc-condition-delete.button:before{font-family:'dashicons';content:"\f460";vertical-align:middle;height:1.2em;line-height:1;display:inline-block;color:#667}.wpc-condition-groups>p+.wpc-condition-group-wrap p.or-text{display:none}.wpc-condition-groups .or-text{margin:1.5em 0}.wpc-condition-groups .match-text{margin:0 0 1em}.wpc-condition-groups .wpc-condition-delete{display:none;opacity:0;transition:opacity .3s ease-in-out}.wpc-condition-groups .wpc-condition-wrap:hover .wpc-condition-delete{display:inline-block;opacity:1}.wpc-condition-groups .wpc-condition-wrap.loading{height:30px}.wpc-condition-groups .wpc-condition-wrap.loading .loading-icon{width:100%;clear:both;display:block;text-align:center;line-height:110%;margin:0 1px}.wpc-condition-wrap .select2-container{vertical-align:top}.wpc-condition-wrap .select2-container .select2-selection--single{height:28px;margin:1px}.wpc-condition-wrap .select2-container .select2-selection--single
|
1 |
+
.wpc-condition-groups .wpc-condition-group{background-color:#f5f5f5;padding:15px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.04);box-shadow:0 1px 1px rgba(0,0,0,0.04);min-height:30px;margin:0 -13px 1.5em}.wpc-condition-groups .wpc-condition-group:hover .wpc-condition-group-actions{opacity:1}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions{opacity:0;margin:-10px -10px 0 0;font-size:80%}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions a{text-decoration:none}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions a.delete{color:#a00}.wpc-condition-groups .wpc-condition-group .wpc-condition-group-actions a.delete:hover{color:#f00}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap{margin:10px 0 5px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-condition{width:35%}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-operator{width:22.5%}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-value{width:calc( 42.5% - 75px);max-width:unset;height:28px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-description{float:right}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-description .woocommerce-help-tip{height:28px;line-height:28px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap .wpc-description .woocommerce-help-tip:after{line-height:28px}.wpc-condition-groups .wpc-condition-group .wpc-condition-wrap input{vertical-align:top}.wpc-condition-groups .clearfix:after{content:" ";display:block;height:0;clear:both}.wpc-condition-groups .wpc-add.button:before{font-family:'dashicons';content:"\f502";vertical-align:middle;height:1.2em;line-height:1;display:inline-block;margin-right:5px;color:#667}.wpc-condition-groups .wpc-condition-delete.button{font-weight:600;width:30px;text-align:center;padding:0}.wpc-condition-groups .wpc-condition-delete.button:before{font-family:'dashicons';content:"\f460";vertical-align:middle;height:1.2em;line-height:1;display:inline-block;color:#667}.wpc-condition-groups>p+.wpc-condition-group-wrap p.or-text{display:none}.wpc-condition-groups .or-text{margin:1.5em 0}.wpc-condition-groups .match-text{margin:0 0 1em}.wpc-condition-groups .wpc-condition-delete{display:none;opacity:0;transition:opacity .3s ease-in-out}.wpc-condition-groups .wpc-condition-wrap:hover .wpc-condition-delete{display:inline-block;opacity:1}.wpc-condition-groups .wpc-condition-wrap.loading{height:30px}.wpc-condition-groups .wpc-condition-wrap.loading .loading-icon{width:100%;clear:both;display:block;text-align:center;line-height:110%;margin:0 1px}.wpc-condition-wrap .select2-container{vertical-align:top}.wpc-condition-wrap .select2-container .select2-selection--single{height:28px;margin:1px}.wpc-condition-wrap .select2-container .select2-selection--single .select2-selection__rendered,.wpc-condition-wrap .select2-container .select2-selection--single .select2-selection__arrow{line-height:26px;height:28px}@media screen and (max-width: 782px){.wpc-condition-wrap .select2-container .select2-selection--single{height:36px}.wpc-condition-wrap .select2-container .select2-selection--single .select2-selection__rendered,.wpc-condition-wrap .select2-container .select2-selection--single .select2-selection__arrow{line-height:36px;height:36px}}.wpc-condition-wrap .select2-container .select2-selection--multiple .select2-selection__choice{margin:4px 5px 0 0;line-height:12px;font-size:11px;font-weight:600}.wpc-condition-wrap .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#aaa}.wpc-condition-wrap .select2-container .select2-selection--multiple{line-height:0.7}.wpc-conditions-post-table .sort{padding:0 4px;cursor:move;text-align:center;vertical-align:middle}.wpc-conditions-post-table .sort:before{content:"\e032";font-family:WooCommerce;text-align:center;line-height:1;color:#999;display:block;width:100%;float:left;height:100%}.wpc-conditions-post-table .sort:before,.wpc-conditions-post-table .row-actions{visibility:hidden !important}.wpc-conditions-post-table tr:hover .sort:before,.wpc-conditions-post-table tr:hover>td>.row-actions{visibility:visible !important}.wpc-conditions-post-table .add.button:before{font-family:WooCommerce;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin-right:7px;content:"\e007"}@media screen and (max-width: 782px){.wpc-conditions-post-table th{padding:8px}.wpc-conditions-post-table td{padding:8px 10px}.wpc-conditions-post-table tfoot .button{margin-bottom:0}}.wpc-currency{padding:3px 10px;font-size:14px;font-weight:400;line-height:19px;height:30px;box-sizing:border-box;color:#555;text-align:center;background-color:#EEE;border:1px solid #8c8f94;border-right:none;border-radius:4px 0px 0px 4px;margin:1px 0px 1px 1px;display:inline-block;vertical-align:middle}.wpc-currency+input{margin-left:-4px;line-height:19px;width:161px !important;border-left:unset;border-radius:0 4px 4px 0;vertical-align:middle}@media screen and (max-width: 782px){.wpc-currency{font-size:16px;padding:6px 10px;height:33px}}
|
libraries/wp-conditions/assets/css/wp-conditions.scss
CHANGED
@@ -54,6 +54,7 @@
|
|
54 |
}
|
55 |
.wpc-value {
|
56 |
width: calc( 42.5% - 75px );
|
|
|
57 |
height: 28px;
|
58 |
}
|
59 |
.wpc-description {
|
@@ -162,7 +163,7 @@
|
|
162 |
height: 28px;
|
163 |
margin: 1px;
|
164 |
|
165 |
-
|
166 |
.select2-selection__arrow {
|
167 |
line-height: 26px;
|
168 |
height: 28px;
|
@@ -172,7 +173,7 @@
|
|
172 |
.select2-selection--single {
|
173 |
height: 36px;
|
174 |
|
175 |
-
|
176 |
.select2-selection__arrow {
|
177 |
line-height: 36px;
|
178 |
height: 36px;
|
@@ -260,21 +261,25 @@
|
|
260 |
font-size: 14px;
|
261 |
font-weight: 400;
|
262 |
line-height: 19px;
|
263 |
-
height:
|
264 |
box-sizing: border-box;
|
265 |
color: #555;
|
266 |
text-align: center;
|
267 |
background-color: #EEE;
|
268 |
-
border: 1px solid #
|
269 |
border-right: none;
|
270 |
border-radius: 4px 0px 0px 4px;
|
271 |
margin: 1px 0px 1px 1px;
|
272 |
display: inline-block;
|
|
|
273 |
|
274 |
& + input {
|
275 |
margin-left: -4px;
|
276 |
-
line-height: 19px
|
277 |
width: 161px !important;
|
|
|
|
|
|
|
278 |
}
|
279 |
|
280 |
@media screen and (max-width: 782px) {
|
@@ -282,4 +287,4 @@
|
|
282 |
padding: 6px 10px;
|
283 |
height: 33px;
|
284 |
}
|
285 |
-
}
|
54 |
}
|
55 |
.wpc-value {
|
56 |
width: calc( 42.5% - 75px );
|
57 |
+
max-width: unset;
|
58 |
height: 28px;
|
59 |
}
|
60 |
.wpc-description {
|
163 |
height: 28px;
|
164 |
margin: 1px;
|
165 |
|
166 |
+
.select2-selection__rendered,
|
167 |
.select2-selection__arrow {
|
168 |
line-height: 26px;
|
169 |
height: 28px;
|
173 |
.select2-selection--single {
|
174 |
height: 36px;
|
175 |
|
176 |
+
.select2-selection__rendered,
|
177 |
.select2-selection__arrow {
|
178 |
line-height: 36px;
|
179 |
height: 36px;
|
261 |
font-size: 14px;
|
262 |
font-weight: 400;
|
263 |
line-height: 19px;
|
264 |
+
height: 30px;
|
265 |
box-sizing: border-box;
|
266 |
color: #555;
|
267 |
text-align: center;
|
268 |
background-color: #EEE;
|
269 |
+
border: 1px solid #8c8f94;
|
270 |
border-right: none;
|
271 |
border-radius: 4px 0px 0px 4px;
|
272 |
margin: 1px 0px 1px 1px;
|
273 |
display: inline-block;
|
274 |
+
vertical-align: middle;
|
275 |
|
276 |
& + input {
|
277 |
margin-left: -4px;
|
278 |
+
line-height: 19px;
|
279 |
width: 161px !important;
|
280 |
+
border-left: unset;
|
281 |
+
border-radius: 0 4px 4px 0;
|
282 |
+
vertical-align: middle;
|
283 |
}
|
284 |
|
285 |
@media screen and (max-width: 782px) {
|
287 |
padding: 6px 10px;
|
288 |
height: 33px;
|
289 |
}
|
290 |
+
}
|
libraries/wp-conditions/assets/js/repeater/jquery.repeater.js
CHANGED
@@ -9,6 +9,7 @@
|
|
9 |
elementWrap: '.repeater-row', // Used to identify what is one element within the container.
|
10 |
elementsContainer: '.repeater-container', // Used to identify what is one element within the container.
|
11 |
removeElement: undefined,
|
|
|
12 |
};
|
13 |
|
14 |
return $( this ).filter( ':not(.repeater-active)' ).each( function(i, e) {
|
@@ -39,6 +40,7 @@
|
|
39 |
var template = getTemplate();
|
40 |
|
41 |
$container.append( template );
|
|
|
42 |
$( document.body ).trigger( 'repeater-added-row', [template, $container, $self] );
|
43 |
};
|
44 |
|
@@ -54,4 +56,4 @@
|
|
54 |
|
55 |
}
|
56 |
|
57 |
-
})(jQuery);
|
9 |
elementWrap: '.repeater-row', // Used to identify what is one element within the container.
|
10 |
elementsContainer: '.repeater-container', // Used to identify what is one element within the container.
|
11 |
removeElement: undefined,
|
12 |
+
onAddElement: function () {}
|
13 |
};
|
14 |
|
15 |
return $( this ).filter( ':not(.repeater-active)' ).each( function(i, e) {
|
40 |
var template = getTemplate();
|
41 |
|
42 |
$container.append( template );
|
43 |
+
options.onAddElement(template, $container, $self)
|
44 |
$( document.body ).trigger( 'repeater-added-row', [template, $container, $self] );
|
45 |
};
|
46 |
|
56 |
|
57 |
}
|
58 |
|
59 |
+
})(jQuery);
|
libraries/wp-conditions/assets/js/repeater/jquery.repeater.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
"use strict";!function(c){c.fn.repeater=function(o){return c(this).filter(":not(.repeater-active)").each(function(e,t){var n,r;c(this).addClass("repeater-active"),o=c.extend({},c.fn.repeater.defaults,o);var i=function(){var e=n.find(o.template).first().clone();r.append(e),o.onAddElement(e,r,n),c(document.body).trigger("repeater-added-row",[e,r,n])},a=o.removeElement||function(e){e.slideUp("fast",function(){c(this).remove()})};return n=c(this),r=n.find(o.elementsContainer),n.on("click",o.addTrigger,function(e){e.preventDefault(),i()}),n.on("click",o.removeTrigger,function(){a(c(this).parents(o.elementWrap).first())}),n})}}(jQuery);
|
libraries/wp-conditions/assets/js/wp-conditions.js
CHANGED
@@ -8,6 +8,26 @@ jQuery( function( $ ) {
|
|
8 |
template: '.wpc-condition-group-template .wpc-condition-group-wrap',
|
9 |
elementWrap: '.wpc-condition-group-wrap',
|
10 |
elementsContainer: '.wpc-condition-groups',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
removeElement: function( el ) {
|
12 |
el.remove();
|
13 |
}
|
@@ -24,32 +44,33 @@ jQuery( function( $ ) {
|
|
24 |
template: '.wpc-condition-template .wpc-condition-wrap',
|
25 |
elementWrap: '.wpc-condition-wrap',
|
26 |
elementsContainer: '.wpc-conditions-list',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
});
|
28 |
}
|
29 |
wpc_condition_row_repeater();
|
30 |
|
31 |
|
32 |
-
// Assign new ID to repeater row + open collapsible + re-enable nested repeater
|
33 |
-
jQuery( document.body ).on( 'repeater-added-row', function( e, template, container, $self ) {
|
34 |
-
var new_id = Math.floor(Math.random()*899999999+100000000); // Random number sequence of 9 length
|
35 |
-
template.find( 'input[name], select[name]' ).attr( 'name', function( index, value ) {
|
36 |
-
return ( value.replace( '9999', new_id ) ) || value;
|
37 |
-
});
|
38 |
-
template.find( '.wpc-condition[data-id]' ).attr( 'data-id', function( index, value ) {
|
39 |
-
return ( value.replace( '9999', new_id ) ) || value;
|
40 |
-
});
|
41 |
-
// Fix #20 - condition IDs being replaced by group IDs
|
42 |
-
template.find( '.wpc-condition-template .wpc-condition[data-id]' ).attr( 'data-id', '9999' );
|
43 |
-
|
44 |
-
template.find( '[data-group]' ).attr( 'data-group', function( index, value ) {
|
45 |
-
return ( value.replace( '9999', new_id ) ) || value;
|
46 |
-
});
|
47 |
-
|
48 |
-
template.find( '.repeater-active' ).removeClass( 'repeater-active' );
|
49 |
-
|
50 |
-
// Init condition group repeater
|
51 |
-
wpc_condition_row_repeater();
|
52 |
-
});
|
53 |
|
54 |
|
55 |
// Duplicate condition group
|
@@ -57,9 +78,12 @@ jQuery( function( $ ) {
|
|
57 |
var condition_group_wrap = $( this ).parents( '.wpc-condition-group-wrap' ),
|
58 |
condition_group_id = condition_group_wrap.find( '.wpc-condition-group' ).attr( 'data-group' ),
|
59 |
condition_group_list = $( this ).parents( '.wpc-condition-groups' ),
|
60 |
-
new_group = condition_group_wrap.clone(),
|
61 |
new_group_id = Math.floor(Math.random()*899999999+100000000); // Random number sequence of 9 length
|
62 |
|
|
|
|
|
|
|
|
|
63 |
// Fix dropdown selected not being cloned properly
|
64 |
$( condition_group_wrap ).find( 'select' ).each(function(i) {
|
65 |
$( new_group ).find( 'select' ).eq( i ).val( $( this ).val() );
|
@@ -75,7 +99,7 @@ jQuery( function( $ ) {
|
|
75 |
condition_group_list.append( new_group );
|
76 |
|
77 |
// Enable Select2's
|
78 |
-
|
79 |
|
80 |
// Init condition repeater
|
81 |
wpc_condition_row_repeater();
|
@@ -96,13 +120,13 @@ jQuery( function( $ ) {
|
|
96 |
// Update condition values
|
97 |
$( document.body ).on( 'change', '.wpc-condition', function () {
|
98 |
|
99 |
-
var loading_wrap = '<span style="width: calc( 42.5% - 75px ); border: 1px solid transparent; display: inline-block;"> </span>';
|
100 |
var data = {
|
101 |
-
action:
|
102 |
-
id:
|
103 |
-
group:
|
104 |
-
condition:
|
105 |
-
nonce:
|
106 |
};
|
107 |
var condition_wrap = $( this ).parents( '.wpc-condition-wrap' ).first();
|
108 |
var replace = '.wpc-value-field-wrap';
|
@@ -141,15 +165,15 @@ jQuery( function( $ ) {
|
|
141 |
|
142 |
// Sortable post table
|
143 |
$( '.wpc-conditions-post-table.wpc-sortable-post-table tbody' ).sortable({
|
144 |
-
items:
|
145 |
-
handle:
|
146 |
-
cursor:
|
147 |
-
axis:
|
148 |
-
scrollSensitivity:
|
149 |
-
forcePlaceholderSize:
|
150 |
-
helper:
|
151 |
-
opacity:
|
152 |
-
placeholder:
|
153 |
start: function(event,ui){
|
154 |
ui.item.css( 'background-color','#f6f6f6' );
|
155 |
},
|
@@ -158,13 +182,13 @@ jQuery( function( $ ) {
|
|
158 |
},
|
159 |
update: function(event, ui) {
|
160 |
|
161 |
-
$table
|
162 |
$table.block({ message: null, overlayCSS: { background: '#fff', opacity: 0.6 } });
|
163 |
// Update fee order
|
164 |
var data = {
|
165 |
-
action:
|
166 |
-
form:
|
167 |
-
nonce:
|
168 |
};
|
169 |
|
170 |
$.post( ajaxurl, data, function( response ) {
|
@@ -175,4 +199,4 @@ jQuery( function( $ ) {
|
|
175 |
}
|
176 |
});
|
177 |
|
178 |
-
});
|
8 |
template: '.wpc-condition-group-template .wpc-condition-group-wrap',
|
9 |
elementWrap: '.wpc-condition-group-wrap',
|
10 |
elementsContainer: '.wpc-condition-groups',
|
11 |
+
onAddElement: function (template, container, $self) {
|
12 |
+
var new_id = Math.floor(Math.random() * 899999999 + 100000000); // Random number sequence of 9 length
|
13 |
+
template.find('input[name], select[name]').attr('name', function (index, value) {
|
14 |
+
return (value.replace('9999', new_id)) || value;
|
15 |
+
});
|
16 |
+
template.find('.wpc-condition[data-id]').attr('data-id', function (index, value) {
|
17 |
+
return (value.replace('9999', new_id)) || value;
|
18 |
+
});
|
19 |
+
// Fix #20 - condition IDs being replaced by group IDs
|
20 |
+
template.find('.wpc-condition-template .wpc-condition[data-id]').attr('data-id', '9999');
|
21 |
+
|
22 |
+
template.find('[data-group]').attr('data-group', function (index, value) {
|
23 |
+
return (value.replace('9999', new_id)) || value;
|
24 |
+
});
|
25 |
+
|
26 |
+
template.find('.repeater-active').removeClass('repeater-active');
|
27 |
+
|
28 |
+
// Init condition group repeater
|
29 |
+
wpc_condition_row_repeater();
|
30 |
+
},
|
31 |
removeElement: function( el ) {
|
32 |
el.remove();
|
33 |
}
|
44 |
template: '.wpc-condition-template .wpc-condition-wrap',
|
45 |
elementWrap: '.wpc-condition-wrap',
|
46 |
elementsContainer: '.wpc-conditions-list',
|
47 |
+
|
48 |
+
// Assign new ID to repeater row + open collapsible + re-enable nested repeater
|
49 |
+
onAddElement: function (e, template, container, $self) {
|
50 |
+
var new_id = Math.floor(Math.random() * 899999999 + 100000000); // Random number sequence of 9 length
|
51 |
+
template.find('input[name], select[name]').attr('name', function (index, value) {
|
52 |
+
return (value.replace('9999', new_id)) || value;
|
53 |
+
});
|
54 |
+
template.find('.wpc-condition[data-id]').attr('data-id', function (index, value) {
|
55 |
+
return (value.replace('9999', new_id)) || value;
|
56 |
+
});
|
57 |
+
// Fix #20 - condition IDs being replaced by group IDs
|
58 |
+
template.find('.wpc-condition-template .wpc-condition[data-id]').attr('data-id', '9999');
|
59 |
+
|
60 |
+
template.find('[data-group]').attr('data-group', function (index, value) {
|
61 |
+
return (value.replace('9999', new_id)) || value;
|
62 |
+
});
|
63 |
+
|
64 |
+
template.find('.repeater-active').removeClass('repeater-active');
|
65 |
+
|
66 |
+
// Init condition group repeater
|
67 |
+
wpc_condition_row_repeater();
|
68 |
+
}
|
69 |
});
|
70 |
}
|
71 |
wpc_condition_row_repeater();
|
72 |
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
|
76 |
// Duplicate condition group
|
78 |
var condition_group_wrap = $( this ).parents( '.wpc-condition-group-wrap' ),
|
79 |
condition_group_id = condition_group_wrap.find( '.wpc-condition-group' ).attr( 'data-group' ),
|
80 |
condition_group_list = $( this ).parents( '.wpc-condition-groups' ),
|
|
|
81 |
new_group_id = Math.floor(Math.random()*899999999+100000000); // Random number sequence of 9 length
|
82 |
|
83 |
+
condition_group_wrap.find('.enhanced').select2('destroy').removeClass('enhanced'); // Select2 need to be re-init for clones
|
84 |
+
|
85 |
+
var new_group = condition_group_wrap.clone();
|
86 |
+
|
87 |
// Fix dropdown selected not being cloned properly
|
88 |
$( condition_group_wrap ).find( 'select' ).each(function(i) {
|
89 |
$( new_group ).find( 'select' ).eq( i ).val( $( this ).val() );
|
99 |
condition_group_list.append( new_group );
|
100 |
|
101 |
// Enable Select2's
|
102 |
+
$( document.body ).trigger( 'wc-enhanced-select-init' );
|
103 |
|
104 |
// Init condition repeater
|
105 |
wpc_condition_row_repeater();
|
120 |
// Update condition values
|
121 |
$( document.body ).on( 'change', '.wpc-condition', function () {
|
122 |
|
123 |
+
var loading_wrap = '<span class="wpc-loading" style="width: calc( 42.5% - 75px ); border: 1px solid transparent; display: inline-block;"> </span>';
|
124 |
var data = {
|
125 |
+
action: wpc2.action_prefix + 'update_condition_value',
|
126 |
+
id: $( this ).attr( 'data-id' ),
|
127 |
+
group: $( this ).parents( '.wpc-condition-group' ).attr( 'data-group' ),
|
128 |
+
condition: $( this ).val(),
|
129 |
+
nonce: wpc.nonce
|
130 |
};
|
131 |
var condition_wrap = $( this ).parents( '.wpc-condition-wrap' ).first();
|
132 |
var replace = '.wpc-value-field-wrap';
|
165 |
|
166 |
// Sortable post table
|
167 |
$( '.wpc-conditions-post-table.wpc-sortable-post-table tbody' ).sortable({
|
168 |
+
items: 'tr',
|
169 |
+
handle: '.sort',
|
170 |
+
cursor: 'move',
|
171 |
+
axis: 'y',
|
172 |
+
scrollSensitivity: 40,
|
173 |
+
forcePlaceholderSize: true,
|
174 |
+
helper: 'clone',
|
175 |
+
opacity: 0.65,
|
176 |
+
placeholder: 'wc-metabox-sortable-placeholder',
|
177 |
start: function(event,ui){
|
178 |
ui.item.css( 'background-color','#f6f6f6' );
|
179 |
},
|
182 |
},
|
183 |
update: function(event, ui) {
|
184 |
|
185 |
+
var $table = $( this ).closest( 'table' );
|
186 |
$table.block({ message: null, overlayCSS: { background: '#fff', opacity: 0.6 } });
|
187 |
// Update fee order
|
188 |
var data = {
|
189 |
+
action: 'wpc_save_post_order',
|
190 |
+
form: $( this ).closest( 'form' ).serialize(),
|
191 |
+
nonce: wpc.nonce
|
192 |
};
|
193 |
|
194 |
$.post( ajaxurl, data, function( response ) {
|
199 |
}
|
200 |
});
|
201 |
|
202 |
+
});
|
libraries/wp-conditions/assets/js/wp-conditions.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(
|
1 |
+
"use strict";jQuery(function(a){function c(){a(".wpc-condition-group").repeater({addTrigger:".wpc-condition-add",removeTrigger:".wpc-condition-delete",template:".wpc-condition-template .wpc-condition-wrap",elementWrap:".wpc-condition-wrap",elementsContainer:".wpc-conditions-list",onAddElement:function(t,e,o,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(t,e){return e.replace("9999",i)||e}),e.find(".wpc-condition[data-id]").attr("data-id",function(t,e){return e.replace("9999",i)||e}),e.find(".wpc-condition-template .wpc-condition[data-id]").attr("data-id","9999"),e.find("[data-group]").attr("data-group",function(t,e){return e.replace("9999",i)||e}),e.find(".repeater-active").removeClass("repeater-active"),c()}})}a(".wpc-conditions").repeater({addTrigger:".wpc-condition-group-add",removeTrigger:".wpc-condition-group .delete",template:".wpc-condition-group-template .wpc-condition-group-wrap",elementWrap:".wpc-condition-group-wrap",elementsContainer:".wpc-condition-groups",onAddElement:function(t,e,o){var n=Math.floor(899999999*Math.random()+1e8);t.find("input[name], select[name]").attr("name",function(t,e){return e.replace("9999",n)||e}),t.find(".wpc-condition[data-id]").attr("data-id",function(t,e){return e.replace("9999",n)||e}),t.find(".wpc-condition-template .wpc-condition[data-id]").attr("data-id","9999"),t.find("[data-group]").attr("data-group",function(t,e){return e.replace("9999",n)||e}),t.find(".repeater-active").removeClass("repeater-active"),c()},removeElement:function(t){t.remove()}}),c(),a(document.body).on("click",".wpc-conditions .duplicate",function(){var t=a(this).parents(".wpc-condition-group-wrap"),o=t.find(".wpc-condition-group").attr("data-group"),e=a(this).parents(".wpc-condition-groups"),n=Math.floor(899999999*Math.random()+1e8);t.find(".enhanced").select2("destroy").removeClass("enhanced");var i=t.clone();a(t).find("select").each(function(t){a(i).find("select").eq(t).val(a(this).val())}),i.find(".wpc-condition-group").attr("data-group",n),i.find("input[name], select[name]").attr("name",function(t,e){return e.replace("conditions["+o+"]","conditions["+n+"]")}),i.find(".repeater-active").removeClass("repeater-active"),e.append(i),a(document.body).trigger("wc-enhanced-select-init"),c(),a("html, body").on("scroll mousedown DOMMouseScroll mousewheel keydown touchmove",function(t){a("html, body").stop().off("scroll mousedown DOMMouseScroll mousewheel keydown touchmove")}),a("body, html").animate({scrollTop:a(i).offset().top-50},750,function(){a("html, body").off("scroll mousedown DOMMouseScroll mousewheel keydown touchmove")})}),a(document.body).on("change",".wpc-condition",function(){var e={action:wpc2.action_prefix+"update_condition_value",id:a(this).attr("data-id"),group:a(this).parents(".wpc-condition-group").attr("data-group"),condition:a(this).val(),nonce:wpc.nonce},o=a(this).parents(".wpc-condition-wrap").first(),n=".wpc-value-field-wrap";o.find(n).html('<span class="wpc-loading" style="width: calc( 42.5% - 75px ); border: 1px solid transparent; display: inline-block;"> </span>').block({message:null,overlayCSS:{background:"",opacity:.6}}),a.post(ajaxurl,e,function(t){o.find(n).replaceWith(t),a(document.body).trigger("wc-enhanced-select-init")});var i=o.find(".wpc-operator").val();o.find(".wpc-operator").empty().html(function(){var o=a(this),t=wpc.condition_operators[e.condition]||wpc.condition_operators.default;a.each(t,function(t,e){o.append(a("<option/>").attr("value",t).text(e)),o.val(i).val()||o.val(o.find("option:first").val())})}),o.find(".wpc-description").html(function(){return a('<span class="woocommerce-help-tip" />').attr("data-tip",wpc.condition_descriptions[e.condition]||"")}),a(".tips, .help_tip, .woocommerce-help-tip").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200}),a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style")}),a(".wpc-conditions-post-table.wpc-sortable-post-table tbody").sortable({items:"tr",handle:".sort",cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(t,e){e.item.css("background-color","#f6f6f6")},stop:function(t,e){e.item.removeAttr("style")},update:function(t,e){var o=a(this).closest("table");o.block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var n={action:"wpc_save_post_order",form:a(this).closest("form").serialize(),nonce:wpc.nonce};a.post(ajaxurl,n,function(t){a(".wpc-conditions-post-table tbody tr:even").addClass("alternate"),a(".wpc-conditions-post-table tbody tr:odd").removeClass("alternate"),o.unblock()})}})});
|
libraries/wp-conditions/conditions/wpc-contains-shipping-class-condition.php
CHANGED
@@ -53,7 +53,7 @@ if ( ! class_exists( 'WPC_Contains_Shipping_Class_Condition' ) ) {
|
|
53 |
|
54 |
$shipping_classes = get_terms( 'product_shipping_class', array( 'hide_empty' => false ) );
|
55 |
$shipping_classes = array_merge(
|
56 |
-
array( '
|
57 |
wp_list_pluck( $shipping_classes, 'name', 'slug' )
|
58 |
);
|
59 |
|
53 |
|
54 |
$shipping_classes = get_terms( 'product_shipping_class', array( 'hide_empty' => false ) );
|
55 |
$shipping_classes = array_merge(
|
56 |
+
array( '' => __( 'No shipping class', 'woocommerce' ) ),
|
57 |
wp_list_pluck( $shipping_classes, 'name', 'slug' )
|
58 |
);
|
59 |
|
libraries/wp-conditions/conditions/wpc-coupon-condition.php
CHANGED
@@ -29,7 +29,7 @@ if ( ! class_exists( 'WPC_Coupon_Condition' ) ) {
|
|
29 |
elseif ( '>=' == $operator ) :
|
30 |
$match = empty( $coupons['percent'] ) ? $match : ( min( $coupons['percent'] ) >= $percentage_value );
|
31 |
elseif ( '<=' == $operator ) :
|
32 |
-
$match =
|
33 |
endif;
|
34 |
|
35 |
// Match against coupon amount
|
@@ -42,15 +42,16 @@ if ( ! class_exists( 'WPC_Coupon_Condition' ) ) {
|
|
42 |
elseif ( '>=' == $operator ) :
|
43 |
$match = empty( $coupons['fixed'] ) ? $match : ( min( $coupons['fixed'] ) >= $amount_value );
|
44 |
elseif ( '<=' == $operator ) :
|
45 |
-
$match =
|
46 |
endif;
|
47 |
|
48 |
// Match coupon codes
|
49 |
} else {
|
|
|
50 |
if ( '==' == $operator ) :
|
51 |
-
$match = ( array_intersect( preg_split( '/\, ?/', $value ),
|
52 |
elseif ( '!=' == $operator ) :
|
53 |
-
$match = ( ! array_intersect( preg_split( '/\, ?/', $value ),
|
54 |
endif;
|
55 |
}
|
56 |
|
@@ -80,4 +81,4 @@ if ( ! class_exists( 'WPC_Coupon_Condition' ) ) {
|
|
80 |
|
81 |
}
|
82 |
|
83 |
-
}
|
29 |
elseif ( '>=' == $operator ) :
|
30 |
$match = empty( $coupons['percent'] ) ? $match : ( min( $coupons['percent'] ) >= $percentage_value );
|
31 |
elseif ( '<=' == $operator ) :
|
32 |
+
$match = empty( $coupons['percent'] ) ? $match : ( max( $coupons['percent'] ) <= $percentage_value );
|
33 |
endif;
|
34 |
|
35 |
// Match against coupon amount
|
42 |
elseif ( '>=' == $operator ) :
|
43 |
$match = empty( $coupons['fixed'] ) ? $match : ( min( $coupons['fixed'] ) >= $amount_value );
|
44 |
elseif ( '<=' == $operator ) :
|
45 |
+
$match = empty( $coupons['fixed'] ) ? $match : ( max( $coupons['fixed'] ) <= $amount_value );
|
46 |
endif;
|
47 |
|
48 |
// Match coupon codes
|
49 |
} else {
|
50 |
+
$applied_coupons = WC()->cart->get_applied_coupons();
|
51 |
if ( '==' == $operator ) :
|
52 |
+
$match = ( array_intersect( preg_split( '/\, ?/', $value ), $applied_coupons ) ) || ( empty( $value ) && empty( $applied_coupons ) );
|
53 |
elseif ( '!=' == $operator ) :
|
54 |
+
$match = ( ! array_intersect( preg_split( '/\, ?/', $value ), $applied_coupons ) );
|
55 |
endif;
|
56 |
}
|
57 |
|
81 |
|
82 |
}
|
83 |
|
84 |
+
}
|
libraries/wp-conditions/conditions/wpc-page-condition.php
CHANGED
@@ -20,6 +20,7 @@ if ( ! class_exists( 'WPC_Page_Condition' ) ) {
|
|
20 |
|
21 |
$value = $this->get_value( $value );
|
22 |
$wp_query = $this->get_compare_value();
|
|
|
23 |
|
24 |
if ( '==' == $operator ) :
|
25 |
|
@@ -28,7 +29,7 @@ if ( ! class_exists( 'WPC_Page_Condition' ) ) {
|
|
28 |
elseif ( wc_get_page_id( 'shop' ) == $value ) : // Shop page
|
29 |
$match = ( 'product' == $wp_query->query_vars['post_type'] && $wp_query->is_archive() );
|
30 |
else :
|
31 |
-
$match = ( $
|
32 |
endif;
|
33 |
|
34 |
elseif ( '!=' == $operator ) :
|
@@ -38,7 +39,7 @@ if ( ! class_exists( 'WPC_Page_Condition' ) ) {
|
|
38 |
elseif ( wc_get_page_id( 'shop' ) == $value ) : // Shop page
|
39 |
$match = ! ( 'product' == $wp_query->query_vars['post_type'] && $wp_query->is_archive() );
|
40 |
else :
|
41 |
-
$match = ( $
|
42 |
endif;
|
43 |
|
44 |
endif;
|
@@ -97,4 +98,4 @@ if ( ! class_exists( 'WPC_Page_Condition' ) ) {
|
|
97 |
|
98 |
}
|
99 |
|
100 |
-
}
|
20 |
|
21 |
$value = $this->get_value( $value );
|
22 |
$wp_query = $this->get_compare_value();
|
23 |
+
$post_id = isset( $post->ID ) ? $post->ID : null;
|
24 |
|
25 |
if ( '==' == $operator ) :
|
26 |
|
29 |
elseif ( wc_get_page_id( 'shop' ) == $value ) : // Shop page
|
30 |
$match = ( 'product' == $wp_query->query_vars['post_type'] && $wp_query->is_archive() );
|
31 |
else :
|
32 |
+
$match = ( $post_id == $value );
|
33 |
endif;
|
34 |
|
35 |
elseif ( '!=' == $operator ) :
|
39 |
elseif ( wc_get_page_id( 'shop' ) == $value ) : // Shop page
|
40 |
$match = ! ( 'product' == $wp_query->query_vars['post_type'] && $wp_query->is_archive() );
|
41 |
else :
|
42 |
+
$match = ( $post_id != $value );
|
43 |
endif;
|
44 |
|
45 |
endif;
|
98 |
|
99 |
}
|
100 |
|
101 |
+
}
|
libraries/wp-conditions/conditions/wpc-shipping-method-condition.php
CHANGED
@@ -31,7 +31,8 @@ if ( ! class_exists( 'WPC_Shipping_Method_Condition' ) ) {
|
|
31 |
|
32 |
public function get_compare_value() {
|
33 |
$packages_rates = wp_list_pluck( WC()->shipping()->get_packages(), 'rates' );
|
34 |
-
$
|
|
|
35 |
|
36 |
// Add shipping method IDs
|
37 |
foreach ( $packages_rates as $package_key => $rates ) {
|
@@ -43,7 +44,7 @@ if ( ! class_exists( 'WPC_Shipping_Method_Condition' ) ) {
|
|
43 |
}
|
44 |
}
|
45 |
|
46 |
-
return $chosen_rate_ids;
|
47 |
}
|
48 |
|
49 |
public function get_available_operators() {
|
@@ -168,4 +169,4 @@ if ( ! class_exists( 'WPC_Shipping_Method_Condition' ) ) {
|
|
168 |
|
169 |
}
|
170 |
|
171 |
-
}
|
31 |
|
32 |
public function get_compare_value() {
|
33 |
$packages_rates = wp_list_pluck( WC()->shipping()->get_packages(), 'rates' );
|
34 |
+
$package_keys = array_flip( array_keys( WC()->shipping()->get_packages() ) ) ?: array( 0 );
|
35 |
+
$chosen_rate_ids = array_intersect_key( (array) WC()->session->get( 'chosen_shipping_methods' ), $package_keys );
|
36 |
|
37 |
// Add shipping method IDs
|
38 |
foreach ( $packages_rates as $package_key => $rates ) {
|
44 |
}
|
45 |
}
|
46 |
|
47 |
+
return array_filter( $chosen_rate_ids );
|
48 |
}
|
49 |
|
50 |
public function get_available_operators() {
|
169 |
|
170 |
}
|
171 |
|
172 |
+
}
|
libraries/wp-conditions/conditions/wpc-state-condition.php
CHANGED
@@ -31,7 +31,17 @@ if ( ! class_exists( 'WPC_State_Condition' ) ) {
|
|
31 |
|
32 |
public function get_value_field_args() {
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
|
|
35 |
$country_states = array();
|
36 |
foreach ( WC()->countries->states as $country => $states ) {
|
37 |
|
@@ -44,16 +54,9 @@ if ( ! class_exists( 'WPC_State_Condition' ) ) {
|
|
44 |
|
45 |
}
|
46 |
|
47 |
-
$
|
48 |
-
'type' => 'select',
|
49 |
-
'class' => array( 'wpc-value', 'wc-enhanced-select' ),
|
50 |
-
'options' => $country_states,
|
51 |
-
);
|
52 |
-
|
53 |
-
return $field_args;
|
54 |
-
|
55 |
}
|
56 |
|
57 |
}
|
58 |
|
59 |
-
}
|
31 |
|
32 |
public function get_value_field_args() {
|
33 |
|
34 |
+
$field_args = array(
|
35 |
+
'type' => 'select',
|
36 |
+
'class' => array( 'wpc-value', 'wc-enhanced-select' ),
|
37 |
+
'options' => self::get_country_states(),
|
38 |
+
);
|
39 |
+
|
40 |
+
return $field_args;
|
41 |
+
|
42 |
+
}
|
43 |
|
44 |
+
public static function get_country_states() {
|
45 |
$country_states = array();
|
46 |
foreach ( WC()->countries->states as $country => $states ) {
|
47 |
|
54 |
|
55 |
}
|
56 |
|
57 |
+
return $country_states;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
|
60 |
}
|
61 |
|
62 |
+
}
|
libraries/wp-conditions/conditions/wpc-subtotal-condition.php
CHANGED
@@ -22,6 +22,15 @@ if ( ! class_exists( 'WPC_Subtotal_Condition' ) ) {
|
|
22 |
return WC()->cart->subtotal;
|
23 |
}
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
|
27 |
-
}
|
22 |
return WC()->cart->subtotal;
|
23 |
}
|
24 |
|
25 |
+
public function get_value_field_args() {
|
26 |
+
|
27 |
+
$field_args = array(
|
28 |
+
'class' => array( 'input-text', 'wpc-value', 'wc_input_price' ),
|
29 |
+
);
|
30 |
+
|
31 |
+
return $field_args;
|
32 |
+
|
33 |
+
}
|
34 |
}
|
35 |
|
36 |
+
}
|
libraries/wp-conditions/conditions/wpc-subtotal-ex-tax-condition.php
CHANGED
@@ -26,6 +26,15 @@ if ( ! class_exists( 'WPC_Subtotal_Ex_Tax_Condition' ) ) {
|
|
26 |
return WC()->cart->subtotal_ex_tax;
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
}
|
30 |
|
31 |
-
}
|
26 |
return WC()->cart->subtotal_ex_tax;
|
27 |
}
|
28 |
|
29 |
+
public function get_value_field_args() {
|
30 |
+
|
31 |
+
$field_args = array(
|
32 |
+
'class' => array( 'input-text', 'wpc-value', 'wc_input_price' ),
|
33 |
+
);
|
34 |
+
|
35 |
+
return $field_args;
|
36 |
+
|
37 |
+
}
|
38 |
}
|
39 |
|
40 |
+
}
|
libraries/wp-conditions/conditions/wpc-tax-condition.php
CHANGED
@@ -26,6 +26,15 @@ if ( ! class_exists( 'WPC_Tax_Condition' ) ) {
|
|
26 |
return array_sum( (array) WC()->cart->taxes );
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
}
|
30 |
|
31 |
-
}
|
26 |
return array_sum( (array) WC()->cart->taxes );
|
27 |
}
|
28 |
|
29 |
+
public function get_value_field_args() {
|
30 |
+
|
31 |
+
$field_args = array(
|
32 |
+
'class' => array( 'input-text', 'wpc-value', 'wc_input_price' ),
|
33 |
+
);
|
34 |
+
|
35 |
+
return $field_args;
|
36 |
+
|
37 |
+
}
|
38 |
}
|
39 |
|
40 |
+
}
|
libraries/wp-conditions/conditions/wpc-weight-condition.php
CHANGED
@@ -22,6 +22,32 @@ if ( ! class_exists( 'WPC_Weight_Condition' ) ) {
|
|
22 |
return WC()->cart->get_cart_contents_weight();
|
23 |
}
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
|
27 |
}
|
22 |
return WC()->cart->get_cart_contents_weight();
|
23 |
}
|
24 |
|
25 |
+
public function match( $match, $operator, $value ) {
|
26 |
+
$value = number_format( $this->get_value( $value ), 5 );
|
27 |
+
$compare_value = number_format( $this->get_compare_value(), 5 );
|
28 |
+
|
29 |
+
if ( '==' == $operator ) :
|
30 |
+
$match = ( $compare_value == $value );
|
31 |
+
elseif ( '!=' == $operator ) :
|
32 |
+
$match = ( $compare_value != $value );
|
33 |
+
elseif ( '>=' == $operator ) :
|
34 |
+
$match = ( $compare_value >= $value );
|
35 |
+
elseif ( '<=' == $operator ) :
|
36 |
+
$match = ( $compare_value <= $value );
|
37 |
+
endif;
|
38 |
+
|
39 |
+
return $match;
|
40 |
+
}
|
41 |
+
|
42 |
+
public function get_value_field_args() {
|
43 |
+
|
44 |
+
$field_args = array(
|
45 |
+
'class' => array( 'input-text', 'wpc-value', 'wc_input_decimal' ),
|
46 |
+
);
|
47 |
+
|
48 |
+
return $field_args;
|
49 |
+
|
50 |
+
}
|
51 |
}
|
52 |
|
53 |
}
|
libraries/wp-conditions/gulpfile.js
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
'use strict';
|
2 |
+
|
3 |
+
const gulp = require('gulp');
|
4 |
+
const sass = require('gulp-sass');
|
5 |
+
const uglify = require('gulp-uglify');
|
6 |
+
const rename = require("gulp-rename");
|
7 |
+
const sourcemaps = require('gulp-sourcemaps');
|
8 |
+
const babel = require('gulp-babel');
|
9 |
+
|
10 |
+
// CSS
|
11 |
+
gulp.task('sass', function () {
|
12 |
+
return gulp.src('./assets/**/css/*.scss')
|
13 |
+
// .pipe(sourcemaps.init())
|
14 |
+
.pipe(sass({errLogToConsole: true, outputStyle: 'compressed'}))
|
15 |
+
.pipe(rename({suffix: '.min'}))
|
16 |
+
// .pipe(sourcemaps.write('./'))
|
17 |
+
.pipe(gulp.dest('./assets'))
|
18 |
+
});
|
19 |
+
|
20 |
+
// JS
|
21 |
+
gulp.task('js', function () {
|
22 |
+
return gulp.src(['assets/**/js/*.js', '!assets/**/js/*.min.js', 'assets/**/js/**/*.js', '!assets/**/js/**/*.min.js'])
|
23 |
+
.pipe(babel({
|
24 |
+
presets: ['@babel/env']
|
25 |
+
}))
|
26 |
+
.pipe(uglify())
|
27 |
+
.pipe(rename({suffix: '.min'}))
|
28 |
+
.pipe(gulp.dest('./assets/'));
|
29 |
+
});
|
30 |
+
|
31 |
+
gulp.task('watch:sass', function () {
|
32 |
+
gulp.watch('./assets/**/css/*.scss', gulp.series('sass'));
|
33 |
+
});
|
34 |
+
gulp.task('watch:js', function () {
|
35 |
+
gulp.watch(['assets/**/js/*.js', '!assets/**/js/*.min.js', 'assets/**/js/**/*.js'], gulp.series('js'));
|
36 |
+
});
|
37 |
+
|
38 |
+
gulp.task('watch', gulp.parallel('sass', 'js', 'watch:sass', 'watch:js'));
|
libraries/wp-conditions/package.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "wp-conditions",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"description": "",
|
5 |
+
"main": "gulpfile.js",
|
6 |
+
"dependencies": {},
|
7 |
+
"devDependencies": {
|
8 |
+
"@babel/core": "^7.14.3",
|
9 |
+
"@babel/preset-env": "^7.14.4",
|
10 |
+
"browser-sync": "^2.26.14",
|
11 |
+
"gulp": "^4.0.0",
|
12 |
+
"gulp-babel": "^8.0.0",
|
13 |
+
"gulp-rename": "^1.4.0",
|
14 |
+
"gulp-sass": "^4.1.0",
|
15 |
+
"gulp-sourcemaps": "^2.6.5",
|
16 |
+
"gulp-uglify": "^3.0.2"
|
17 |
+
},
|
18 |
+
"scripts": {
|
19 |
+
"watch": "gulp watch"
|
20 |
+
},
|
21 |
+
"author": "Jeroen Sormani",
|
22 |
+
"license": "GPL-2.0-or-later"
|
23 |
+
}
|
libraries/wp-conditions/readme.txt
CHANGED
@@ -4,10 +4,34 @@ It is intended to be used on plugins like build by Jeroen such as Advanced Shipp
|
|
4 |
Copyright © 2017 Jeroen Sormani
|
5 |
|
6 |
|
7 |
-
# Current version: 1.0.
|
8 |
|
9 |
# Changelog
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
= 1.0.8 - 20/08/2018 =
|
12 |
|
13 |
* [Improvement] - Stock status condition now includes 'On backorder'
|
@@ -54,4 +78,4 @@ Copyright © 2017 Jeroen Sormani
|
|
54 |
|
55 |
= 1.0.0 =
|
56 |
|
57 |
-
First release
|
4 |
Copyright © 2017 Jeroen Sormani
|
5 |
|
6 |
|
7 |
+
# Current version: 1.0.12
|
8 |
|
9 |
# Changelog
|
10 |
|
11 |
+
= 1.0.12 - 30/12/2021 =
|
12 |
+
|
13 |
+
* [Fix] - Adding condition group did not change the template ID(s)
|
14 |
+
|
15 |
+
= 1.0.11 - 30/11/2021 =
|
16 |
+
|
17 |
+
* [Improvement] - Update repeater.js to have onAddElement() action
|
18 |
+
* [Improvement] - Improved matching for weight condition (fix float matching issue)
|
19 |
+
* [Improvement] - Style improvements
|
20 |
+
* [Fix] - Javascript error undefined variable saving sorting order
|
21 |
+
|
22 |
+
= 1.0.10 - 25/11/2019 =
|
23 |
+
|
24 |
+
* [Fix] - Coupon condition possibly giving warning when no coupon is applied
|
25 |
+
* [Improvement] - Allow for 'Coupon' - equal - {empty} - for a 'no coupon applied' condition
|
26 |
+
|
27 |
+
= 1.0.9 - 05/07/2019 =
|
28 |
+
|
29 |
+
* [Add] - Value field input validation for order amount / weight conditions
|
30 |
+
* [Fix] - 'No shipping class' in shipping class condition not always working as expected
|
31 |
+
* [Fix] - Possible notice from 'Page' condition on non-pages
|
32 |
+
* [Fix] - Duplicating condition groups with conditions using Select2 now continue to work
|
33 |
+
* [Improvement] - Shipping method condition matches only against chosen methods of available shipping packages
|
34 |
+
|
35 |
= 1.0.8 - 20/08/2018 =
|
36 |
|
37 |
* [Improvement] - Stock status condition now includes 'On backorder'
|
78 |
|
79 |
= 1.0.0 =
|
80 |
|
81 |
+
First release
|
package.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "woocommerce-advanced-free-shipping",
|
3 |
+
"devDependencies": {
|
4 |
+
"@babel/core": "^7.4.0",
|
5 |
+
"@babel/preset-env": "^7.4.2",
|
6 |
+
"browser-sync": "^2.26.14",
|
7 |
+
"gulp": "^4.0.2",
|
8 |
+
"gulp-babel": "^8.0.0",
|
9 |
+
"gulp-rename": "^1.4.0",
|
10 |
+
"gulp-sass": "^5.1.0",
|
11 |
+
"gulp-sourcemaps": "^2.6.5",
|
12 |
+
"gulp-uglify": "^3.0.2",
|
13 |
+
"sass": "^1.54.5"
|
14 |
+
},
|
15 |
+
"author": "Jeroen Sormani"
|
16 |
+
}
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: sormano
|
3 |
Tags: woocommerce shipping, woocommerce, shipping, woocommerce free shipping, woocommerce free, woocommerce advanced free shipping, wc free shipping, wc shipping, advanced shipping, pro shipping, table rate shipping, country shipping, free shipping
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.1.
|
7 |
-
Requires PHP:
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -87,10 +87,18 @@ The short answer to this is 'no', the long answer comes down to 'possibly'. I wr
|
|
87 |
|
88 |
The current version of the plugin - 1.1.0 - doesn't have the ability to show multiple Advanced Free Shipping rates at the same time.
|
89 |
During first development I made the - in hindsight - wrong decision thinking "Why would anyone need multiple WooCommerce free shipping options at the same time".
|
90 |
-
In the future this will likely be changed, for now I recommend taking a look at the [Advanced Shipping
|
91 |
|
92 |
-
= The shipping rates I
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
== Screenshots ==
|
96 |
|
@@ -101,6 +109,13 @@ In the future this will likely be changed, for now I recommend taking a look at
|
|
101 |
|
102 |
== Changelog ==
|
103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
= 1.1.4 - 10-04-2018 =
|
105 |
|
106 |
* [Improvement] - Improved mobile admin view
|
2 |
Contributors: sormano
|
3 |
Tags: woocommerce shipping, woocommerce, shipping, woocommerce free shipping, woocommerce free, woocommerce advanced free shipping, wc free shipping, wc shipping, advanced shipping, pro shipping, table rate shipping, country shipping, free shipping
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 6.0
|
6 |
+
Stable tag: 1.1.5
|
7 |
+
Requires PHP: 7.0
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
87 |
|
88 |
The current version of the plugin - 1.1.0 - doesn't have the ability to show multiple Advanced Free Shipping rates at the same time.
|
89 |
During first development I made the - in hindsight - wrong decision thinking "Why would anyone need multiple WooCommerce free shipping options at the same time".
|
90 |
+
In the future this will likely be changed, for now I recommend taking a look at the [Advanced Shipping for WooCommerce](http://codecanyon.net/item/woocommerce-advanced-shipping/8634573) plugin which does have the ability to show all rates that match the conditions.
|
91 |
|
92 |
+
= The shipping rates I configured are not showing at the cart/check, why? =
|
93 |
|
94 |
+
There are two common reasons why a rate may not be appearing when expected.
|
95 |
+
|
96 |
+
1) Shipping cache. It could be you're looking at cached shipping rates. I'd recommend enabling the [shipping debug mode](https://jeroensormani.com/shipping-debug-mode/) when testing.
|
97 |
+
|
98 |
+
2) A conflict in the conditions prevents the rate from appearing. For example, having two 'Country' conditions in one *condition group* is not possible.
|
99 |
+
Try and set a single condition such as 'Subtotal - greater - 0' and see if that will appear.
|
100 |
+
|
101 |
+
If after the above still no rate is showing it is most commonly a third party element that is interfering. Try disabling all other plugins / switch to a default theme and see if the rate is appearing then.
|
102 |
|
103 |
== Screenshots ==
|
104 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.1.5 - 06-09-2022 =
|
113 |
+
|
114 |
+
* [Fix] - Fixed wrong named action from 'woocommerce_advanced_fees_condition_value_field_type_' to 'woocommerce_advanced_free_shipping_condition_value_field_type_'
|
115 |
+
* [Fix] - Show in overview future scheduled rates
|
116 |
+
* [Improvement] - Update WP Conditions to 1.0.12
|
117 |
+
- [Fix] - PHP 8.0 compatibility with the Coupon condition
|
118 |
+
|
119 |
= 1.1.4 - 10-04-2018 =
|
120 |
|
121 |
* [Improvement] - Improved mobile admin view
|
woocommerce-advanced-free-shipping.php
CHANGED
@@ -3,12 +3,12 @@
|
|
3 |
* Plugin Name: WooCommerce Advanced Free Shipping
|
4 |
* Plugin URI: https://wordpress.org/plugins/woocommerce-advanced-free-shipping/
|
5 |
* Description: WooCommerce Advanced Free Shipping is an plugin which allows you to set up advanced free shipping conditions.
|
6 |
-
* Version: 1.1.
|
7 |
* Author: Jeroen Sormani
|
8 |
* Author URI: https://jeroensormani.com/
|
9 |
* Text Domain: woocommerce-advanced-free-shipping
|
10 |
* WC requires at least: 3.0.0
|
11 |
-
* WC tested up to:
|
12 |
|
13 |
* Copyright Jeroen Sormani
|
14 |
*
|
@@ -50,7 +50,7 @@ class WooCommerce_Advanced_Free_Shipping {
|
|
50 |
* @since 1.0.4
|
51 |
* @var string $version Plugin version number.
|
52 |
*/
|
53 |
-
public $version = '1.1.
|
54 |
|
55 |
|
56 |
/**
|
3 |
* Plugin Name: WooCommerce Advanced Free Shipping
|
4 |
* Plugin URI: https://wordpress.org/plugins/woocommerce-advanced-free-shipping/
|
5 |
* Description: WooCommerce Advanced Free Shipping is an plugin which allows you to set up advanced free shipping conditions.
|
6 |
+
* Version: 1.1.5
|
7 |
* Author: Jeroen Sormani
|
8 |
* Author URI: https://jeroensormani.com/
|
9 |
* Text Domain: woocommerce-advanced-free-shipping
|
10 |
* WC requires at least: 3.0.0
|
11 |
+
* WC tested up to: 6.8
|
12 |
|
13 |
* Copyright Jeroen Sormani
|
14 |
*
|
50 |
* @since 1.0.4
|
51 |
* @var string $version Plugin version number.
|
52 |
*/
|
53 |
+
public $version = '1.1.5';
|
54 |
|
55 |
|
56 |
/**
|