Hi, there.
Unfortunately, I can't show links at the moment as I am building locally on my mac via MAMP. I am open to a video call though
I imported the classifieds site settings into my own theme, I'm having a few issues, but my biggest one right now is the ordering of an ad package and then placing an ad.
To simplify things a bit I did this screen recording: hidden link
As far as I could see the reference does not include a registration form, so I followed the tutorial and built it.
When I register, the user is registered as a subscriber, I then log in and place an order for the ad package, after I confirm the order the user role changes from subscriber to customer and loses access to a whole bunch of pages.
Would it be best to run through the classifieds/directory tutorial and then ad the additional functionality like ad packages afterward?
I'm just under a pretty tight deadline, hence why I tried working from the reference site info I imported.
When you create new users and have WooCommerce active you need to pay attention to the warnings in CRED.
It will ask you to disable certain WooCommerce settings (mainly to avoid duplication of users).
Then, when you connect a Product to an User with this CRED form. (payment on registration) on the bottom of the Form's edit page you are also asked what to do after the payment is completed.
This can have influence over the user too.
The user Role created is determined by what you have set in CRED to create and if you use Access then this role will exactly be able to do what Access dictates.
If you create Customers, those are not Toolset roles, but created by WooCommerce.
I suspect you did not turn off the user creation of WooCommerce.
Then this should work fine. Can you confirm this?
Hi Beda,
The user creation of WooCommerce was not active, this leads me to believe that I probably screwed something up 🙂
I'm in the process of moving the development site to an online server so I can give you guys access.
Once I have it online I will reply to the ticket with further details.
OK.
I enabled a private reply so you can submit things safely.
If you have steps or a Duplicator, I can also work with that:
https://toolset.com/faq/provide-supporters-copy-site/
Thank you!
I received this package and am deploying it.
Duplicator runs since a while ????, I think I will have a reply ready tomorrow.
Please await my news here.
I see the form "Register to post your ads" and that form, creates new subscribers.
There is nothing wrong with that from and users are created just fine.
Now, when you place an order for the ad package, after I confirm the order the user role changes from subscriber to customer and loses access to a whole bunch of pages.
I assume this is done with the Form "Add new Ad package".
This form is a Post form and does not touch the User at all.
There is no Post Types connected to the Form thou, hence, it cannot work.
Moreover, if this Form is connected to a post type and starts to work, it will not affect your user.
The user will be redirected to the checkout page.
But the user will not be affected, only the post.
It is impossible (unless you have Custom Code in place) that Toolset changes the user Role when a post form is submitted.
Can you elaborate the exact steps one by one to make the issue happen, also what form to use?
I suspect there is a misunderstanding, rather than a BUG, but let me see what I find when I have more precise informations from you.
Hi Beda,
What you explained is exactly what happened to me, if I understand you correctly the "Add new Ad package" form might not be connected to a post type?
How would I check this? I'm still pretty new your plugin suite.
You should have that form connected to the post type it edits.
This is done in Toolset > CRED > your_form > Edit > Settings > Post Types connected to this form:
Please there choose the Post type you want to edit with, or create. In your case those should be Ads.
Please then re-test this issue, as said that should not be possible to happen at all, unless there is custom code or a 3rd party plugin in place that updates the user when the users submits the form.
Hi Breda,
Thank you for your reply.
I will test asap, I'm filming today but will respond as soon as I have tested again.
OK, please let me know the results.
Hi Brede,
Thank you very much for being so patient with me on this. Your suggestion worked, I have found some other compatibility issues with other plugins but this is I know is due to custom code.
Just one more question, I need to re-import the reference site for classifieds, does that reference site contain a user registration form, I only ask as I did not see one.
The Classifieds reference site does not include any User Registration form.
You will need to either import them from an existing install (if available) or create some.
Please let me know if you need help with this.
No problem,
I will run through the tutorial first.
Thanks again for all your help.