Changeset 734585
- Timestamp:
- 07/01/2013 11:10:27 AM (13 years ago)
- Location:
- wp-e-commerce/branches/branch-3.8.12
- Files:
-
- 6 edited
-
readme.txt (modified) (2 diffs)
-
wpsc-admin/includes/coupon-list-table-class.php (modified) (1 diff)
-
wpsc-admin/includes/product-functions.php (modified) (1 diff)
-
wpsc-admin/includes/settings-tabs/shipping.php (modified) (7 diffs)
-
wpsc-admin/init.php (modified) (2 diffs)
-
wpsc-admin/js/settings-page.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-e-commerce/branches/branch-3.8.12/readme.txt
r725142 r734585 5 5 Requires at least: 3.4 6 6 Tested up to: 3.6 7 Stable tag: 3.8. 117 Stable tag: 3.8.2 8 8 9 9 WP e-Commerce is a free WordPress Shopping Cart Plugin that lets customers buy your products, services and digital downloads online. … … 162 162 * Fix: Add to Cart button doesn't work 163 163 * Fix: Can no longer upload customer attachments 164 * Fix: Deprecated warning for wp_convert_bytes_to_hr() function in WordPress 3.6 164 165 165 166 -
wp-e-commerce/branches/branch-3.8.12/wpsc-admin/includes/coupon-list-table-class.php
r725142 r734585 406 406 $where = $status !== false ? "WHERE active = $status" : ''; 407 407 408 $order = strtoupper( $_GET['order'] ) === 'ASC' ? 'ASC' : 'DESC';408 $order = isset( $_GET['order'] ) && strtoupper( $_GET['order'] ) === 'ASC' ? 'ASC' : 'DESC'; 409 409 $limit = " LIMIT $offset,$per_page;"; 410 410 $coupons = $wpdb->get_results( "SELECT * FROM `" . WPSC_TABLE_COUPON_CODES . "` {$where} ORDER BY id {$order} {$limit} ", ARRAY_A ); -
wp-e-commerce/branches/branch-3.8.12/wpsc-admin/includes/product-functions.php
r708401 r734585 8 8 9 9 function wpsc_get_max_upload_size(){ 10 return wp_convert_bytes_to_hr( wp_max_upload_size() );10 return size_format( wp_max_upload_size() ); 11 11 } 12 12 -
wp-e-commerce/branches/branch-3.8.12/wpsc-admin/includes/settings-tabs/shipping.php
r725142 r734585 48 48 foreach ( $wpsc_shipping_modules as $shipping ) { 49 49 foreach ( (array) $_POST['custom_shipping_options'] as $shippingoption ) { 50 if ( $shipping-> internal_name== $shippingoption ) {50 if ( $shipping->getInternalName() == $shippingoption ) { 51 51 $shipadd++; 52 52 } … … 72 72 if ( $found_selected_module ) { 73 73 $selected_module = $wpsc_shipping_modules[$selected_module_id]; 74 $title = $selected_module-> name;74 $title = $selected_module->getName(); 75 75 $content = apply_filters( 'wpsc_shipping_module_settings_form', $selected_module->getForm(), $selected_module ); 76 76 } else { … … 101 101 'tab' => 'shipping', 102 102 'page' => 'wpsc-settings', 103 'shipping_module_id' => $shipping-> internal_name,103 'shipping_module_id' => $shipping->getInternalName(), 104 104 ), $location ); 105 105 $location .= '#wpsc-shipping-module-options'; … … 270 270 <?php 271 271 foreach ( $internal_shipping_modules as $shipping ) { 272 $force = ( $shipping-> internal_name=== (string) get_user_option( 'wpsc_settings_selected_shipping_module', get_current_user_id() ) );272 $force = ( $shipping->getInternalName() === (string) get_user_option( 'wpsc_settings_selected_shipping_module', get_current_user_id() ) ); 273 273 $this->shipping_list_item( $shipping, $force ); 274 274 } … … 300 300 <?php 301 301 foreach ( $external_shipping_modules as $shipping ) { 302 $force = ( $shipping-> internal_name=== (string) get_user_option( 'wpsc_settings_selected_shipping_module', get_current_user_id() ) );302 $force = ( $shipping->getInternalName() === (string) get_user_option( 'wpsc_settings_selected_shipping_module', get_current_user_id() ) ); 303 303 $this->shipping_list_item( $shipping, $force ); 304 304 } … … 319 319 320 320 ?> 321 <tr class="wpsc-select-shipping <?php echo $shipping->active; ?>" data-shipping-id="<?php echo esc_attr( $shipping-> internal_name ); ?>" id="shipping_list_item_<?php echo $shipping->internal_name;?>">321 <tr class="wpsc-select-shipping <?php echo $shipping->active; ?>" data-shipping-id="<?php echo esc_attr( $shipping->getInternalName() ); ?>" id="shipping_list_item_<?php echo $shipping->getInternalName();?>"> 322 322 <th scope="row" class="check-column"> 323 <input name='custom_shipping_options[]' <?php disabled( $shipping->disabled ); ?> <?php checked( $shipping->checked ); ?> type='checkbox' value='<?php echo $shipping-> internal_name; ?>' id='<?php echo $shipping->internal_name; ?>_id' />323 <input name='custom_shipping_options[]' <?php disabled( $shipping->disabled ); ?> <?php checked( $shipping->checked ); ?> type='checkbox' value='<?php echo $shipping->getInternalName(); ?>' id='<?php echo $shipping->getInternalName(); ?>_id' /> 324 324 </th> 325 325 <td class="plugin-title"> 326 <label for='<?php echo $shipping-> internal_name; ?>_id'><strong><?php echo $shipping->name; ?></strong></label>326 <label for='<?php echo $shipping->getInternalName(); ?>_id'><strong><?php echo $shipping->getName(); ?></strong></label> 327 327 <div class="row-actions-visible"> 328 328 <span class="edit"> 329 <a class='edit-shipping-module' data-module-id="<?php echo $shipping-> internal_name; ?>" title="<?php esc_attr_e( 'Edit this Shipping Module', 'wpsc' ); ?>" href='<?php echo esc_url( $this->get_shipping_module_url( $shipping ) ); ?>'><?php _ex( 'Settings', 'Shipping modules link to individual settings', 'wpsc' ); ?>329 <a class='edit-shipping-module' data-module-id="<?php echo $shipping->getInternalName(); ?>" title="<?php esc_attr_e( 'Edit this Shipping Module', 'wpsc' ); ?>" href='<?php echo esc_url( $this->get_shipping_module_url( $shipping ) ); ?>'><?php _ex( 'Settings', 'Shipping modules link to individual settings', 'wpsc' ); ?> 330 330 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-feedback" title="" alt="" /> 331 331 </span> … … 333 333 </td> 334 334 </tr> 335 <tr id="wpsc_shipping_settings_<?php echo esc_attr( $shipping-> internal_name ); ?>" data-shipping-id="<?php echo esc_attr( $shipping->internal_name); ?>" class='wpsc-select-shipping <?php echo $shipping->active; ?>' <?php echo $shipping->hidden; ?> >336 <td colspan="3" id="wpsc_shipping_settings_<?php echo esc_attr( $shipping-> internal_name); ?>_container">337 <?php $this->display_shipping_module_settings_form( $shipping-> internal_name); ?>335 <tr id="wpsc_shipping_settings_<?php echo esc_attr( $shipping->getInternalName() ); ?>" data-shipping-id="<?php echo esc_attr( $shipping->getInternalName() ); ?>" class='wpsc-select-shipping <?php echo $shipping->active; ?>' <?php echo $shipping->hidden; ?> > 336 <td colspan="3" id="wpsc_shipping_settings_<?php echo esc_attr( $shipping->getInternalName() ); ?>_container"> 337 <?php $this->display_shipping_module_settings_form( $shipping->getInternalName() ); ?> 338 338 </td> 339 339 </tr> -
wp-e-commerce/branches/branch-3.8.12/wpsc-admin/init.php
r725142 r734585 188 188 } 189 189 // Get the most number of products and create a header for them 190 $headers3 = "";190 $headers3 = array(); 191 191 for( $i = 0; $i < $count; $i++ ){ 192 192 $headers3[] = _x( 'Quantity', 'purchase log csv headers', 'wpsc' ); … … 202 202 $headers = apply_filters( 'wpsc_purchase_log_csv_headers', $headers . $form_headers . $headers2 . $headers3, $data, $form_data ); 203 203 $output = apply_filters( 'wpsc_purchase_log_csv_output', $output, $data, $form_data ); 204 do_action( 'wpsc_purchase_log_csv' ); 204 205 header( 'Content-Type: text/csv' ); 205 206 header( 'Content-Disposition: inline; filename="' . $csv_name . '"' ); -
wp-e-commerce/branches/branch-3.8.12/wpsc-admin/js/settings-page.js
r725142 r734585 310 310 wrapper.on( 'click', '#wpsc-delete-checkout-set', WPSC_Settings_Page.Checkout.event_delete_checkout_set); 311 311 wrapper.on( 'change', '#wpsc_form_set', WPSC_Settings_Page.Checkout.event_select_form_set); 312 wrapper.on( 'click', '.mandatorycol input[type="checkbox"]', WPSC_Settings_Page.Checkout.event_disabled_togg eled);312 wrapper.on( 'click', '.mandatorycol input[type="checkbox"]', WPSC_Settings_Page.Checkout.event_disabled_toggled); 313 313 $('#wpsc-settings-form').on( 'submit', WPSC_Settings_Page.Checkout.event_form_submit); 314 314 … … 334 334 */ 335 335 wrapper.find( '.mandatorycol input[type="checkbox"]').each( function(){ 336 var displaycol = $( this).parents('.mandatorycol').siblings('.displaycol');337 338 if ( $( this).is(':checked') ){339 $( displaycol).find('input[type="checkbox"]').prop('checked', true ).attr( 'disabled', 'disabled');336 var displaycol = $( this ).parents( '.mandatorycol' ).siblings( '.displaycol' ); 337 338 if ( $( this ).is( ':checked' ) ) { 339 $( displaycol ).find( 'input[type="checkbox"]' ).prop( 'checked', true ).prop( 'readonly', true ); 340 340 } else { 341 $( displaycol).find('input[type="checkbox"]').attr( 'disabled', this.checked );341 $( displaycol ).find( 'input[type="checkbox"]' ).prop( 'readonly', this.checked ); 342 342 } 343 343 }); … … 577 577 * mandatory then it just enables you to uncheck the display box. 578 578 */ 579 event_disabled_togg eled : function() {580 581 var displaycol = $( this).parents('.mandatorycol').siblings('.displaycol');582 583 if ( $( this).is(':checked') ){584 $( displaycol).find('input[type="checkbox"]').prop('checked', true ).attr( 'disabled', 'disabled');579 event_disabled_toggled : function() { 580 581 var displaycol = $( this ).parents( '.mandatorycol' ).siblings( '.displaycol' ); 582 583 if ( $( this ).is( ':checked' ) ) { 584 $( displaycol ).find( 'input[type="checkbox"]' ).prop( 'checked', true ).prop( 'readonly', true ); 585 585 } else { 586 $( displaycol).find('input[type="checkbox"]').attr( 'disabled', this.checked );586 $( displaycol ).find( 'input[type="checkbox"]' ).prop( 'readonly', this.checked ); 587 587 } 588 588 },
Note: See TracChangeset
for help on using the changeset viewer.