• Resolved khenchen505

    (@khenchen505)


    Hello, First of all thank you for your great plugins.

    Actually, what i want is when a vendor registers an account he should have by default shipping by distance enabled with default settings which i have kept. And Please assist me how do i change the text written on it, for example it shows shipping and pick up from store, and i want to change the following text from shipping to “Home Delivery” and from Local pickup to ” Pickup | Dinein

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WC Lovers

    (@wclovers)

    what i want is when a vendor registers an account he should have by default shipping by distance enabled with default settings which i have kept.

    – Add this snippet to your site –

    add_action( 'wcfmmp_new_store_created', function( $member_id, $wcfmmp_settings ) {
    	$wcfmmp_shipping = array ( '_wcfmmp_user_shipping_enable' => 'yes', '_wcfmmp_user_shipping_type' => 'by_distance' );
    	update_user_meta( $member_id, '_wcfmmp_shipping', $wcfmmp_shipping );	
    	
    	$wcfmmp_shipping_by_distance         = get_option( '_wcfmmp_shipping_by_distance', array() );
    	update_user_meta( $member_id, '_wcfmmp_shipping_by_distance', $wcfmmp_shipping_by_distance );
    	$wcfmmp_shipping_by_distance_rates       = get_option( '_wcfmmp_shipping_by_distance_rates', array() );
    	update_user_meta( $member_id, '_wcfmmp_shipping_by_distance_rates', $wcfmmp_shipping_by_distance_rates );
    }, 50, 2 );

    i want to change the following text from shipping to “Home Delivery” and from Local pickup to ” Pickup | Dinein

    – Add this snippet –

    add_filter( 'wcfmmp_local_pickup_shipping_option_label', function( $label, $venfor_id ) {
    	$label = 'Pickup | Dinein';
    	return $label;
    }, 50, 2 );

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin –?https://www.ads-software.com/plugins/code-snippets/

    Thread Starter khenchen505

    (@khenchen505)

    Thanks alot! it worked like a charm but the only problem remains the text for shipping is not changed it’s changed for only local pickup.

    i want shipping cost to be changed to “Home Delivery”

    Thank you anyway
    Thanks!

    Plugin Author WC Lovers

    (@wclovers)

    i want shipping cost to be changed to “Home Delivery”

    – Go to wp-admin – WooCommerce – Setting – Shipping – Marketplace Shipping by Distance – Set “Method Title => Home Delivery” – https://ibb.co/2S887B6

    Thread Starter khenchen505

    (@khenchen505)

    Thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Default Shipping Settings for Vendor’ is closed to new replies.