Changeset 3736443
- Timestamp:
- 10/09/2026 10:52:21 AM (2 weeks ago)
- Location:
- conditional-extra-fees-for-woocommerce
- Files:
-
- 175 added
- 11 edited
-
tags/1.1.70 (added)
-
tags/1.1.70/LICENSE.txt (added)
-
tags/1.1.70/README.txt (added)
-
tags/1.1.70/admin (added)
-
tags/1.1.70/admin/additional-charges (added)
-
tags/1.1.70/admin/additional-charges/additional-charges.php (added)
-
tags/1.1.70/admin/additional-charges/cart-quantity-charges.php (added)
-
tags/1.1.70/admin/additional-charges/cart-subtotal-charges.php (added)
-
tags/1.1.70/admin/additional-charges/image (added)
-
tags/1.1.70/admin/additional-charges/image/category-quantity.png (added)
-
tags/1.1.70/admin/additional-charges/image/category-subtotal.png (added)
-
tags/1.1.70/admin/additional-charges/image/category-weight.png (added)
-
tags/1.1.70/admin/additional-charges/image/product-quantity.png (added)
-
tags/1.1.70/admin/additional-charges/image/product-subtotal.png (added)
-
tags/1.1.70/admin/additional-charges/image/product-weight.png (added)
-
tags/1.1.70/admin/additional-charges/image/shippingclass-quantity.png (added)
-
tags/1.1.70/admin/additional-charges/image/shippingclass-subtotal.png (added)
-
tags/1.1.70/admin/additional-charges/image/shippingclass-weight.png (added)
-
tags/1.1.70/admin/additional-charges/includes.php (added)
-
tags/1.1.70/admin/additional-charges/pro-charges.php (added)
-
tags/1.1.70/admin/additional-charges/template (added)
-
tags/1.1.70/admin/additional-charges/template/additional-charges.php (added)
-
tags/1.1.70/admin/additional-charges/template/quantity-based-charges.php (added)
-
tags/1.1.70/admin/additional-charges/template/subtotal-based-charges.php (added)
-
tags/1.1.70/admin/additional-charges/template/weight-based-charges.php (added)
-
tags/1.1.70/admin/additional-charges/weight-based-charges.php (added)
-
tags/1.1.70/admin/class-analytics.php (added)
-
tags/1.1.70/admin/class-conditional-fees-rule-woocommerce-add-fees-rule.php (added)
-
tags/1.1.70/admin/class-conditional-fees-rule-woocommerce-admin.php (added)
-
tags/1.1.70/admin/class-conditional-fees-rule-woocommerce-list-fees-rules.php (added)
-
tags/1.1.70/admin/class-conditional-fees-rule-woocommerce-menu.php (added)
-
tags/1.1.70/admin/class-customfields.php (added)
-
tags/1.1.70/admin/class-payment-processing-fee.php (added)
-
tags/1.1.70/admin/class-sample-fees.php (added)
-
tags/1.1.70/admin/class-store-fee.php (added)
-
tags/1.1.70/admin/combine-method.php (added)
-
tags/1.1.70/admin/css (added)
-
tags/1.1.70/admin/css/admin.css (added)
-
tags/1.1.70/admin/css/admin.css.map (added)
-
tags/1.1.70/admin/css/bootstrap.css (added)
-
tags/1.1.70/admin/css/images (added)
-
tags/1.1.70/admin/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_diagonals-thick_20_666666_40x40.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_diagonals-thick_8_333333_40x40.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_flat_10_000000_40x100.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_flat_65_ffffff_40x100.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_glass_100_f6f6f6_1x400.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_glass_100_fdf5ce_1x400.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_glass_40_111111_1x400.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_glass_55_1c1c1c_1x400.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_glass_65_ffffff_1x400.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_highlight-hard_40_aaaaaa_1x100.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_inset-hard_45_cd0a0a_1x100.png (added)
-
tags/1.1.70/admin/css/images/ui-bg_inset-hard_55_ffeb80_1x100.png (added)
-
tags/1.1.70/admin/css/images/ui-icons_222222_256x240.png (added)
-
tags/1.1.70/admin/css/images/ui-icons_228ef1_256x240.png (added)
-
tags/1.1.70/admin/css/images/ui-icons_4ca300_256x240.png (added)
-
tags/1.1.70/admin/css/images/ui-icons_bbbbbb_256x240.png (added)
-
tags/1.1.70/admin/css/images/ui-icons_ededed_256x240.png (added)
-
tags/1.1.70/admin/css/images/ui-icons_ef8c08_256x240.png (added)
-
tags/1.1.70/admin/css/images/ui-icons_ffcf29_256x240.png (added)
-
tags/1.1.70/admin/css/images/ui-icons_ffd27a_256x240.png (added)
-
tags/1.1.70/admin/css/images/ui-icons_ffffff_256x240.png (added)
-
tags/1.1.70/admin/css/jquery-confirm.min.css (added)
-
tags/1.1.70/admin/css/jquery-ui.css (added)
-
tags/1.1.70/admin/css/promotion.css (added)
-
tags/1.1.70/admin/css/scss (added)
-
tags/1.1.70/admin/css/scss/admin.scss (added)
-
tags/1.1.70/admin/css/scss/custom.scss (added)
-
tags/1.1.70/admin/css/scss/form-field-layout.scss (added)
-
tags/1.1.70/admin/css/scss/grid.scss (added)
-
tags/1.1.70/admin/css/scss/license.scss (added)
-
tags/1.1.70/admin/css/scss/promotion.scss (added)
-
tags/1.1.70/admin/css/scss/side-menu.scss (added)
-
tags/1.1.70/admin/css/scss/steps-form.scss (added)
-
tags/1.1.70/admin/css/scss/tooltip.scss (added)
-
tags/1.1.70/admin/help.php (added)
-
tags/1.1.70/admin/img (added)
-
tags/1.1.70/admin/img/chat.png (added)
-
tags/1.1.70/admin/img/close.png (added)
-
tags/1.1.70/admin/img/optional-fee.png (added)
-
tags/1.1.70/admin/img/pi-web-solution.svg (added)
-
tags/1.1.70/admin/img/pi.svg (added)
-
tags/1.1.70/admin/index.php (added)
-
tags/1.1.70/admin/js (added)
-
tags/1.1.70/admin/js/conditional-fees-rule-woocommerce-admin.js (added)
-
tags/1.1.70/admin/js/extra-charge-additional-charges.js (added)
-
tags/1.1.70/admin/js/jquery-confirm.min.js (added)
-
tags/1.1.70/admin/option.php (added)
-
tags/1.1.70/admin/partials (added)
-
tags/1.1.70/admin/partials/addfeesRule.php (added)
-
tags/1.1.70/admin/partials/conditional-discount-rule-woocommerce-admin-display.php (added)
-
tags/1.1.70/admin/partials/listfeesRule.php (added)
-
tags/1.1.70/admin/selection_rules (added)
-
tags/1.1.70/admin/selection_rules/includes.php (added)
-
tags/1.1.70/admin/selection_rules/js (added)
-
tags/1.1.70/admin/selection_rules/js/dynamic_form.js (added)
-
tags/1.1.70/admin/selection_rules/pisol_method.php (added)
-
tags/1.1.70/admin/selection_rules/pisol_rule_form.php (added)
-
tags/1.1.70/admin/selection_rules/pisol_selection_rule_main.php (added)
-
tags/1.1.70/admin/selection_rules/rules (added)
-
tags/1.1.70/admin/selection_rules/rules/advance-shipping.php (added)
-
tags/1.1.70/admin/selection_rules/rules/cart-subtotal-before-discount.php (added)
-
tags/1.1.70/admin/selection_rules/rules/category_product.php (added)
-
tags/1.1.70/admin/selection_rules/rules/country.php (added)
-
tags/1.1.70/admin/selection_rules/rules/coupon.php (added)
-
tags/1.1.70/admin/selection_rules/rules/delivery_type.php (added)
-
tags/1.1.70/admin/selection_rules/rules/height.php (added)
-
tags/1.1.70/admin/selection_rules/rules/ip-country.php (added)
-
tags/1.1.70/admin/selection_rules/rules/length.php (added)
-
tags/1.1.70/admin/selection_rules/rules/pickup_location.php (added)
-
tags/1.1.70/admin/selection_rules/rules/postcode.php (added)
-
tags/1.1.70/admin/selection_rules/rules/pro_rules.php (added)
-
tags/1.1.70/admin/selection_rules/rules/product.php (added)
-
tags/1.1.70/admin/selection_rules/rules/product_quantity.php (added)
-
tags/1.1.70/admin/selection_rules/rules/quantity.php (added)
-
tags/1.1.70/admin/selection_rules/rules/selected_delivery_date.php (added)
-
tags/1.1.70/admin/selection_rules/rules/selected_delivery_day.php (added)
-
tags/1.1.70/admin/selection_rules/rules/shipping_class.php (added)
-
tags/1.1.70/admin/selection_rules/rules/state.php (added)
-
tags/1.1.70/admin/selection_rules/rules/user.php (added)
-
tags/1.1.70/admin/selection_rules/rules/user_role.php (added)
-
tags/1.1.70/admin/selection_rules/rules/weight.php (added)
-
tags/1.1.70/admin/selection_rules/rules/width.php (added)
-
tags/1.1.70/admin/selection_rules/rules/zone.php (added)
-
tags/1.1.70/block (added)
-
tags/1.1.70/block/class-woo-block.php (added)
-
tags/1.1.70/block/class-woo-payment-method.php (added)
-
tags/1.1.70/block/css (added)
-
tags/1.1.70/block/css/block.css (added)
-
tags/1.1.70/block/includes.php (added)
-
tags/1.1.70/block/js (added)
-
tags/1.1.70/block/js/block-payment.js (added)
-
tags/1.1.70/block/js/block.js (added)
-
tags/1.1.70/conditional-fees-rule-woocommerce.php (added)
-
tags/1.1.70/includes (added)
-
tags/1.1.70/includes/Pro_Warning.php (added)
-
tags/1.1.70/includes/background.png (added)
-
tags/1.1.70/includes/class-common-cart.php (added)
-
tags/1.1.70/includes/class-conditional-fees-rule-woocommerce-activator.php (added)
-
tags/1.1.70/includes/class-conditional-fees-rule-woocommerce-deactivator.php (added)
-
tags/1.1.70/includes/class-conditional-fees-rule-woocommerce-i18n.php (added)
-
tags/1.1.70/includes/class-conditional-fees-rule-woocommerce-loader.php (added)
-
tags/1.1.70/includes/class-conditional-fees-rule-woocommerce.php (added)
-
tags/1.1.70/includes/dependency.php (added)
-
tags/1.1.70/includes/help.php (added)
-
tags/1.1.70/includes/includes.php (added)
-
tags/1.1.70/includes/index.php (added)
-
tags/1.1.70/includes/pisol.class.form.php (added)
-
tags/1.1.70/includes/review-icon.svg (added)
-
tags/1.1.70/includes/review.php (added)
-
tags/1.1.70/index.php (added)
-
tags/1.1.70/languages (added)
-
tags/1.1.70/languages/conditional-extra-fees-woocommerce.pot (added)
-
tags/1.1.70/public (added)
-
tags/1.1.70/public/class-apply-fees.php (added)
-
tags/1.1.70/public/class-apply-payment-processing-fee.php (added)
-
tags/1.1.70/public/class-conditional-fees-rule-woocommerce-public.php (added)
-
tags/1.1.70/public/class-fees.php (added)
-
tags/1.1.70/public/class-products-matching-rule.php (added)
-
tags/1.1.70/public/css (added)
-
tags/1.1.70/public/css/conditional-fees-rule-woocommerce-public.css (added)
-
tags/1.1.70/public/index.php (added)
-
tags/1.1.70/public/js (added)
-
tags/1.1.70/public/js/conditional-fees-rule-woocommerce-public.js (added)
-
tags/1.1.70/public/js/divi-fix.js (added)
-
tags/1.1.70/public/partials (added)
-
tags/1.1.70/public/partials/conditional-discount-rule-woocommerce-public-display.php (added)
-
tags/1.1.70/uninstall.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/additional-charges/template/weight-based-charges.php (modified) (2 diffs)
-
trunk/admin/css/admin.css (modified) (2 diffs)
-
trunk/admin/css/scss/steps-form.scss (modified) (2 diffs)
-
trunk/admin/img/optional-fee.png (added)
-
trunk/admin/partials/addfeesRule.php (modified) (5 diffs)
-
trunk/admin/selection_rules/rules/height.php (modified) (3 diffs)
-
trunk/admin/selection_rules/rules/length.php (modified) (2 diffs)
-
trunk/admin/selection_rules/rules/weight.php (modified) (2 diffs)
-
trunk/admin/selection_rules/rules/width.php (modified) (2 diffs)
-
trunk/conditional-fees-rule-woocommerce.php (modified) (3 diffs)
-
trunk/includes/help.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
conditional-extra-fees-for-woocommerce/trunk/README.txt
r3734325 r3736443 5 5 Requires at least: 5.3 6 6 Tested up to: 7.1 7 Stable tag: 1.1. 697 Stable tag: 1.1.70 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 344 344 == Changelog == 345 345 346 = 1.1.70 = 347 * re-arrangement of the fields 348 346 349 = 1.1.69 = 347 350 * Review v2 -
conditional-extra-fees-for-woocommerce/trunk/admin/additional-charges/template/weight-based-charges.php
r3647143 r3736443 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) { exit; } 3 4 $weight_unit = get_option( 'woocommerce_weight_unit', 'kg' ); 3 5 ?> 4 6 <script> … … 38 40 <tr> 39 41 <th><?php esc_html_e('Category', 'conditional-extra-fees-woocommerce'); ?></th> 40 <th class="pi-min-col"><?php esc_html_e('Min Weight', 'conditional-extra-fees-woocommerce'); ?></th>41 <th class="pi-min-col"><?php esc_html_e('Max Weight', 'conditional-extra-fees-woocommerce'); ?></th>42 <th class="pi-min-col"><?php esc_html_e('Min Weight', 'conditional-extra-fees-woocommerce'); echo ' ('.$weight_unit.')'; ?></th> 43 <th class="pi-min-col"><?php esc_html_e('Max Weight', 'conditional-extra-fees-woocommerce'); echo ' ('.$weight_unit.')'; ?></th> 42 44 <th class="pi-fee-col"><?php esc_html_e('Fees', 'conditional-extra-fees-woocommerce'); ?> <?php pisol_cefw_help::inline('weight_short_code_help', 'Using short code'); ?></th> 43 45 <th></th> -
conditional-extra-fees-for-woocommerce/trunk/admin/css/admin.css
r3734403 r3736443 1207 1207 } 1208 1208 1209 .pi-step-content:has( .pi-step-header.bg-dark) {1209 .pi-step-content:has(> .pi-step-header.bg-dark) { 1210 1210 border: 2px solid var(--dark); 1211 1211 } … … 1219 1219 } 1220 1220 1221 .pi-step-content[open] .pi-step-header, .pi-step-container:not(.pi-closed).pi-step-header {1221 .pi-step-content[open] + .pi-step-header { 1222 1222 border-bottom: 1px solid #fff; 1223 1223 } -
conditional-extra-fees-for-woocommerce/trunk/admin/css/scss/steps-form.scss
r3690630 r3736443 50 50 } 51 51 52 .pi-step-content:has( .pi-step-header.bg-dark) {52 .pi-step-content:has( > .pi-step-header.bg-dark) { 53 53 border:2px solid var(--dark); 54 54 } … … 63 63 } 64 64 65 .pi-step-content[open] .pi-step-header, .pi-step-container:not(.pi-closed).pi-step-header{65 .pi-step-content[open] + .pi-step-header{ 66 66 border-bottom:1px solid #fff; 67 67 } -
conditional-extra-fees-for-woocommerce/trunk/admin/partials/addfeesRule.php
r3690630 r3736443 60 60 <div class="col-12 col-sm-5"> 61 61 <label for="pi_is_taxable" class="h6"><?php echo esc_html__('Fee type','conditional-extra-fees-woocommerce'); ?></label> 62 <br><i>Choose how the fee is calculated — Fixed amount or Percentage of cart total.</i>62 <br><i>Choose how the fee is calculated — Fixed amount or Percentage of cart syb-total.</i> 63 63 </div> 64 64 <div class="col-12 col-sm"> … … 80 80 </div> 81 81 82 <!-- Is optional fees --> 83 <div class="row py-3 border-bottom align-items-center"> 84 <div class="col-12 col-sm-5"> 85 <label for="pi_is_optional_fees" class="h6"><?php echo esc_html__('Is this fee optional','conditional-extra-fees-woocommerce'); ?> <span class="text-primary">*</span></label><br> 86 <i><?php echo esc_html__('Customer will be having the option to select this fee or not','conditional-extra-fees-woocommerce'); ?></i> 87 <?php pisol_cefw_help::image(CONDITIONAL_FEES_RULE_WOOCOMMERCE_PLUGIN_FOLDER_URL."admin/img/optional-fee.png"); ?> 88 </div> 89 <div class="col-12 col-sm"> 90 <select class="form-control" name="pi_is_optional_fees" id="pi_is_optional_fees"> 91 <option value="no" <?php selected( $data['pi_is_optional_fees'], "no" ); ?>><?php esc_html_e('No','conditional-extra-fees-woocommerce'); ?></option> 92 <option value="yes" <?php selected( $data['pi_is_optional_fees'], "yes" ); ?>><?php esc_html_e('Yes','conditional-extra-fees-woocommerce'); ?></option> 93 </select> 94 </div> 95 </div> 96 82 97 <!-- IS Taxable --> 83 98 <div class="row py-3 border-bottom align-items-center"> … … 86 101 <br><i>Should this fee be considered taxable?</i> 87 102 </div> 88 <div class="col-12 col-sm ">103 <div class="col-12 col-sm-2"> 89 104 <select class="form-control" name="pi_fees_taxable" id="pi_fees_taxable"> 90 105 <option value="no" <?php selected( $data['pi_fees_taxable'], "no" ); ?>><?php echo esc_html__('No','conditional-extra-fees-woocommerce'); ?></option> … … 92 107 </select> 93 108 </div> 94 </div> 95 96 <!-- Tax Class --> 97 <div class="row py-3 border-bottom align-items-center" id="row_pi_fees_tax_class"> 98 <div class="col-12 col-sm-5"> 99 <label for="pi_fees_tax_class" class="h6"><?php echo esc_html__('Select tax class','conditional-extra-fees-woocommerce'); ?> <span class="text-primary">*</span></label> 100 <br><i><?php echo esc_html__('Select the tax class for this fee. If you are not sure, leave it as Standard.','conditional-extra-fees-woocommerce'); ?></i> 101 </div> 102 <div class="col-12 col-sm"> 103 <select class="form-control" name="pi_fees_tax_class" id="pi_fees_tax_class"> 104 109 <div class="col-12 col-sm-3" id="row_pi_fees_tax_class"> 110 <select class="form-control" name="pi_fees_tax_class" id="pi_fees_tax_class" title="Tax class decide the tax rate applied on this fee amount"> 105 111 <?php 106 echo '<option value="standard" '.selected( $data['pi_fees_tax_class'], 'standard', true ).' > Standard</option>';112 echo '<option value="standard" '.selected( $data['pi_fees_tax_class'], 'standard', true ).' >Tax class: Standard</option>'; 107 113 if(!empty($data['tax_classes']) && is_array($data['tax_classes'])){ 108 114 foreach($data['tax_classes'] as $tax_class){ 109 echo '<option value="'.esc_attr($tax_class->slug).'" '.selected( $data['pi_fees_tax_class'], $tax_class->slug, true ).' > '.esc_html($tax_class->name).'</option>';115 echo '<option value="'.esc_attr($tax_class->slug).'" '.selected( $data['pi_fees_tax_class'], $tax_class->slug, true ).' >Tax class: '.esc_html($tax_class->name).'</option>'; 110 116 } 111 117 } … … 115 121 </div> 116 122 117 118 <!-- Roundoff --> 119 <div class="row py-3 border-bottom align-items-center"> 120 <div class="col-12 col-sm-5"> 121 <label for="pi_cost" class="h6"><?php echo esc_html__('Round off to integer','conditional-extra-fees-woocommerce'); ?></label><?php pisol_cefw_help::tooltip('If the fee amount is a floating number then you can round off final fee amount to integer'); ?> 122 <br><i><?php echo esc_html__('Round the calculated fee to the nearest whole number.','conditional-extra-fees-woocommerce'); ?></i> 123 </div> 124 <div class="col-12 col-sm"> 125 <select name="round_off" class="form-control"> 126 <option value=""><?php echo esc_html__('No','conditional-extra-fees-woocommerce'); ?></option> 127 <option value="yes" <?php selected( $data['round_off'], "yes" ); ?> title="E.g: 2.7 = 3, 2.1 = 2, 2.5 = 3"><?php echo esc_html__('Nearest integer','conditional-extra-fees-woocommerce'); ?></option> 128 <option value="ceil" <?php selected( $data['round_off'], "ceil" ); ?> title="E.g: 2.7 = 3, 2.1 = 3" disabled="disabled"><?php echo esc_html__('Nearest higher integer (PRO)','conditional-extra-fees-woocommerce'); ?></option> 129 <option value="floor" <?php selected( $data['round_off'], "floor" ); ?> title="E.g: 2.7 = 2, 2.1 = 2" disabled="disabled"><?php echo esc_html__('Nearest lower integer (PRO)','conditional-extra-fees-woocommerce'); ?></option> 130 </select> 131 </div> 132 </div> 133 134 <!-- Is optional fees --> 135 <div class="row py-3 border-bottom align-items-center"> 136 <div class="col-12 col-sm-5"> 137 <label for="pi_is_optional_fees" class="h6"><?php echo esc_html__('Is this fee optional','conditional-extra-fees-woocommerce'); ?> <span class="text-primary">*</span></label><br> 138 <i><?php echo esc_html__('Customer will be having the option to select this fee or not','conditional-extra-fees-woocommerce'); ?></i> 139 </div> 140 <div class="col-12 col-sm"> 141 <select class="form-control" name="pi_is_optional_fees" id="pi_is_optional_fees"> 142 <option value="no" <?php selected( $data['pi_is_optional_fees'], "no" ); ?>><?php esc_html_e('No','conditional-extra-fees-woocommerce'); ?></option> 143 <option value="yes" <?php selected( $data['pi_is_optional_fees'], "yes" ); ?>><?php esc_html_e('Yes','conditional-extra-fees-woocommerce'); ?></option> 144 </select> 145 </div> 146 </div> 147 148 <!-- Optional Fees Title --> 149 <div class="row py-3 border-bottom align-items-center free-version" id="row_pi_optional_title"> 150 <div class="col-12 col-sm-5"> 151 <label for="pi_checkbox_title" class="h6"><?php echo esc_html__('Text shown next to the optional fee checkbox','conditional-extra-fees-woocommerce'); ?></label> 152 <br><i><?php echo esc_html__('If left blank then Fee title will be used in the checkbox','conditional-extra-fees-woocommerce'); ?></i> 153 </div> 154 <div class="col-12 col-sm-7"> 155 <input type="text" value="" class="form-control" name="pi_checkbox_title" id="pi_checkbox_title"> 156 </div> 157 </div> 158 159 <!-- Auto selected fees --> 160 <div class="row py-3 border-bottom align-items-center free-version" id="row_pi_selected_by_default"> 161 <div class="col-12 col-sm-5"> 162 <label for="pi_selected_by_default" class="h6"><?php echo esc_html__('Auto selected the fees by default','conditional-extra-fees-woocommerce'); ?></label> 163 <br><i><?php echo esc_html__('When the fee is optional, The fee checkbox will be auto selected on the checkout page initially, if customer don\'t want to pay for that fee they can unselect that checkbox and remove that fee','conditional-extra-fees-woocommerce'); ?></i> 164 </div> 165 <div class="col-12 col-sm"> 166 <select class="form-control" name="pi_selected_by_default" id="pi_selected_by_default"> 167 <option value="no"><?php esc_html_e('No','conditional-extra-fees-woocommerce'); ?></option> 168 <option value="yes"><?php esc_html_e('Yes','conditional-extra-fees-woocommerce'); ?></option> 169 </select> 170 </div> 171 </div> 172 173 <!-- Tool tip --> 174 <div class="row py-3 border-bottom align-items-center free-version" id="row_pi_tooltip"> 175 <div class="col-12 col-sm-5"> 176 <label for="pi_tooltip" class="h6"><?php echo esc_html__('Tool tip shown next to the fee amount','conditional-extra-fees-woocommerce'); ?> </label> 177 <br><i><?php echo esc_html__('Plain text (no HTML) tooltip shown beside the fee on the frontend.','conditional-extra-fees-woocommerce'); ?></i> 178 </div> 179 <div class="col-12 col-sm-7"> 180 <input type="text" value="" class="form-control" name="pi_tooltip" id="pi_tooltip"> 181 </div> 182 </div> 183 184 <!-- currency --> 185 <div class="row py-4 border-bottom align-items-center"> 186 <div class="col-12 col-sm-5"> 187 <label for="pi_currency" class="h6"><?php echo esc_html__('Apply for currency (useful for multi currency website only)','conditional-extra-fees-woocommerce'); ?></label><br><i><?php echo esc_html__('Restrict this fee to a specific currency. Leave empty to apply to all currencies.','conditional-extra-fees-woocommerce'); ?></i> 188 </div> 189 <div class="col-12 col-sm"> 190 <select name="pi_currency[]" id="pi_currency" multiple="multiple"> 191 <?php self::get_currency($data['pi_currency']); ?> 192 </select> 193 </div> 194 </div> 195 196 <!-- Start time --> 197 <div class="row py-3 border-bottom align-items-center"> 198 <div class="col-12 col-sm-5"> 199 <label for="pi_cost" class="h6"><?php echo esc_html__('Fee Validity Period','conditional-extra-fees-woocommerce'); ?> <span class="text-primary"></span></label> 200 <br><i><?php echo esc_html__('Set a start and end date for this fee. If left empty, the fee will be valid indefinitely.','conditional-extra-fees-woocommerce'); ?></i> 201 </div> 202 <div class="col-12 col-sm-3"> 203 <input type="date" value="<?php echo esc_attr($data['pi_fees_start_time']); ?>" class="form-control" name="pi_fees_start_time" id="pi_fees_start_time" autocomplete="off"> 204 <i class="d-block mt-2">Start date</i> 205 </div> 206 <div class="col-12 col-sm-3"> 207 <input type="date" value="<?php echo esc_attr($data['pi_fees_end_time']); ?>" class="form-control" name="pi_fees_end_time" id="pi_fees_end_time" autocomplete="off"> 208 <i class="d-block mt-2">End date</i> 209 </div> 210 </div> 123 <div class="pi-step-container"> 124 <details class="pi-step-content"> 125 <summary class="pi-step-header bg-dark text-light"> 126 <div> 127 <strong class="pi-step-title"><?php echo esc_html__('Other basic settigns','conditional-extra-fees-woocommerce'); ?><small>(Non Required)</small></strong> 128 <p>Roundoff, Currency, Minimum fee, Maximum fee & Valid period</p> 129 </div> 130 <div> 131 <span class="dashicons dashicons-plus-alt2 mr-4"></span> 132 <span class="dashicons dashicons-minus mr-4"></span> 133 </div> 134 </summary> 135 <div class="pi-step-description"> 136 <!-- Roundoff --> 137 <div class="row py-3 border-bottom align-items-center"> 138 <div class="col-12 col-sm-5"> 139 <label for="pi_cost" class="h6"><?php echo esc_html__('Round off to integer','conditional-extra-fees-woocommerce'); ?></label><?php pisol_cefw_help::tooltip('If the fee amount is a floating number then you can round off final fee amount to integer'); ?> 140 <br><i><?php echo esc_html__('Round the calculated fee to the nearest whole number.','conditional-extra-fees-woocommerce'); ?></i> 141 </div> 142 <div class="col-12 col-sm"> 143 <select name="round_off" class="form-control"> 144 <option value=""><?php echo esc_html__('No','conditional-extra-fees-woocommerce'); ?></option> 145 <option value="yes" <?php selected( $data['round_off'], "yes" ); ?> title="E.g: 2.7 = 3, 2.1 = 2, 2.5 = 3"><?php echo esc_html__('Nearest integer','conditional-extra-fees-woocommerce'); ?></option> 146 <option value="ceil" <?php selected( $data['round_off'], "ceil" ); ?> title="E.g: 2.7 = 3, 2.1 = 3" disabled="disabled"><?php echo esc_html__('Nearest higher integer (PRO)','conditional-extra-fees-woocommerce'); ?></option> 147 <option value="floor" <?php selected( $data['round_off'], "floor" ); ?> title="E.g: 2.7 = 2, 2.1 = 2" disabled="disabled"><?php echo esc_html__('Nearest lower integer (PRO)','conditional-extra-fees-woocommerce'); ?></option> 148 </select> 149 </div> 150 </div> 151 152 <!-- currency --> 153 <div class="row py-4 border-bottom align-items-center"> 154 <div class="col-12 col-sm-5"> 155 <label for="pi_currency" class="h6"><?php echo esc_html__('Apply for currency (useful for multi currency website only)','conditional-extra-fees-woocommerce'); ?></label><br><i><?php echo esc_html__('Restrict this fee to a specific currency. Leave empty to apply to all currencies.','conditional-extra-fees-woocommerce'); ?></i> 156 </div> 157 <div class="col-12 col-sm"> 158 <select name="pi_currency[]" id="pi_currency" multiple="multiple"> 159 <?php self::get_currency($data['pi_currency']); ?> 160 </select> 161 </div> 162 </div> 163 164 <!-- Start time --> 165 <div class="row py-3 border-bottom align-items-center"> 166 <div class="col-12 col-sm-5"> 167 <label for="pi_cost" class="h6"><?php echo esc_html__('Fee Validity Period','conditional-extra-fees-woocommerce'); ?> <span class="text-primary"></span></label> 168 <br><i><?php echo esc_html__('Set a start and end date for this fee. If left empty, the fee will be valid indefinitely.','conditional-extra-fees-woocommerce'); ?></i> 169 </div> 170 <div class="col-12 col-sm-3"> 171 <input type="date" value="<?php echo esc_attr($data['pi_fees_start_time']); ?>" class="form-control" name="pi_fees_start_time" id="pi_fees_start_time" autocomplete="off"> 172 <i class="d-block mt-2">Start date</i> 173 </div> 174 <div class="col-12 col-sm-3"> 175 <input type="date" value="<?php echo esc_attr($data['pi_fees_end_time']); ?>" class="form-control" name="pi_fees_end_time" id="pi_fees_end_time" autocomplete="off"> 176 <i class="d-block mt-2">End date</i> 177 </div> 178 </div> 179 180 <div class="row py-4 border-bottom align-items-center free-version"> 181 <div class="col-12 col-sm-5"> 182 <label for="pi_min_cost" class="h6">Min fees ($) </label><br><i>Fees can't be less then it's min fees. Leave it blank if you don't want to restrict it.</i> 183 </div> 184 <div class="col-12 col-sm"> 185 <input type="number" min="0" step="0.0001" value="" class="form-control" name="pi_min_cost" id="pi_min_cost"> 186 </div> 187 </div> 188 189 <div class="row py-4 border-bottom align-items-center free-version"> 190 <div class="col-12 col-sm-5"> 191 <label for="pi_max_cost" class="h6">Max fees ($) </label><br><i>Fees can't be more then it's max fees. Leave it blank if you don't want to restrict it. This is useful as fees can be dynamic and if you want to restrict it to certain amount you can do that using this</i> 192 </div> 193 <div class="col-12 col-sm"> 194 <input type="number" min="0" step="0.0001" value="" class="form-control" name="pi_max_cost" id="pi_max_cost"> 195 </div> 196 </div> 197 198 <!-- Optional Fees Title --> 199 <div class="row py-3 border-bottom align-items-center free-version" id="row_pi_optional_title"> 200 <div class="col-12 col-sm-5"> 201 <label for="pi_checkbox_title" class="h6"><?php echo esc_html__('Text shown next to the optional fee checkbox','conditional-extra-fees-woocommerce'); ?></label> 202 <br><i><?php echo esc_html__('If left blank then Fee title will be used in the checkbox','conditional-extra-fees-woocommerce'); ?></i> 203 </div> 204 <div class="col-12 col-sm-7"> 205 <input type="text" value="" class="form-control" name="pi_checkbox_title" id="pi_checkbox_title"> 206 </div> 207 </div> 208 209 <!-- Auto selected fees --> 210 <div class="row py-3 border-bottom align-items-center free-version" id="row_pi_selected_by_default"> 211 <div class="col-12 col-sm-5"> 212 <label for="pi_selected_by_default" class="h6"><?php echo esc_html__('Auto selected the fees by default','conditional-extra-fees-woocommerce'); ?></label> 213 <br><i><?php echo esc_html__('When the fee is optional, The fee checkbox will be auto selected on the checkout page initially, if customer don\'t want to pay for that fee they can unselect that checkbox and remove that fee','conditional-extra-fees-woocommerce'); ?></i> 214 </div> 215 <div class="col-12 col-sm"> 216 <select class="form-control" name="pi_selected_by_default" id="pi_selected_by_default"> 217 <option value="no"><?php esc_html_e('No','conditional-extra-fees-woocommerce'); ?></option> 218 <option value="yes"><?php esc_html_e('Yes','conditional-extra-fees-woocommerce'); ?></option> 219 </select> 220 </div> 221 </div> 222 223 <!-- Tool tip --> 224 <div class="row py-3 border-bottom align-items-center free-version" id="row_pi_tooltip"> 225 <div class="col-12 col-sm-5"> 226 <label for="pi_tooltip" class="h6"><?php echo esc_html__('Tool tip shown next to the fee amount','conditional-extra-fees-woocommerce'); ?> </label> 227 <br><i><?php echo esc_html__('Plain text (no HTML) tooltip shown beside the fee on the frontend.','conditional-extra-fees-woocommerce'); ?></i> 228 </div> 229 <div class="col-12 col-sm-7"> 230 <input type="text" value="" class="form-control" name="pi_tooltip" id="pi_tooltip"> 231 </div> 232 </div> 233 </div> 234 </div> 235 236 237 238 239 240 241 211 242 <!-- Basic end --> 212 243 </div> -
conditional-extra-fees-for-woocommerce/trunk/admin/selection_rules/rules/height.php
r3438256 r3736443 74 74 //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 75 75 echo Pi_cefw_selection_rule_main::createNumberField($count, $this->condition, null); 76 echo $this->unit(); 76 77 die; 77 78 } … … 79 80 function savedDropdown($html, $values, $count){ 80 81 $html = Pi_cefw_selection_rule_main::createNumberField($count, $this->condition, $values); 82 $html .= $this->unit(); 81 83 return $html; 84 } 85 86 function unit(){ 87 $unit = get_option( 'woocommerce_dimension_unit', 'cm' ); 88 return '<span>(Dimention unit: '.esc_html($unit).')</span>'; 82 89 } 83 90 … … 101 108 102 109 $or_result = false; 103 $cart_max_height = $this->maxProductHeight();110 $cart_max_height = (float) $this->maxProductHeight(); 104 111 105 112 $rule_height = (float)$values[0]; -
conditional-extra-fees-for-woocommerce/trunk/admin/selection_rules/rules/length.php
r3438256 r3736443 74 74 //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 75 75 echo Pi_cefw_selection_rule_main::createNumberField($count, $this->condition, null); 76 echo $this->unit(); 76 77 die; 77 78 } … … 79 80 function savedDropdown($html, $values, $count){ 80 81 $html = Pi_cefw_selection_rule_main::createNumberField($count, $this->condition, $values); 82 $html .= $this->unit(); 81 83 return $html; 84 } 85 86 function unit(){ 87 $unit = get_option( 'woocommerce_dimension_unit', 'cm' ); 88 return '<span>(Dimention unit: '.esc_html($unit).')</span>'; 82 89 } 83 90 -
conditional-extra-fees-for-woocommerce/trunk/admin/selection_rules/rules/weight.php
r3438256 r3736443 74 74 //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 75 75 echo Pi_cefw_selection_rule_main::createNumberField($count, $this->condition, null); 76 echo $this->unit(); 76 77 die; 77 78 } … … 79 80 function savedDropdown($html, $values, $count){ 80 81 $html = Pi_cefw_selection_rule_main::createNumberField($count, $this->condition, $values); 82 $html .= $this->unit(); 81 83 return $html; 84 } 85 86 function unit(){ 87 $unit = get_option( 'woocommerce_weight_unit', 'kg' ); 88 return '<span>(Weight unit: '.esc_html($unit).')</span>'; 82 89 } 83 90 -
conditional-extra-fees-for-woocommerce/trunk/admin/selection_rules/rules/width.php
r3438256 r3736443 74 74 //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 75 75 echo Pi_cefw_selection_rule_main::createNumberField($count, $this->condition, null); 76 echo $this->unit(); 76 77 die; 77 78 } … … 79 80 function savedDropdown($html, $values, $count){ 80 81 $html = Pi_cefw_selection_rule_main::createNumberField($count, $this->condition, $values); 82 $html .= $this->unit(); 81 83 return $html; 84 } 85 86 function unit(){ 87 $unit = get_option( 'woocommerce_dimension_unit', 'cm' ); 88 return '<span>(Dimention unit: '.esc_html($unit).')</span>'; 82 89 } 83 90 -
conditional-extra-fees-for-woocommerce/trunk/conditional-fees-rule-woocommerce.php
r3734325 r3736443 10 10 * 11 11 * @link piwebsolution.com 12 * @since 1.1. 6912 * @since 1.1.70 13 13 * @package Conditional_fees_Rule_Woocommerce 14 14 * … … 17 17 * Plugin URI: https://www.piwebsolution.com/product/conditional-cart-fee-extra-charge-rule-for-woocommerce-extra-fees-pro/ 18 18 * Description: Conditional extra fees for WooCommerce 19 * Version: 1.1. 6919 * Version: 1.1.70 20 20 * Author: PI Websolution 21 21 * Author URI: https://piwebsolution.com … … 62 62 /** 63 63 * Currently plugin version. 64 * Start at version 1.1. 69and use SemVer - https://semver.org64 * Start at version 1.1.70 and use SemVer - https://semver.org 65 65 * Rename this for your plugin and update it as you release new versions. 66 66 */ 67 define( 'CONDITIONAL_FEES_RULE_WOOCOMMERCE_VERSION', '1.1. 69' );67 define( 'CONDITIONAL_FEES_RULE_WOOCOMMERCE_VERSION', '1.1.70' ); 68 68 define('PI_CEFW_BUY_URL', 'https://www.piwebsolution.com/cart/?add-to-cart=15441&variation_id=15442&utm_campaign=conditional-fee&utm_source=website&utm_medium=direct-buy'); 69 69 define('PI_CEFW_PRODUCT_PAGE_URL', 'https://www.piwebsolution.com/product/conditional-cart-fee-extra-charge-rule-for-woocommerce-extra-fees-pro/?utm_campaign=conditional-fee&utm_source=website&utm_medium=direct-buy'); 70 70 define('PI_CEFW_PRICE', '$34'); 71 71 define('PI_CEFW_DELETE_SETTING', false); 72 73 define( 'CONDITIONAL_FEES_RULE_WOOCOMMERCE_PLUGIN_FOLDER_URL', plugin_dir_url( __FILE__ )); 72 74 73 75 /** -
conditional-extra-fees-for-woocommerce/trunk/includes/help.php
r3582713 r3736443 26 26 $msg = '<p class="pisol-tooltip" tooltip="'.esc_html($msg).'"><span class="dashicons dashicons-editor-help"></span></p>'; 27 27 28 if($echo) echo wp_kses_post($msg);28 if($echo) echo ($msg); 29 29 30 30 return $msg;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)