Plugin Directory

Changeset 3208205


Ignore:
Timestamp:
12/15/2024 02:31:46 PM (16 months ago)
Author:
amitwpdeveloper
Message:

1.4.8 update

Location:
woo-additional-fees-on-checkout-wordpress/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • woo-additional-fees-on-checkout-wordpress/trunk/classes/wps-ext-cst-admin.php

    r2891885 r3208205  
    2424    }
    2525    public static function wps_generate_new_fees(){
     26        $fees_number = (int)$_POST['number'];
    2627        ?>
    2728
    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;?>">
    2930            <h3 style="border-bottom: 1px solid black;">
    3031                <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>
    3233            </h3>
    3334            <table class="form-table">
     
    3637                        <th scope="row"><label><?php _e( 'Status'); ?><label></th>
    3738                        <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">
    3940                                <option value="enable">Enable</option>
    4041                                <option value="disable">Disable</option>
     
    4546                        <th scope="row"><label><?php _e( 'Label'); ?></labe></td>
    4647                        <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;?>"/>
    4849                        </td>
    4950                    </tr>
     
    5152                        <th scope="row"><label><?php _e( 'Label for Billing'); ?></labe></td>
    5253                        <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;?>"/>
    5455                        </td>
    5556                    </tr>
     
    5758                        <th scope="row"><label><?php _e( 'Type'); ?><label></th>
    5859                        <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;?>)">
    6061                                <option value="fixed">Fixed</option>
    6162                                <option value="percent">Percentage</option>
     
    6465                        </td>
    6566                    </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;">
    6768                        <th scope="row"><label><?php _e( 'Calculate fees including TAX'); ?></label></th>
    6869                        <td>
     
    7475                        </td>
    7576                    </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;">
    7778                        <th scope="row"><label><?php _e( 'Calculate fees including Shipping Costs'); ?></label></th>
    7879                        <td>
     
    8889                        <th scope="row"><label><?php _e( 'Amount'); ?></labe></td>
    8990                        <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"/>
    9192                        </td>
    9293                    </tr>
     
    9495                        <th scope="row"><label><?php _e( 'Apply Condition'); ?></label></th>
    9596                        <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; ?>">
    9798                                <option value="one_time">One Time Only</option>
    9899                                <option value="multiply">Multiplied By Product Quantity</option>
     
    115116                        <th scope="row"><label><?php _e( 'Condition'); ?><label></th>
    116117                        <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;?>)">
    118119                                <option value="all">All</option>
    119120                                <option value="cart_total_amount">Cart Total Amount</option>
     
    125126                        </td>
    126127                    </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;">
    128129                        <th scope="row"><label><?php _e( 'Cart Amount'); ?></labe></td>
    129130                        <td>
     
    136137                        </td>
    137138                    </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;">
    139140                        <th scope="row"><label><?php _e( 'No. Of Product on Cart'); ?></labe></td>
    140141                        <td>
     
    147148                        </td>
    148149                    </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;">
    150151                        <th scope="row"><label><?php _e( 'Selected Product'); ?><label></th>
    151152                        <td>
     
    171172                        </td>
    172173                    </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;">
    174175                        <th scope="row"><label><?php _e( 'Selected Product Category'); ?><label></th>
    175176                        <td>
     
    198199                        </td>
    199200                    </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;">
    201202                        <th scope="row"><label><?php _e( 'Selected Product Type'); ?><label></th>
    202203                        <td>
  • woo-additional-fees-on-checkout-wordpress/trunk/readme.txt

    r3193283 r3208205  
    124124
    125125== Changelog ==
     126= 1.4.8 - 15th Dec, 2025 =
     127*Fixed Sanitization Issue*
     128
    126129= 1.4.7 - 20th Nov, 2024 =
    127130*WooCommerce & WordPress compatiability update*
  • woo-additional-fees-on-checkout-wordpress/trunk/woo-additional-fees-checkout-free.php

    r3193279 r3208205  
    44Plugin URI: https://www.wpsuperiors.com/woocommerce-additional-fees-on-checkout/
    55Description: 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.7
     6Version: 1.4.8
    77Author: WPSuperiors
    88Author URI: https://www.wpsuperiors.com/woocommerce-additional-fees-on-checkout/
    99* WC requires at least: 3.5.0
    10 * WC tested up to: 9.4.2
     10* WC tested up to: 9.4.3
    1111*/
    1212if ( ! defined( 'ABSPATH' ) ) {
Note: See TracChangeset for help on using the changeset viewer.