Home Forums WC Vendors Pro Support International Shipping issue

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #17737
    Arvid Viderberg
    Participant

    If national shipping is turned off, e.g. nothing is entered in the frontend. Then the product will not show any shipping under the “shipping” tab on the single product page.
    Is there a way to only show national shipping or perhaps disable international shipping completely?

    #17754
    WC Vendors Support
    Participant

    I’ll ask Jamie to take a look at that. Issue #183


    @digitalchild

    #17863
    Arvid Viderberg
    Participant

    Great, but is there a way to disable the international shipping? 🙂

    #17864
    WC Vendors Support
    Participant

    Should be, by following the instructions that says “Enter 0 to disable”.

    #17865
    Arvid Viderberg
    Participant

    I mean to hide it completly from my vendors. 🙂

    #17894
    WC Vendors Support
    Participant

    Yup, with filters.

    WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_shipping_international_fee', array(  
    			'id' 				=> '_wcv_shipping_fee_international', 
    			'label' 			=> __( 'Default International Shipping Fee', 'wcvendors-pro' ), 
    			'placeholder' 		=> __( 'Leave empty to disable.', 'wcvendors-pro' ), 
    			'desc_tip' 			=> 'true', 
    			'description' 		=> __( 'The default shipping fee outside your country, this can be overridden on a per product basis. Use 0 to enable free shipping. ', 'wcvendors-pro' ), 
    			'type' 				=> 'text', 
    			'value'				=> $value
    			)
    		) );

    So as you can see you’d hook into wcv_shipping_international_fee and return nothing.

    #17997
    Arvid Viderberg
    Participant

    Hm, not sure how to use this. When I add it to functions.php it shows below attachment. I’m not very good at filters. 🙂

    #18012
    WC Vendors Support
    Participant

    That’s not the filter code. That’s the source code from WC Vendors Pro showing you that a filter exists. 🙂 See the part that says “apply_filters”? The name after that is the name of the filter.

    
    add_filter( 'wcv_shipping_international_fee', 'custom_wcv_shipping_international_fee' );
    function custom_wcv_shipping_international_fee() {
        $show_them_nothing = '';
        return $show_them_nothing;
    }
    

    That should do it, I havent tested it, though.

    #18022
    Arvid Viderberg
    Participant

    Hm, did not work as expected. I tried using the following below, but it doesn’t hide the input-form on vendor dashboard. Maybe I’m trying to filter the wrong function? 🙂

    add_filter( 'wcv_product_shipping_fee_international', 'custom_wcv_product_shipping_fee_international', 1 );
    function custom_wcv_product_shipping_fee_international() {
        $show_them_nothing = '';
        return $show_them_nothing;
    }
    #18025
    WC Vendors Support
    Participant

    If that didn’t work, you’ll have to wait (or beg) Jamie @digitalchild to add an option to disable International shipping site-wide in the admin options. 🙂

    #18105
    Arvid Viderberg
    Participant

    @digitalchild Pretty please! 🙂

    #18106
    Arvid Viderberg
    Participant

    I’ve managed to hide the international shipping and setting it to 0. However, there is till som ‘whitespace’ where the labels are supposed to be. Is there a way to hide them completely so the whitespace disappears? @digitalchild

    add_filter ('wcv_product_shipping_fee_international', 'internationell_frakt_alltid_0');
    function internationell_frakt_alltid_0() {
    	$value = 0;
    	$fraktArray = array(  
    			'id' 				=> '_shipping_fee_international', 
    			//'label' 			=> __( 'International shipping fee', 'wcvendors-pro' ), 
    			'placeholder' 		=> __( 'Leave empty to disable.', 'wcvendors-pro' ), 
    			'desc_tip' 			=> 'true', 
    			//'description' 		=> __( 'The cost to ship this product outside your country.  Leave blank to use your shipping defaults, or 0 for free shipping.', 'wcvendors-pro' ), 
    			'type' 				=> 'hidden', 
    			'value'				=> $value
    			);
    	return $fraktArray;
    }
Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.