2.4.1 Dokan update problem with Shipping for Guests

This topic contains 6 reply and 3 voices, and was last updated by Nayem 8 years, 8 months ago
Viewing 6 Posts - 1 through 6 (of 6 total)
Author Posts
August 6, 2015 at 8:17 am 65550
Nayem Hi--we've been behind at 2.2.2 on our live site because we can't get all the errors out of the Dokan releases post 2.2.2 (on our Test site). Now we are at Dokan 2.4.1 on the test site and see that our logged in wordpress users CAN make purchases and are offered regular shipping (dokan product shipping) but guests can try to buy, but they cannot purchase (they get a message stating "Invalid shipping method." They initially get a "please enter your zip code to see available shipping rates" but when the guests enter a zip code they cannot see shipping rates. Further, they can't even see a shipping tab when looking at the product page. The Only way for them to see shipping rates and purchase is to be LOGGED in. In Woocommerce, we've enabled guest checkout (and geolocate address) but clearly Dokan shipping has it's own problems, too, and prevents the guests from checking out with 2.4.1. This is NOT a problem with WooCommerce selection of guest checkout, it is a problem with Dokan 2.4.1. The problem is worsened by the fact that Wedevs is mixing together bug fixes with Dokan feature add-ons. The feature add-ons keep causing problems so we cannot get your bug fixes in. We have resorted to fixing things on our own and essentially forking the Dokan code and THIS IS JUST WRONG!!! to have to do this. Please attend to this problem of shipping for guests ASAP. Please do not request a login to my test site, you will not get it, I am sorry. You must be able to address and communicate the problem resolution here on the forum just as we communicate the problems to you. It shouldn't be that hard. Thank you for a timely response and resolution, Brenda
August 6, 2015 at 12:05 pm 65570
Nayem Nayem

Hello,

Please open Dokan plugin/includes/pro/dokan-pro-loader.php. In this file you will get this function- public function inistantiate() and replace the function with –

public function inistantiate() {

        if ( is_admin() ) {
            Dokan_Pro_Admin_Ajax::init();
            new Dokan_Pro_Admin_Settings();
            new Dokan_Announcement();
            new Dokan_Update();
        }

        if ( is_user_logged_in() ) {
            Dokan_Pro_Ajax::init();
            Dokan_Pro_Dashboard::init();
            Dokan_Pro_Products::init();
            Dokan_Pro_Coupons::init();
            Dokan_Pro_Reviews::init();
            Dokan_Pro_Reports::init();
            Dokan_Pro_Withdraws::init();
            Dokan_Pro_Settings::init();
            Dokan_Pro_Shipping::init();
            Dokan_Pro_Notice::init();
        }

}

Thanks.

August 6, 2015 at 11:44 pm 65802
Brenda Brenda

Nayem,

The new function appears identical to what is already there. Furthermore, there
is no aspect of that function (new or old) that affects guests–who by definition
are not logged in and are not admin.

The function replacement does not fix the problem. Guests receive the
message that:

There are no shipping methods available. Please double check your address, or
contact us if you need any help.

Even though the entered address is valid and is within the shipping area for
the seller and product. Additionally, woocommerce can geolocate the guest
computer’s ip address and determine that the guest is in the USA. Since the
seller ships everywhere in the USA for the same price, the shipping should be
presented in the checkout automatically before any address is entered.

Also, the guest should see a shipping tab for the product but none is shown.

Everything above works if a user is logged in, so the the problem is in how
Dokan handles shipping for guests.

Brenda
1

August 8, 2015 at 10:41 am 65903
Nayem Nayem

Hello,

Yes, you are right. Now check these code again-

public function inistantiate() {

        if ( is_admin() ) {
            Dokan_Pro_Admin_Ajax::init();
            new Dokan_Pro_Admin_Settings();
            new Dokan_Announcement();
            new Dokan_Update();
        }
        Dokan_Pro_Ajax::init();
        Dokan_Pro_Shipping::init();

        if ( is_user_logged_in() ) {
           
            Dokan_Pro_Dashboard::init();
            Dokan_Pro_Products::init();
            Dokan_Pro_Coupons::init();
            Dokan_Pro_Reviews::init();
            Dokan_Pro_Reports::init();
            Dokan_Pro_Withdraws::init();
            Dokan_Pro_Settings::init();
            Dokan_Pro_Notice::init();
        }

}

This two line should appear before user logged in condition –
`Dokan_Pro_Ajax::init();
Dokan_Pro_Shipping::init();`.

Thanks.

August 9, 2015 at 11:14 pm 66172
Brenda Brenda

This fixed the shipping for guests problem. I don’t know how this release 2.4.1 got out with this bug. Do you?

August 10, 2015 at 3:57 am 66227
Ankit Ankit

When is the bug fixed next version of Dokan releasing? I don’t wish to update to v 2.4.1 after hearing about all these bugs.

August 10, 2015 at 10:35 am 66234
Nayem Nayem

Hello,

We will release a new update as soon as possible. Please keep patience.

Thanks.

Viewing 6 Posts - 1 through 6 (of 6 total)