Messy Shipping & Checkout Pages — Not Showing Correctly

WCMp Core

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #117272
      fghauri
      Participant

      The shipping options in the checkout page are very messy and confusing. You can see both ADMIN And VENDOR shipping options including when the vendor sets up their own shipping options. This creates a lot of problems such as: What if the vendor ONLY wants to provide curbside pickup? Yet in the checkout page the customer can see Curbside Pickup but also the admin shipping preferences such as Flat rate $3.00 shipping, etc. Furthermore, this is creating DOUBLE entries. Admin has curbside pickup available, if vendor also wants curbside pickup available instead of showing it as ONE option for curbside pick, it creates two (one made by the admin and one made by the vendor)

      This is highly confusing for a customer and likely to create problems for vendors that only want certain shipping options.

      1) If a vendor does not setup their own shipping preferences, does shipping for their products automatically refer to the admin/marketplace shipping setup that the admin has for woo commerce when a customer checks out?

      2) So if a customer checks out using the shipping options available, will they have any issues or errors checking out if the vendor does not have their own?

      3) When a vendor sets their shipping options — say for example they only want to allow CURBSIDE PICKUP. Yet in Checkout it shows ALL shipping options available including the ones admin set such as flat rate shipping, instore pickup. Why is doing that?

      Refer to screenshots:

      a) vendor has no shipping options selected in their frontend manager
      b) customer can view the shipping options made by the admin in the checkout page when vendor has no shipping options
      c) vendor has selected their shipping methods as seen (CURBSIDE PICKUP)
      d) customer can view and select both vendor shipping options (CURBSIDE PICKUP) but also admin shipping options that a vendor may not want such as “Flat rate $3.00” but this is also creating double entries (Curbside pickup created by admin and Curbside pickup created by vendor)

      What is the solution?

      P.S Ignore the $$$ value shipping options from UPS, that is from a third-party plugin.

    • #117320

      @fghauri, Yes, by default WooCommerce displays the admin’s shipping option for the zone and WCMp shows the vendor’s shipping options.
      Now, as a solutio you can hide admin’s shipping option if vendor has added their shipping rate for that zone. For this you can add this code in the function.pho of your active child theme :

      /*** Admin shipping methods are disable if vendor shiping is enable ****/
      function admin_shipping_disable_for_vendor( $rates ) {
        $free = array();
        foreach ( $rates as $rate_id => $rate ) {
           if ( 'wcmp_vendor_shipping' === $rate->method_id ) {
              $free[ $rate_id ] = $rate;
              break;
           }
        }
        return ! empty( $free ) ? $free : $rates;
      }
      add_filter( 'woocommerce_package_rates', 'admin_shipping_disable_for_vendor', 100 );
      Copy
    • #117411
      fghauri
      Participant

      Would this additional code also disable any 3rd party plugins that I have enabled in WP to calculate and give customers rates from carriers such as UPS, Canada Post, etc? As you can see in the 2nd screenshot, customers are also able to select shipping from carriers but that is only a plugin and cannot be added from a vendor’s end? Thanks.

    • #117444

      @fghauri, yes this should hide USPS shipping too.

      Can you please share a temporary admin, ftp access of your staging site, so our team can check this.
      While sharing the access, don’t forget to mark the response as private.

    • #121659

      We haven’t heard back from you for a while. So we presume this issue is fixed.

      If you need any further help, open another thread.

Viewing 4 reply threads

The topic ‘Messy Shipping & Checkout Pages — Not Showing Correctly’ is closed to new replies.