Custom shipping name needs improvement
-
Currently, in
WCMp_Frontend::woocommerce_shipping_package_name()
, the vendor shipping customization code has two issues in it:1.Even thou it adds a space between the vendor name and the shipping name:
return $vendor->user_data->display_name . __(' Shipping', 'dc-woocommerce-multi-vendor');
… It gets displayed without the space in the Storefront theme.
2. There’s no setting in admin panel to stop prefixing the “Shipping” word with the vendor name when there is only one vendor.
3. The original shipping text has more to it than just a single “Shipping” word, but your filter eliminates it altogether:
apply_filters( 'woocommerce_shipping_package_name', sprintf( _nx( 'Shipping', 'Shipping %d', ( $i + 1 ), 'shipping packages', 'woocommerce' ), ( $i + 1 ) ), $i, $package )
Not sure if it’s intended or an issue that needs to be fixed. Please check.
- The topic ‘Custom shipping name needs improvement’ is closed to new replies.