Changeset 3208205
- Timestamp:
- 12/15/2024 02:31:46 PM (16 months ago)
- Location:
- woo-additional-fees-on-checkout-wordpress/trunk
- Files:
-
- 3 edited
-
classes/wps-ext-cst-admin.php (modified) (15 diffs)
-
readme.txt (modified) (1 diff)
-
woo-additional-fees-checkout-free.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-additional-fees-on-checkout-wordpress/trunk/classes/wps-ext-cst-admin.php
r2891885 r3208205 24 24 } 25 25 public static function wps_generate_new_fees(){ 26 $fees_number = (int)$_POST['number']; 26 27 ?> 27 28 28 <div class="wps-ext-cst-fees" id="fees<?php echo $ _POST['number'];?>">29 <div class="wps-ext-cst-fees" id="fees<?php echo $fees_number;?>"> 29 30 <h3 style="border-bottom: 1px solid black;"> 30 31 <span class="fees-title">Unlabelled Fees</span> 31 <span style="float:right; color:red; cursor: pointer;" class="dashicons dashicons-trash" onclick="remove_fees(<?php echo $ _POST['number'];?>)"></span>32 <span style="float:right; color:red; cursor: pointer;" class="dashicons dashicons-trash" onclick="remove_fees(<?php echo $fees_number;?>)"></span> 32 33 </h3> 33 34 <table class="form-table"> … … 36 37 <th scope="row"><label><?php _e( 'Status'); ?><label></th> 37 38 <td> 38 <select name="ext_cst_extra[<?php echo $ _POST['number'];?>][status]" id="ext_cst_status_extra">39 <select name="ext_cst_extra[<?php echo $fees_number;?>][status]" id="ext_cst_status_extra"> 39 40 <option value="enable">Enable</option> 40 41 <option value="disable">Disable</option> … … 45 46 <th scope="row"><label><?php _e( 'Label'); ?></labe></td> 46 47 <td> 47 <input type="text" name="ext_cst_extra[<?php echo $ _POST['number'];?>][label]" class="regular-text code" id="ext_cst_label_extra" value="<?php echo 'Unlabelled Fees #'.$_POST['number'];?>"/>48 <input type="text" name="ext_cst_extra[<?php echo $fees_number;?>][label]" class="regular-text code" id="ext_cst_label_extra" value="<?php echo 'Unlabelled Fees #'.$fees_number;?>"/> 48 49 </td> 49 50 </tr> … … 51 52 <th scope="row"><label><?php _e( 'Label for Billing'); ?></labe></td> 52 53 <td> 53 <input type="text" name="ext_cst_extra[<?php echo $ _POST['number'];?>][label_billing]" class="regular-text code" id="ext_cst_label_billing_extra" value="Unlabelled Fees #<?php echo $_POST['number'];?>"/>54 <input type="text" name="ext_cst_extra[<?php echo $fees_number;?>][label_billing]" class="regular-text code" id="ext_cst_label_billing_extra" value="Unlabelled Fees #<?php echo $fees_number;?>"/> 54 55 </td> 55 56 </tr> … … 57 58 <th scope="row"><label><?php _e( 'Type'); ?><label></th> 58 59 <td> 59 <select name="ext_cst_extra[<?php echo $ _POST['number'];?>][amount_type]" id="ext_cst_amount_type_extra" onchange="showHideTaxShipping(this,<?php echo $_POST['number'];?>)">60 <select name="ext_cst_extra[<?php echo $fees_number;?>][amount_type]" id="ext_cst_amount_type_extra" onchange="showHideTaxShipping(this,<?php echo $fees_number;?>)"> 60 61 <option value="fixed">Fixed</option> 61 62 <option value="percent">Percentage</option> … … 64 65 </td> 65 66 </tr> 66 <tr id="incTax-<?php echo $ _POST['number']; ?>" class="incTax" style="display:none;">67 <tr id="incTax-<?php echo $fees_number; ?>" class="incTax" style="display:none;"> 67 68 <th scope="row"><label><?php _e( 'Calculate fees including TAX'); ?></label></th> 68 69 <td> … … 74 75 </td> 75 76 </tr> 76 <tr id="incShipCosts-<?php echo $ _POST['number']; ?>" class="incShipCosts" style="display:none;">77 <tr id="incShipCosts-<?php echo $fees_number; ?>" class="incShipCosts" style="display:none;"> 77 78 <th scope="row"><label><?php _e( 'Calculate fees including Shipping Costs'); ?></label></th> 78 79 <td> … … 88 89 <th scope="row"><label><?php _e( 'Amount'); ?></labe></td> 89 90 <td> 90 <input type="number" step="any" name="ext_cst_extra[<?php echo $ _POST['number'];?>][amount]" class="fees_amount regular-text code" id="ext_cst_amount_extra<?php echo $_POST['number'];?>" value="1"/>91 <input type="number" step="any" name="ext_cst_extra[<?php echo $fees_number;?>][amount]" class="fees_amount regular-text code" id="ext_cst_amount_extra<?php echo $fees_number;?>" value="1"/> 91 92 </td> 92 93 </tr> … … 94 95 <th scope="row"><label><?php _e( 'Apply Condition'); ?></label></th> 95 96 <td> 96 <select name="ext_cst_extra[<?php echo $ _POST['number']; ?>][apply_type]" id="ext_cst_apply_type<?php echo $_POST['number']; ?>">97 <select name="ext_cst_extra[<?php echo $fees_number; ?>][apply_type]" id="ext_cst_apply_type<?php echo $fees_number; ?>"> 97 98 <option value="one_time">One Time Only</option> 98 99 <option value="multiply">Multiplied By Product Quantity</option> … … 115 116 <th scope="row"><label><?php _e( 'Condition'); ?><label></th> 116 117 <td> 117 <select data-id="<?php echo $ _POST['number'];?>" name="ext_cst_extra_apply_cndtn<?php echo $_POST['number'];?>" id="ext_cst_apply_cndtn_extra<?php echo $_POST['number'];?>" class="ext_cst_cndtn_dropdown" onchange="show_hide_cndtn_extra(<?php echo $_POST['number'];?>)">118 <select data-id="<?php echo $fees_number;?>" name="ext_cst_extra_apply_cndtn<?php echo $fees_number;?>" id="ext_cst_apply_cndtn_extra<?php echo $fees_number;?>" class="ext_cst_cndtn_dropdown" onchange="show_hide_cndtn_extra(<?php echo $fees_number;?>)"> 118 119 <option value="all">All</option> 119 120 <option value="cart_total_amount">Cart Total Amount</option> … … 125 126 </td> 126 127 </tr> 127 <tr id="cart_total_amount<?php echo $ _POST['number'];?>" class="cndtn_mode_extra<?php echo $_POST['number'];?>" style="display: none;">128 <tr id="cart_total_amount<?php echo $fees_number;?>" class="cndtn_mode_extra<?php echo $fees_number;?>" style="display: none;"> 128 129 <th scope="row"><label><?php _e( 'Cart Amount'); ?></labe></td> 129 130 <td> … … 136 137 </td> 137 138 </tr> 138 <tr id="cart_no_product<?php echo $ _POST['number'];?>" class="cndtn_mode_extra<?php echo $_POST['number'];?>" style="display: none;">139 <tr id="cart_no_product<?php echo $fees_number;?>" class="cndtn_mode_extra<?php echo $fees_number;?>" style="display: none;"> 139 140 <th scope="row"><label><?php _e( 'No. Of Product on Cart'); ?></labe></td> 140 141 <td> … … 147 148 </td> 148 149 </tr> 149 <tr id="selected_product<?php echo $ _POST['number'];?>" class="cndtn_mode_extra<?php echo $_POST['number'];?>" style="display: none;">150 <tr id="selected_product<?php echo $fees_number;?>" class="cndtn_mode_extra<?php echo $fees_number;?>" style="display: none;"> 150 151 <th scope="row"><label><?php _e( 'Selected Product'); ?><label></th> 151 152 <td> … … 171 172 </td> 172 173 </tr> 173 <tr id="selected_category<?php echo $ _POST['number'];?>" class="cndtn_mode_extra<?php echo $_POST['number'];?>" style="display: none;">174 <tr id="selected_category<?php echo $fees_number;?>" class="cndtn_mode_extra<?php echo $fees_number;?>" style="display: none;"> 174 175 <th scope="row"><label><?php _e( 'Selected Product Category'); ?><label></th> 175 176 <td> … … 198 199 </td> 199 200 </tr> 200 <tr id="selected_pr_type<?php echo $ _POST['number'];?>" class="cndtn_mode_extra<?php echo $_POST['number'];?>" style="display: none;">201 <tr id="selected_pr_type<?php echo $fees_number;?>" class="cndtn_mode_extra<?php echo $fees_number;?>" style="display: none;"> 201 202 <th scope="row"><label><?php _e( 'Selected Product Type'); ?><label></th> 202 203 <td> -
woo-additional-fees-on-checkout-wordpress/trunk/readme.txt
r3193283 r3208205 124 124 125 125 == Changelog == 126 = 1.4.8 - 15th Dec, 2025 = 127 *Fixed Sanitization Issue* 128 126 129 = 1.4.7 - 20th Nov, 2024 = 127 130 *WooCommerce & WordPress compatiability update* -
woo-additional-fees-on-checkout-wordpress/trunk/woo-additional-fees-checkout-free.php
r3193279 r3208205 4 4 Plugin URI: https://www.wpsuperiors.com/woocommerce-additional-fees-on-checkout/ 5 5 Description: Create an additional field on checkout page to apply an extra cost or fees. *Do not activate FREE and PREMIUM at the same time.* 6 Version: 1.4. 76 Version: 1.4.8 7 7 Author: WPSuperiors 8 8 Author URI: https://www.wpsuperiors.com/woocommerce-additional-fees-on-checkout/ 9 9 * WC requires at least: 3.5.0 10 * WC tested up to: 9.4. 210 * WC tested up to: 9.4.3 11 11 */ 12 12 if ( ! defined( 'ABSPATH' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.