WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
Shipping option (5 posts)

  1. lwtrumpet
    Member
    Posted 3 months 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.

    Thanks!

    https://wordpress.org/plugins/wp-e-commerce/

  2. lwtrumpet
    Member
    Posted 3 months ago #

    Anyone?

  3. nadworks
    Member
    Posted 2 months 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. Jeff Pye Brook
    Member
    Posted 2 months 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. Jeff Pye Brook
    Member
    Posted 2 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic