Plugin Directory

Changeset 3426042


Ignore:
Timestamp:
12/23/2025 09:34:27 AM (3 months ago)
Author:
cod24
Message:
  • Bugs fixes and improvements
Location:
cod24-shipping
Files:
35 added
6 edited

Legend:

Unmodified
Added
Removed
  • cod24-shipping/trunk/cod24-shipping.php

    r3415022 r3426042  
    33Plugin Name: COD24 Shipping For Woocommerce
    44Description: This plugin is adding COD24 shipping methods to woocommerce.
    5 Version: 5.0.2
     5Version: 5.0.3
    66Author: COD24
    77Author URI: https://cod24.ir
     
    2727        public function __construct()
    2828        {
    29             define('COD24_PLUGIN_VERSION', '5.0.2');
     29            define('COD24_PLUGIN_VERSION', '5.0.3');
    3030            define('COD24_PLUGIN_DIR', plugin_dir_path(__FILE__));
    3131            define('COD24_PLUGIN_URL', plugin_dir_url(__FILE__));
  • cod24-shipping/trunk/inc/api/class-cod24-tipax-api.php

    r3399647 r3426042  
    5454
    5555        /**
    56          * Get token based on vendor_id
    57          *
    58          * @param int|null $vendor_id Optional vendor ID
    59          * @return string|false Token or false if not found
    60          */
    61         private static function get_stored_token( $vendor_id = null ) {
    62             if( !empty( $vendor_id ) && $vendor_id > 0 ) {
    63                 return get_user_meta( $vendor_id, '_vendor_cod24_shipping_token', true );
    64             } else {
    65                 return get_option('cod24_shipping_token');
    66             }
    67         }
     56         * Get token based on vendor_id
     57         *
     58         * @param int|null $vendor_id Optional vendor ID
     59         * @return string|false Token or false if not found
     60         */
     61        private static function get_stored_token( $vendor_id = null ) {
     62            if( !empty( $vendor_id ) && $vendor_id > 0 ) {
     63                $token = get_user_meta( $vendor_id, '_vendor_cod24_shipping_token', true );
     64            } else {
     65                $token = get_option('cod24_shipping_token');
     66            }
     67           
     68            if( empty( $token ) )
     69            {
     70                if( !empty( $vendor_id ) && $vendor_id > 0 ) {
     71                    self::get_token( $vendor_id );
     72                } else {
     73                    self::get_token();
     74                }
     75            }
     76               
     77            return $token;
     78        }
    6879
    6980        /**
     
    346357            $credentials = self::get_credentials( $vendor_id );
    347358           
     359    error_log("RESPONSE FROM TIPAX ADD ORDER 1 : " . print_r($cod24_token , true ) );
     360   
     361   
     362    error_log("RESPONSE FROM TIPAX ADD ORDER 1 : " . print_r($credentials , true ) );
     363           
    348364            if( !empty( $cod24_token ) )
    349365            {
     
    368384   
    369385                $request = wp_remote_post( $url, $args );
    370    
    371386                if ( is_wp_error( $request ) || wp_remote_retrieve_response_code( $request ) != 200 )
    372387                {
  • cod24-shipping/trunk/inc/class-cod24-dokan.php

    r3399647 r3426042  
    5050            // vendor dashboard order detail metabox
    5151            add_action( 'dokan_order_detail_after_order_items', array( __CLASS__, 'render_vendor_order_metabox' ), 10, 1 );
     52           
     53            // Enqueue styles and scripts
     54            add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueue_vendor_assets' ) );
    5255        }
    5356       
     57       
     58       
     59        /**
     60         * Enqueue styles and scripts for vendor dashboard
     61         *
     62         * @since 2.1.0
     63         * @return void
     64         */
     65        public static function enqueue_vendor_assets() {
     66            // Check if we're on Dokan vendor dashboard
     67            if ( ! dokan_is_seller_dashboard() ) {
     68                return;
     69            }
     70           
     71            //global $wp;
     72            //$current_page = isset( $wp->query_vars['settings'] ) ? $wp->query_vars['settings'] : '';
     73           
     74            // Enqueue CSS for vendor dashboard
     75            wp_enqueue_style(
     76                'cod24-dokan-vendor',
     77                COD24_PLUGIN_URL . 'assets/css/cod24-dokan-vendor.css',
     78                array(),
     79                COD24_PLUGIN_VERSION
     80            );
     81           
     82            // Enqueue scripts for COD24 settings page
     83            wp_enqueue_script(
     84                'cod24-dokan-settings',
     85                COD24_PLUGIN_URL . 'assets/js/cod24-dokan-settings.js',
     86                array( 'jquery' ),
     87                COD24_PLUGIN_VERSION,
     88                true
     89            );
     90           
     91            // Localize script for translations
     92            wp_localize_script(
     93                'cod24-dokan-settings',
     94                'cod24_dokan_i18n',
     95                array(
     96                    'saving' => __( 'Saving...', 'cod24-shipping' ),
     97                    'error_message' => __( 'An error occurred. Please try again.', 'cod24-shipping' ),
     98                )
     99            );
     100           
     101            // Enqueue scripts for vendor order details page
     102            wp_enqueue_script(
     103                'cod24-dokan-vendor-order',
     104                COD24_PLUGIN_URL . 'assets/js/cod24-dokan-vendor-order.js',
     105                array( 'jquery' ),
     106                COD24_PLUGIN_VERSION,
     107                true
     108            );
     109           
     110            // Localize script for translations
     111            wp_localize_script(
     112                'cod24-dokan-vendor-order',
     113                'cod24_vendor_i18n',
     114                array(
     115                    'processing_title' => __( 'Processing...', 'cod24-shipping' ),
     116                    'processing_text' => __( 'Your request is being processed. Please wait.', 'cod24-shipping' ),
     117                    'success_title' => __( 'Success!', 'cod24-shipping' ),
     118                    'error_title' => __( 'Error', 'cod24-shipping' ),
     119                    'error_processing' => __( 'There was an error processing your request', 'cod24-shipping' ),
     120                )
     121            );
     122        }
     123
    54124        /**
    55125         * Add COD24 tab in vendor dashboard settings.
     
    115185
    116186            ?>
    117             <style>
    118                 .dokan-cod24-settings-area .required { color: red; }
    119                 .dokan-cod24-settings-area .dokan-form-group { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dashed #eee; }
    120                 .dokan-cod24-settings-area .dokan-form-group:last-child { border-bottom: 0; }
    121                 .dokan-cod24-settings-tabs { list-style: none; padding: 0; margin: 0 0 20px 0; border-bottom: 1px solid #ddd; display: flex; }
    122                 .dokan-cod24-settings-tabs li { margin: 0 5px 0 0; }
    123                 .dokan-cod24-settings-tabs li a {
    124                     display: block;
    125                     padding: 10px 15px;
    126                     background: #f9f9f9;
    127                     border: 1px solid #ddd;
    128                     border-bottom: 0;
    129                     margin-bottom: -1px;
    130                     text-decoration: none;
    131                     font-weight: bold;
    132                     color: #555;
    133                     border-radius: 4px 4px 0 0;
    134                 }
    135                 .dokan-cod24-settings-tabs li.active a {
    136                     background: #fff;
    137                     border-color: #ddd;
    138                     border-bottom: 1px solid #fff;
    139                 }
    140                 .cod24-tab-content { display: none; }
    141                 .cod24-tab-content.active { display: block; }
    142             </style>
    143 
    144187            <div class="dokan-cod24-settings-area">
    145188                <div class="dokan-header-title-section">
     
    312355                </form>
    313356
    314                 <script type="text/javascript">
    315                 jQuery(document).ready(function($) {
    316                     // Tab switching
    317                     $('.dokan-cod24-settings-tabs a').on('click', function(e) {
    318                         e.preventDefault();
    319                         var target = $(this).attr('href');
    320                        
    321                         $('.dokan-cod24-settings-tabs li').removeClass('active');
    322                         $(this).parent().addClass('active');
    323                        
    324                         $('.cod24-tab-content').removeClass('active');
    325                         $(target).addClass('active');
    326                     });
    327 
    328                     // Form submission
    329                     $('#dokan-cod24-settings-form').on('submit', function(e) {
    330                         e.preventDefault();
    331                        
    332                         var form = $(this);
    333                         var submitBtn = form.find('input[type="submit"]');
    334                         var originalText = submitBtn.val();
    335                        
    336                         submitBtn.val('<?php esc_attr_e('Saving...', 'cod24-shipping'); ?>').prop('disabled', true);
    337                        
    338                         $.ajax({
    339                             url: dokan.ajaxurl,
    340                             type: 'POST',
    341                             dataType: 'json',
    342                             data: form.serialize() + '&action=dokan_cod24_settings_save',
    343                             success: function(response) {
    344                                 if (response.success) {
    345                                     dokan_sweetalert(response.data.message, {
    346                                         icon: 'success',
    347                                     });
    348                                 } else {
    349                                     dokan_sweetalert(response.data.message, {
    350                                         icon: 'error',
    351                                     });
    352                                 }
    353                             },
    354                             error: function() {
    355                                 dokan_sweetalert('<?php esc_attr_e('Error saving settings', 'cod24-shipping'); ?>', {
    356                                     icon: 'error',
    357                                 });
    358                             },
    359                             complete: function() {
    360                                 submitBtn.val(originalText).prop('disabled', false);
    361                             }
    362                         });
    363                     });
    364                 });
    365                 </script>
     357               
    366358            </div>
    367359            <?php
     
    375367        public static function save_vendor_cod24_settings()
    376368        {
    377             if (!wp_verify_nonce($_POST['dokan_cod24_settings_nonce_field'], 'dokan_cod24_settings_nonce')) {
     369            if (isset($_POST['dokan_cod24_settings_nonce_field']) && !wp_verify_nonce(sanitize_text_field( wp_unslash ($_POST['dokan_cod24_settings_nonce_field'])), 'dokan_cod24_settings_nonce')) {
    378370                wp_send_json_error(array('message' => __('Security check failed', 'cod24-shipping')));
    379371            }
     
    394386
    395387            // Enabled Methods
    396             $enabled_methods = isset($_POST['vendor_cod24_enabled_methods']) ? $_POST['vendor_cod24_enabled_methods'] : array();
     388            $enabled_methods = isset($_POST['vendor_cod24_enabled_methods']) ? array_map('sanitize_text_field', (array) $_POST['vendor_cod24_enabled_methods']) : array();
    397389            update_user_meta($vendor_id, '_vendor_cod24_enabled_methods', $enabled_methods);
    398390
     
    535527               
    536528                if ($pishtaz_rate) {
    537                     $rates['cod24_vendor_pishtaz_' . $vendor_id] = $pishtaz_rate;
     529                    $rates['cod24_pishtaz_' . $vendor_id] = $pishtaz_rate;
    538530                }
    539531            }
     
    556548                   
    557549                    if ($special_rate) {
    558                         $rates['cod24_vendor_special_' . $vendor_id] = $special_rate;
     550                        $rates['cod24_special_' . $vendor_id] = $special_rate;
    559551                    }
    560552                }
     
    572564                   
    573565                    if ($tipax_rate) {
    574                         $rates['cod24_vendor_tipax_' . $vendor_id] = $tipax_rate;
     566                        $rates['cod24_tipax_' . $vendor_id] = $tipax_rate;
    575567                    }
    576568                }
     
    659651
    660652            return new \WC_Shipping_Rate(
    661                 'cod24_vendor_pishtaz_' . $vendor_id,
     653                'cod24_pishtaz_' . $vendor_id,
    662654                $label,
    663655                $cost,
    664656                array(),
    665                 'cod24_vendor_pishtaz_' . $vendor_id
     657                'cod24_pishtaz_' . $vendor_id
    666658            );
    667659        }
     
    746738
    747739            return new \WC_Shipping_Rate(
    748                 'cod24_vendor_special_' . $vendor_id,
     740                'cod24_special_' . $vendor_id,
    749741                $label,
    750742                $cost,
    751743                array(),
    752                 'cod24_vendor_special_' . $vendor_id
     744                'cod24_special_' . $vendor_id
    753745            );
    754746        }
     
    789781
    790782            return new \WC_Shipping_Rate(
    791                 'cod24_vendor_tipax_' . $vendor_id,
     783                'cod24_tipax_' . $vendor_id,
    792784                $label,
    793785                $cost,
    794786                array(),
    795                 'cod24_vendor_tipax_' . $vendor_id
     787                'cod24_tipax_' . $vendor_id
    796788            );
    797789        }
     
    985977                        <div class="cod24-shipping-type" style="margin-bottom:10px">
    986978                            <div class="label" style="margin-bottom:10px"><label for="shipping_type"><?php echo esc_attr__('Shipping Type', 'cod24-shipping'); ?></label></div>
    987                             <select name="shipping_type" id="shipping_type" class="dokan-form-control shipping_type" style="margin-bottom:10px">
     979                            <select name="shipping_type" id="shipping_type" class="dokan-form-control shipping_type" style="margin-bottom:10px" disabled>
    988980                                <option value="none"><?php echo esc_attr__('Select the shipping type...','cod24-shipping'); ?></option>
    989981                                <option value="post" <?php if( !empty( $order_cod24_info ) ) selected( 'post', $order_cod24_info['shipping_type'] ); ?>><?php echo esc_attr__('Post', 'cod24-shipping'); ?></option>
     
    11341126            </div>
    11351127
    1136             <style>
    1137                 .cod24-post-section, .cod24-tipax-section { display: none; }
    1138                 .cod24-post-section.active, .cod24-tipax-section.active { display: block; }
    1139             </style>
    1140 
    1141             <script type="text/javascript">
    1142             jQuery(document).ready(function($) {
    1143                 // Shipping type change handler
    1144                 $('#shipping_type').on('change', function() {
    1145                     var type = $(this).val();
    1146                     $('.cod24-post-section, .cod24-tipax-section').removeClass('active');
    1147                     if (type === 'post') {
    1148                         $('.cod24-post-section').addClass('active');
    1149                     } else if (type === 'tipax') {
    1150                         $('.cod24-tipax-section').addClass('active');
    1151                     }
    1152                 });
    1153 
    1154                 // Tipax carton size change handler
    1155                 $('#tipax_carton_size').on('change', function() {
    1156                     var selected = $(this).find('option:selected');
    1157                     var length = selected.data('length');
    1158                     var width = selected.data('width');
    1159                     var height = selected.data('height');
    1160 
    1161                     if (length && width && height) {
    1162                         $('.dimension-length').val(length);
    1163                         $('.dimension-width').val(width);
    1164                         $('.dimension-height').val(height);
    1165                     } else {
    1166                         $('.dimension-length, .dimension-width, .dimension-height').val('');
    1167                     }
    1168                 });
    1169 
    1170                 // COD24 status change handler - uses COD24_WOO ajax action
    1171                 jQuery(".cod24_change_status").on('click', function(e){
    1172                     e.preventDefault();
    1173                    
    1174                     var container = jQuery('#cod24_order_info');
    1175                     if (!container.length) {
    1176                         console.error('Container with id="cod24_order_info" not found');
    1177                         return;
    1178                     }
    1179                
    1180                     // Create FormData object
    1181                     var data = new FormData();
    1182                
    1183                     // Get all input, select, and textarea elements within the container
    1184                     container.find('input, select, textarea').each(function() {
    1185                         var element = jQuery(this);
    1186                         var name = element.attr('name'); // Use the 'name' attribute as the key
    1187                
    1188                         // Skip elements without a 'name' attribute
    1189                         if (!name) {
    1190                             console.warn('Element without name attribute skipped:', element);
    1191                             return;
    1192                         }
    1193                
    1194                         // Handle checkboxes separately
    1195                         if (element.attr('type') === 'checkbox') {
    1196                             var value = element.is(':checked') ? 'yes' : 'no'; // Set value to 'yes' or 'no'
    1197                             data.append(name, value);
    1198                         } else {
    1199                             // Handle other input types (text, select, textarea, etc.)
    1200                             var value = element.val(); // Get the value of the element
    1201                             data.append(name, value);
    1202                         }
    1203                     });
    1204                
    1205                     // Append additional data (e.g., action)
    1206                     data.append('action', 'cod24_change_status');
    1207                    
    1208                     // Set the value based on whether it is checked or not
    1209                     // var non_standard_package_isChecked = jQuery('.non_standard_package').is(':checked');
    1210                     // if (non_standard_package_isChecked) {
    1211                     //     var non_standard_package = 'yes';
    1212                     // } else {
    1213                     //     var non_standard_package = 'no';
    1214                     // }
    1215                     jQuery.ajax({
    1216                         type : "post",
    1217                         dataType : "json",
    1218                         url : dokan.ajaxurl,
    1219                         data : data,
    1220                         processData: false,
    1221                         contentType: false,
    1222                         beforeSend: function() {
    1223                             Swal.fire({
    1224                                 title: '<?php echo esc_attr__('Processing...', 'cod24-shipping'); ?>',
    1225                                 text: '<?php echo esc_attr__('Your request is being processed. Please wait.', 'cod24-shipping'); ?>',
    1226                                 allowOutsideClick: false,
    1227                                 didOpen: () => {
    1228                                     Swal.showLoading();
    1229                                 }
    1230                             });
    1231                         },
    1232                         success: function(response) {
    1233                             if (response && response.status === true) {
    1234                                 Swal.fire(
    1235                                     '<?php echo esc_attr__('Success!', 'cod24-shipping'); ?>',
    1236                                     response.msg,
    1237                                     'success'
    1238                                 ).then(function () {
    1239                                     location.reload();
    1240                                 });
    1241                             } else {
    1242                                 Swal.fire(
    1243                                     'error',
    1244                                     response.msg,
    1245                                     'error'
    1246                                 );
    1247                             }
    1248                         },
    1249                         error: function(error) {
    1250                             console.log(error);
    1251                         }
    1252                     });
    1253                 });
    1254                
    1255                 $(".cod24_factorPreview").on('click', function(e){
    1256                     e.preventDefault();
    1257                     var order_barcode_nonce = $(".order_barcode_nonce").val();
    1258                     var order_id = $(".order_id").val();
    1259                     $.ajax({
    1260                         type : "post",
    1261                         dataType : "json",
    1262                         url : dokan.ajaxurl,
    1263                         data : { action: "cod24_factor_preview", order_id : order_id, order_barcode_nonce: order_barcode_nonce },
    1264                         beforeSend: function() {
    1265                             Swal.fire({
    1266                                 title: '<?php echo esc_attr__('Processing...', 'cod24-shipping'); ?>',
    1267                                 text: '<?php echo esc_attr__('Your request is being processed. Please wait.', 'cod24-shipping'); ?>',
    1268                                 allowOutsideClick: false,
    1269                                 didOpen: () => {
    1270                                     Swal.showLoading();
    1271                                 }
    1272                             });
    1273                         },
    1274                         success: function(response) {
    1275                             if( response && response.status === true )
    1276                             {
    1277                                 // Check if response.url exists
    1278                                 Swal.close();
    1279                                 if (response.url) {
    1280                                     // Open URL in a new tab
    1281                                     window.open(response.url, '_blank');
    1282                                 } else {
    1283                                     // Reload the current location if no URL is provided
    1284                                     location.reload();
    1285                                 }
    1286                             }
    1287                             else
    1288                             {
    1289                                 Swal.fire(
    1290                                     'error',
    1291                                     response.msg,
    1292                                     'error'
    1293                                 );
    1294                             }
    1295                         },
    1296                         error: function(error) {
    1297                             Swal.fire(
    1298                                 'error',
    1299                                 '<?php echo esc_attr__('There was an error processing your request', 'cod24-shipping'); ?>',
    1300                                 'error'
    1301                             );
    1302                         }
    1303                     });
    1304                 });
    1305                
    1306                 // Handle is_calc_srv_by_weight checkbox change
    1307                 $(document).on('change', '#is_calc_srv_by_weight', function() {
    1308                     var isChecked = $(this).is(':checked');
    1309                     var cartonSizeSelect = $('#carton_size');
    1310                    
    1311                     if (isChecked) {
    1312                         // Disable carton size and set to 0
    1313                         cartonSizeSelect.prop('disabled', true);
    1314                         cartonSizeSelect.val('10');
    1315                     } else {
    1316                         // Enable carton size
    1317                         cartonSizeSelect.prop('disabled', false);
    1318                     }
    1319                 });
    1320                
    1321                 // Initialize on page load
    1322                 if ($('#is_calc_srv_by_weight').is(':checked')) {
    1323                     $('#carton_size').prop('disabled', true);
    1324                 }
    1325             });
    1326             </script>
    13271128            <?php
    13281129        }
  • cod24-shipping/trunk/inc/class-cod24-woo.php

    r3399647 r3426042  
    1010 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1111 */
    12 
     12 
    1313namespace COD24_Shipping;
    1414
     
    413413                $shipping_method_id = $shipping_item->get_method_id();
    414414               
    415                 if ($shipping_method_id === 'cod24_tipax') {
     415                if (strpos($shipping_method_id, 'cod24_tipax') !== false) {
    416416                    $shipping_cost = $shipping_item->get_total();
    417417                    $shipping_type = 'tipax' ;
     
    14051405            {
    14061406                case 'cod24' :
    1407                     // Get cod24 info
    1408                     $cod24_info = $order->get_meta('_cod24_info', true);
    1409                    
    1410                     /* cod24 shipping type */
    1411                     $shipping_type_output = sprintf(
    1412                         __("Shipping Type: <strong>%s</strong>", 'cod24-shipping'),
    1413                         !empty($cod24_info['shipping_type']) ? esc_attr( ucwords( $cod24_info['shipping_type'] ) ) : '-'
    1414                     );
    1415                    
    1416                     /* cod24 serial */
    1417                     $serial_output = sprintf(
    1418                         __("<br />Serial: <strong>%s</strong>", 'cod24-shipping'),
    1419                         !empty($cod24_info['serial']) ? esc_attr($cod24_info['serial']) : '-'
    1420                     );
    1421 
    1422                     /* cod24 barcode */
    1423                     $barcode_output = sprintf(
    1424                         __("<br />Barcode: <strong>%s</strong>", 'cod24-shipping'),
    1425                         !empty($cod24_info['barcode']) ? esc_attr($cod24_info['barcode']) : '-'
    1426                     );
    1427 
    1428                     echo $shipping_type_output. $serial_output . $barcode_output;
     1407                    // Get cod24 info from order meta
     1408                    $cod24_info = $order->get_meta('_cod24_info', true);
     1409                   
     1410                    // Shipping Type - Properly escaped with HTML structure separated from translation
     1411                    echo esc_html__('Shipping Type:', 'cod24-shipping') . ' ';
     1412                    echo '<strong>' . esc_html(
     1413                        !empty($cod24_info['shipping_type']) ? ucwords( $cod24_info['shipping_type'] ) : '-'
     1414                    ) . '</strong>';
     1415                   
     1416                    // Serial Number - Properly escaped
     1417                    echo '<br />' . esc_html__('Serial:', 'cod24-shipping') . ' ';
     1418                    echo '<strong>' . esc_html(
     1419                        !empty($cod24_info['serial']) ? $cod24_info['serial'] : '-'
     1420                    ) . '</strong>';
     1421                   
     1422                    // Barcode - Properly escaped
     1423                    echo '<br />' . esc_html__('Barcode:', 'cod24-shipping') . ' ';
     1424                    echo '<strong>' . esc_html(
     1425                        !empty($cod24_info['barcode']) ? $cod24_info['barcode'] : '-'
     1426                    ) . '</strong>';
     1427
    14291428                    break;
    14301429            }
     
    23112310       
    23122311            // Common WooCommerce / Dokan option name you mentioned:
    2313             $opt = get_option( 'woocommerce_dokan_product_shipping_enabled', null );
    2314             if ( $opt != '1' ) {
     2312            $dokan_shipping_settings = get_option( 'woocommerce_dokan_product_shipping_settings' );
     2313            $enabled_dokan_shipping  = $dokan_shipping_settings['enabled'] ?? 'yes';
     2314            if ( isset($dokan_shipping_settings['enabled']) && $enabled_dokan_shipping != 'yes' ) {
    23152315                return false;
    23162316            }
  • cod24-shipping/trunk/readme.txt

    r3415022 r3426042  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 5.0.2
     6Stable tag: 5.0.3
    77License: GPL-2.0+
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4444
    4545== Changelog ==
     46
     47= 5.0.3 =
     48* Bugs fixes and improvements
    4649
    4750= 5.0.2 =
  • cod24-shipping/trunk/templates/vendor-order-metabox.php

    r3399647 r3426042  
    185185    </div>
    186186</div>
    187 
    188 <style>
    189     .dokan-cod24-order-panel .cod24-post-section,
    190     .dokan-cod24-order-panel .cod24-tipax-section {
    191         display: none;
    192     }
    193     .dokan-cod24-order-panel .cod24-post-section.active,
    194     .dokan-cod24-order-panel .cod24-tipax-section.active {
    195         display: block;
    196     }
    197     .dokan-cod24-order-panel .cod24-meta-fields {
    198         margin-bottom: 15px;
    199     }
    200     .dokan-cod24-order-panel .label {
    201         font-weight: bold;
    202         margin-bottom: 5px;
    203     }
    204     .dokan-cod24-order-panel .description {
    205         font-size: 12px;
    206         color: #666;
    207         margin-top: 5px;
    208     }
    209     .dokan-cod24-order-panel input[type="text"],
    210     .dokan-cod24-order-panel select,
    211     .dokan-cod24-order-panel textarea {
    212         width: 100%;
    213         padding: 8px;
    214         border: 1px solid #ddd;
    215         border-radius: 3px;
    216     }
    217     .dokan-cod24-order-panel button {
    218         margin-top: 10px;
    219     }
    220 </style>
Note: See TracChangeset for help on using the changeset viewer.