The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP eCommerce
Shipping option (5 posts)

  1. lwtrumpet
    Posted 2 years ago #

    In the checkout, in the area where you specify "Please specify shipping location below to calculate your shipping costs" After the person chooses a state and clicks on the "calculate" button, on our cart, there is only one choice: table rate. Is there a way to automatically select that radio button? Customers are missing it and end up having to re-enter their billing and payment information. since we only offer the calcuated table option, it's awkward to have the user have to check a button.

    Please advise.



  2. lwtrumpet
    Posted 2 years ago #


  3. nadworks
    Posted 2 years ago #

    Exactly the same problem (and question) here.
    If there's only one option, it should be automatically selected and added to the total. Bam.

  4. Jeffrey Schutzman
    Posted 2 years ago #

    You can add a little filter to your functions.php that sets the default shipping quote. Set it to the only quote if there is one, the least expensive, the fastest. Pretty much whatever you want.

    The filter is wpsc_default_shipping_quote.

    See WP-e-Commerce\wpsc-includes\cart.class.php at line 436 where the hook is fired.

    // let the world pick a default shipping quote
    		if (  empty( $this->selected_shipping_option ) && is_array( $this->shipping_quotes ) && ! empty( $this->shipping_quotes ) ) {
    			$this->selected_shipping_option = apply_filters( 'wpsc_default_shipping_quote', $this->selected_shipping_option, $this->shipping_quotes );
  5. Jeffrey Schutzman
    Posted 2 years ago #

    @nadworks disagree on the only one option always select approach, only one option being available can be an indicator of improper address entry. In many cases shoppers need to acknowledge that they are incurring this charge, or change the input.

    In any case we have the filter to make the store do what is best for the store.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic