WP eCommerce
[Plugin: WP e-Commerce] Remove shipping calculator or use default country (2 posts)

  1. tazara
    Posted 3 years ago #

    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!!



  2. Gewitter27
    Posted 3 years ago #


    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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic