Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Small issue at shopping cart page
- This topic has 5 replies, 2 voices, and was last updated 5 years ago by id.manage.
- AuthorPosts
- December 4, 2019 at 4:56 am #95945id.manageParticipant
Hi guys,
please see the picture enclosed, how can I get rid of the ‘8’ underneath the word ‘shopping’? I don’t remember I had this before.
https://www.evernote.com/l/Aglelrhsd4FEfI0mK4yqIuBpy1qBjFOBrr0B/image.png
Thank you.
- December 4, 2019 at 5:56 pm #96034id.manageParticipant
Just some update about this issue. If store shipping is disabled, the number 8 disappears. But if I enable store shipping, the number shows up again. Please can you fix this? Thank you.
- December 7, 2019 at 12:58 pm #96411WCFM ForumMember
HI,
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
- December 8, 2019 at 9:20 pm #96611id.manageParticipant
Thanks, it worked. Now it shows the vendor’s name. What if I don’t want to show anything? Only shipping for instance ?
- December 9, 2019 at 2:12 pm #96730WCFM ForumMember
Then use this revised code –
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 = __('Shipping', 'wc-multivendor-marketplace' ); } return $package_name; }, 100, 3 );
Thank You
- December 9, 2019 at 5:37 pm #96757id.manageParticipant
It works very well, thanks 🙂
- AuthorPosts
- The topic ‘Small issue at shopping cart page’ is closed to new replies.