New Landing How can we help? Themeforest Theme Support Dante woocommerce issues

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #158639
    tooeasy
    Member
    Post count: 38

    Hi, I´m trying to exclude some shipping places in my online store. I tried with this code in functions.php:

    add_filter(‘woocommerce_states’, ‘my_custom_states’);

    function my_custom_states( $states ) {

    unset($states[‘ES’][‘TF’]);
    return $states;
    }

    But it breaks the product hover effect. Also when I select the excluded state in the drop down list in the shipping address fields, the right sidebar with the price keeps loading all the time.

    What can I do to exclude shipping states without breaking my site, or exclude those states from the list, or put a message like “we don’t ship to this state”?

    Thanks

    #158652
    Kyle – SUPPORT
    Moderator
    Post count: 35880
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register