Support » Plugin: WP eCommerce » [Plugin: WP e-Commerce] Remove shipping calculator or use default country

  • I try to implement a simple shipping option, where there’s one shipping cost for all orders and I only ship to one country.

    So I used fixed shipping and managed to hide the calculator altogether because it’s unecessary considering the above (there’s only one country in the drop-down anyway).

    The shipping price shows up correctly on the total and everything, but when I try to proceed to payment I get “You must select a shipping method, otherwise we cannot process your order.”

    It seems the only way for the shipping to work is to press the “Calculate” button on the drop-down list. So how do I do if I don’t want it there? Can I somehow have a default country option, or remove the whole drop-down validation?

    I tried searching around and it seems people only suggest hiding it or removing it from the php, but that only gives me above error.

    Any help is appreciated!!

    Thanks.

    http://wordpress.org/extend/plugins/wp-e-commerce/

Viewing 1 replies (of 1 total)
  • Hey,

    i had the same issue. You will have to change something in the php file:

    1. Pls open the wp-ecommerce/wpsc-includes/ajax.functions.php
    2. go to line number 468, you can see the below php code.

    if (get_option('do_not_use_shipping') == 0 && ($wpsc_cart->selected_shipping_method == null || $wpsc_cart->selected_shipping_option == null)) {
    		$_SESSION['wpsc_checkout_misc_error_messages'][] = TXT_WPSC_PLEASEASELECTSHIPPINGMETHOD;
    		$is_valid = false;
       	}

    3. Put two // in front of each line, it will mark them as comment and remove the message from your checkout page.

    Btw, I am trying to hide the shipping calculator myself. Could you tell me how you have done this?

    Thanks,
    Jen

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP e-Commerce] Remove shipping calculator or use default country’ is closed to new replies.