Getting access denied message on order review page for guest user in Drupal 9 - drupal-8

I am using Drupal version 9.3.14 with Drupal commerce implemented in it.
I want to enable the functionality for user to create order without login. I.e. user should be able to create order or buy product from the site as a guest user. Right now new user needs to create an account before creating any order.
I made necessary changes in the checkout flow (/admin/commerce/config/checkout-flows) but after filling required information on the checkout form when it moves to order review page, it gives "Access Denied" page.

Related

Sign up for membership in Django City, create admin authentication process

Currently, it is set to return to the first screen of the program when membership registration is completed in Django. However, since anyone can sign up and view information within the program, I want to make it possible to access the program's first page only after the administrator approves it when someone completes membership registration. As a result of Googling, only email verification was found, so I had to ask a question. There seems to be no admin authentication process provided by Django. Are there any similar examples or methods?
I want to make it possible to access the program's first page only after the administrator approves it when someone completes membership registration.
At first you can set the step for every registration level.
and to approve the user to authenticate the page, you can create and check status user profile.
Another way is using a django permission for an authenticated page.
you can do this, if the user completed a couple of registration and a step number, for example is 7, you can give needed permission to the user.

I need help in designing a database (and signup and login on base of their role )in which there are three user

I want make sign up and login on the base of their role there admin can add users and approved the request of other two user so that they can login.When user click on the sign up the user see sign up page accorading to their roll and same for login .
Django implements a pretty decent authentication framework inside it, so you already have things such as Users, Groups and Permissions to work on. All of those being managed easily by the admin page.
What you want to do is to assign a set of groups/permissions to a newly created user to determine its role and then build a frontend that manages the different kind of users in terms of templates. If you want an user to have itself validated before start using your page, refer to the is_active attribute of the User object.
Read for more information:
https://docs.djangoproject.com/en/2.2/topics/auth/default/#user-objects

Fetch users media using the new Instagram Graph API on WordPress

Soo.. with the new changes that Instagram and Facebook have brought upon us, it has made it more complicated to have a module displayed on our website to just show the images from a user's feed.
Long Story:
Below, are the things that I have already accomplished:
- Create a Facebook page and link Instagram account (Completed)
- Create an Facebook App (Completed)
- Create a Business Manager page (Working on verifications)
I want to be able to display a users profile images depending on the username that is set in a custom field type on WordPress Admin Panel.
Questions:
Since we own all of our corporate IG accounts, do I have to implement Instagram/Facebook login to display user's feed items?
Is there a way to bypass this?

check if user has a valid recurring profile

Im trying to build an opencart extension where a product is a subscription and the user must renew it every month. So once he purchase the subscription, the user will have the ability to download certain documents from the product page.
What i need to do is check if the user has a valid active recurring profile then show the download links or if the subscription is expired or inactive hide the links.
Can someone guide me on how to do this?
Im using opencart 2.3.

Facebook permissions - login flow

I am facebook development newbie and have problems with understanding login flow.
What I want to achieve:
I need access app user's pictures from the album created by the
application (preferably also when users are offline).
I run through facebook samples and stackoverflow questions and what I managed to do is:
I use facebook authentication with user_photos scope as follows:
however the script retrieving list of albums gets an "An active access token must be used to query information about the current user." error.
So I added:
Grant Permissions to Allow access to Photos and Albums
The scope is exactly the same, so I don't understand why after clicking that button retrieving the albums works.
The problem is that after refreshing the page, app recognizes that I'm a user who uses the app, but the albums are not accessible again.
How can I make app to get the permission to access pictures permanently?
I suppose it should be possible to access them also when the user is offline (if the album is public)?
The problem was that script accessing data was loaded faster than the user was verified by facebook. It worked with a button just because clicking a button gave application needed time buffor.