[Resuelto] Register + Pay = Wrong User type & Custom function Fails
This support ticket is created hace 6 años, 7 meses. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
So people could register and a post for their band was created using the name they provided in the form
and they were set as the author.
On a new project, which I started by cloning the weddingbands.ie website,
the site dev.weddingsuppliers.ie has the same cred form
The post type we are creating is a wedding supplier.
We have added Sumo Subscriptions to Charge people for membership.
Link to a page where the issue can be seen: enlace oculto
I expected to see:
The membership form completed should result in
1. a subscription
2. A user created and set as Suppliers Applicant
3. A custom post type created named [Supplier-Company-Name]
Instead, I got:
1. The subscription was ok.
2. The user type we are left with is CUSTOMER
3. No Custom Post type has been created.
before we added cred commerce, and the additional payment step in teh registration.
The function was correctly handling the new post type and user role.
So the simple cred form would:
1. Create a user with role (Supplier Applicant)
2. Create a CPT (Supplier) using the name given int he cred reg form.
Adding cred commerce has stopped this from working now.
Thanks for the reply,
I just tried a fresh registration and a user was created but as a customer.
The info was taken from the Woocommerce checkout so that's normal I suppose.
And seeing as the billing info was different to the Suppliers info, the billing info was stored as the user and not the cred form data.