hiteshsahu / ECommerce-App-Android

E-Commerce App for Android with Material Design Pattern
568 stars 480 forks source link

CheckOut #2

Open SpadeAces opened 7 years ago

SpadeAces commented 7 years ago

I am having issue with the checkout can you help ?

hiteshsahu commented 7 years ago

What is the issue ?

On 5 Apr 2017 7:19 p.m., "SpadeAces" notifications@github.com wrote:

I am having issue with the checkout can you help ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hiteshsahu/ECommerce-App-Android/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AD41fdxqbj5BOOeMlYEaRaQnfBMMvLPkks5rs5vUgaJpZM4M0RKH .

SpadeAces commented 7 years ago

I added other activites in the code, now check out is giving me this error. errir

Kindly Assist me.

SpadeAces commented 7 years ago

The following code return null fragment i.e fragmentToReplace =null .

// Try to find the fragment we are switching to Fragment fragment = fragmentManager.findFragmentByTag(TAG);

        // If the new fragment can't be found in the manager, create a new
        // one
        if (fragment == null) {

            if (TAG.equals(HOME_FRAGMENT)) {
                fragmentToReplace = new HomeFragment();
            } else if (TAG.equals(SHOPPING_LIST_TAG)) {
                fragmentToReplace = new MyCartFragment();
            }else if (TAG.equals(MY_CART_FRAGMENT)) {
                fragmentToReplace = new MyCartFragment();
            }

            else if (TAG.equals(SETTINGS_FRAGMENT_TAG)) {
                fragmentToReplace = new SettingsFragment();
            }

            else if (TAG.equals(CONTACT_US_FRAGMENT)) {
                fragmentToReplace = new ContactUsFragment();
            }

            else if (TAG.equals(PRODUCT_OVERVIEW_FRAGMENT_TAG)) {
                fragmentToReplace = new ProductOverviewFragment();
            }

            else if (TAG.equals(SHOPPING_LIST_TAG)) {
                fragmentToReplace = new MyCartFragment();
            }

        } else if (TAG.equals(Submit_Add_Fragment)){
                fragmentToReplace = new SubmitAddFragment();
            }

        {
            if (TAG.equals(HOME_FRAGMENT)) {
                fragmentToReplace = (HomeFragment) fragment;
            } else if (TAG.equals(MY_CART_FRAGMENT)) {
                fragmentToReplace = (MyCartFragment) fragment;}
            else if (TAG.equals(SHOPPING_LIST_TAG)) {
                fragmentToReplace = (MyCartFragment) fragment;
            } else if (TAG.equals(PRODUCT_OVERVIEW_FRAGMENT_TAG)) {
                fragmentToReplace = (ProductOverviewFragment) fragment;
            } else if (TAG.equals(SETTINGS_FRAGMENT_TAG)) {
                fragmentToReplace = (SettingsFragment) fragment;
            } else if (TAG.equals(CONTACT_US_FRAGMENT)) {
                fragmentToReplace = (ContactUsFragment) fragment;
            } else if (TAG.equals(Submit_Add_Fragment)){
                fragmentToReplace = (SubmitAddFragment) fragment;
            }
        }

        CURRENT_TAG = TAG;

        // Replace our current fragment with the one we are changing to
        transaction.replace(id, fragmentToReplace, TAG);
        transaction.commit();
    } else
    {
        // Do nothing since we are already on the fragment being changed to
    }
}
hiteshsahu commented 7 years ago

Thank you for reporting, I will update the repo today.

raiaslam commented 7 years ago

Can you tell me how much you will charge to provide me Admin Panel +API complete code project. thanks in advance . aslambscs@gmail.com

iman100 commented 7 years ago

hi .Thank You for shared free project. can see Admin Panel + webservice(API) . Gmail

hiteshsahu commented 7 years ago

Web services are ready but am n panel is in progress.

yasserdastani commented 7 years ago

Hello . Please give me a guide on how to write code on the purchase button to send the contents of the purchased item to the server. thank you very much