Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckOut #2

Open
SpadeAces opened this issue Apr 5, 2017 · 10 comments
Open

CheckOut #2

SpadeAces opened this issue Apr 5, 2017 · 10 comments

Comments

@SpadeAces
Copy link

I am having issue with the checkout can you help ?

@hiteshsahu
Copy link
Owner

hiteshsahu commented Apr 5, 2017 via email

@SpadeAces
Copy link
Author

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

Kindly Assist me.

@SpadeAces
Copy link
Author

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
Copy link
Owner

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

@raiaslam
Copy link

raiaslam commented Jun 2, 2017

Can you tell me how much you will charge to provide me Admin Panel +API complete code project.
thanks in advance .
[email protected]

@iman100
Copy link

iman100 commented Jul 7, 2017

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

@hiteshsahu
Copy link
Owner

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

@yasserdastani
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@hiteshsahu @iman100 @raiaslam @SpadeAces @yasserdastani and others