Can the Shipping title displayed in the cart be changed?

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

From now the forum will be read-only!

This topic contains 5 replies, has 2 voices, and was last updated by Avatar Craig 5 months, 3 weeks ago.

  • Author
    Posts
  • #100937
    Avatar
    Craig
    Participant

    Can the Shipping title displayed in the cart be changed so that it displays the Store name?

    Right now all I see are titles like “Shipping 89” and “Shipping 45” which is not helpful for the customer. is there away to make this display in the cart reflect the Shop Name that they are getting the shipping information from?

    See attached screenshot

    Thanks

    Attachments:
    You must be logged in to view attached files.
  • #102017
    Avatar
    Sushobhan
    Keymaster

    Please add this code to your site –

    add_filter('woocommerce_shipping_package_name', function( $package_name, $vendor_id, $package) {
       global $WCFM, $WCFMmp;
       if( $vendor_id ) {
         $Store_name   = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_name_by_vendor( $vendor_id );
         $package_name =  $Store_name . ' ' . __('Shipping', 'wc-multivendor-marketplace' );
       }
       return $package_name;
    }, 100, 3 );

    Add this code to your child theme’s functions.php
    In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

    Thank You

  • #102074
    Avatar
    Craig
    Participant

    Thank you!!!

    I will test this out in the next few days!

  • #102430
    Avatar
    Craig
    Participant

    This code worked perfectly!!! thanks for providing this.

  • #102437
    Avatar
    Sushobhan
    Keymaster

    You are always welcome 🙂 Let me know if there’s anything else we can help you with.

    Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.

  • #102438
    Avatar
    Craig
    Participant

    awesome thanks!
    I have one other thread started regarding shipping setting that I have not been able to resolve after much testing.

    Postal Code wildcards
    and
    Shipping zones

    Can you have a look here?
    https://wclovers.com/forums/topic/wild-cards-for-postal-codes-shipping-zones/

You must be logged in to reply to this topic.