Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.0
Something big is coming for marketplace admins… MultiVendorX 5.0 is almost here. Are you ready?
Be the first to explore all the game-changing features!
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

Information for delivery methods “Vendor deliveries”

Open
Viewing 1 reply thread
  • Author
    Posts
    • #249838
      l.gan
      Participant

      Hello Thanks for the great support of the plugin.

      I have encountered a small problem. I can add custom text and images to the standard shipping methods from WooCommerce. But unfortunately, if the shipping method is “Vendor Shipping” and the shipping method is, for example, “Free Shipping” – this no longer works.

      Could you please tell me how exactly the code should look so that this works for “Vendor Shipping”.

      add_filter( 'woocommerce_cart_shipping_method_full_label', 'filter_woocommerce_cart_shipping_method_full_label', 10, 2 );
      function filter_woocommerce_cart_shipping_method_full_label( $label, $method ) {
        $shipping_method_settings = array(
          "flat_rate" => array(
            "image_url" => site_url( '/wp-content/uploads/party-popper-2.webp' ),  
            "additional_text" => " (1)" 
          ),
          "local_pickup" => array(
            "image_url" => site_url( '/wp-content/uploads/lock-1.webp' ),  
            "additional_text" => " (2)" 
          ),
          "free_shipping" => array(
            "image_url" => site_url( '/wp-content/uploads/blue-diamond.webp' ), 
            "additional_text" => " (3)" 
          ),
        );
        if ( isset( $shipping_method_settings[ $method->method_id ] ) ) {
          $settings = $shipping_method_settings[ $method->method_id ];
          $image_html = '<img src="' . esc_url( $settings['image_url'] ) . '" alt="' . esc_attr( $label ) . '" style="vertical-align: middle; margin-left: 5px;" />';
          $label = $label . $settings['additional_text'] . $image_html; 
        }
        return $label;
      }
    • #249839

      Hello There,

      We’re sorry to hear that you’ve encountered an issue on your end. As it involves custom code, it’s a bit difficult for us to review and provide direct assistance. However, I’ve shared the details with our team, and they will look into it and assist you accordingly.

      As mentioned earlier, our development team is currently occupied with ongoing work for the revamp, so it may take some time for them to get back to you on this. If you require urgent assistance, you can reach out to our custom development team here: https://multivendorx.com/custom-development/, and they will get back to you as soon as possible over there.

      Thank you for your understanding.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Shopping Cart
Scroll to Top