Manually approving the account in shopify after registration - shopify

Whenever the user register on my Shopify website i want that account to be disabled until admin enable it from back-end panel. Currently when user is registered, his account is enabled by default.
Have searched various forums even tried Shopify support but still no luck.

There are two options. why you are not putting "request membership" sign up form instead of sign in form (disable from here)? You could use the contact page for that if you wanted. Then you get an email when they fill that out. You would create the account (just copy and paste the info) and email them an invitation. They click the link in the invite to make the password. (I think it will be a tedious task for you)
Otherwise, let them create the account, but hide the pages with the Locksmith app. Then after you approve them you would apply a "tag" to the customer account so they can see the pages and products locked with Locksmith.

Related

Deleting buddypress account without deleting user

I've recently started using Buddypress in conjunction with a plugin called memberpress on a site, and am running into a problem:
Basically, if you're logged in to the site, as the Admin for example, and you go to the buddypress profile page link, you're automatically set up with a buddypress membership/profile and listed in the member directory.
I don't want everyone who logs into the site to just automatically/accidentally become a buddypress member and to be listed in the directory.
So I need to A)know how to delete the buddypress membership when that occurs without deleting the user and their ability to log into the site and B)better yet, stop buddypress from automatically assigning membership without purposeful signup.
Any insight would be helpful, thanks!
Buddy press works not connection but using the user table for users profiles. It means if you delete user or buddy press profile both result same delete both.
It might possible
Case 1 hide buddy press profile from public by deregister profile for the user
Case 2 hide user from member directory only.

Broadleaf commerce display some product to logged in users only

I am developing an e-commerce application using broad-leaf commerce.
My requirement is I have to add an product from login panel and display that product to only logged in users. Here few product products will be visible to all users (guest too) and few will be visible to only logged in users.
is there any way to do this?
Thanx soulfly1983 fou your try,but I found another alternative to do this without any customization. here is the full procedure..
Add a new category from admin panel.
Add a new page from admin panel (under content tab) and note the URL should be the same of category and page.
3 In the page click on rule tab.
4 Check the yes button in "Restrict to certain customers?"
Click +rule button and the select "match all" and select customer registered is equal to false
So this page will be visible to only guest users.
In the HTML body section of the rule (in general tab) write a message "you need to log in to view this stuff"
When user will log in successfully the user will not be able to the page , because we applied a rule that only logged out users can see the page so this time user will see the category and products added to that category.
am I doing right? any regarding this suggestion?
You can either extend the Product entity and add a field that will indicate whether that product will be visible to all users, or alternatively you could simply add an attribute for each product via the admin interface. Either way you will need to modify the UI logic so that it will take this additional field (or attribute) into consideration.

Change Gmail API Name on Login Screen

I made a script using Gmail API to get list of contacts. The script working fine but I want to make it more better as for now, when Login POPUP of Gmail is opened it displays this
xxxxxxxxxx.apps.googleusercontent.com is requesting permission to:
Manage your contacts
Where xxxxxxxxxx is my Client ID. I dont want it to be shown. I want to display my API Project Name here like this
"My API Name" is requesting permission to:
Manage your contacts
Is this even possible to do this? If yes then how?
Thanks
Perhaps try this out:
Search for "Google API Console" in the browser.
On the API console page, on the left hand side menu bar, under "APIs & auth", click on "Consent Screen". Setup project name, upload logo, etc.
See if this helps.
I also seem to remember that during oAuth, you need to pass Application Name (which can be the same as Product Name found in Consent Screen option at step 2 above.

registration/login on checkout and on website

I'm creating a webshop.
On index.php, I have a link that goes to registration and loginform.
When I add a product to my shopping cart, I check if the user is already logged in. If not, the user has to register.
How can I use the same registration form, and check if the user comes from the page shopping cart, or from the index (or another page)?
You can use cookies for that. You need to store cookies and then restore it when login page is revisited.

Avoid Sending Email when User Post New Listing

I am new to OSClass, right now when user publish a listing an email has been sent to user's email id, in which user can activate that listing, admin can also activate that listing.
But I want that only admin should have control to activate the listing, so if somehow I can control that if I skip that step of sending email to user's email account.
Is there any solution?
Regards.
You can remove the email sending removing the hooks.
Edit your oc-load.php file and add this lines:
osc_remove_hook('hook_email_new_item_non_register_user', 'fn_email_new_item_non_register_user');
osc_remove_hook('hook_email_item_validation_non_register_user', 'fn_email_item_validation_non_register_user');
osc_remove_hook('hook_email_item_validation', 'fn_email_item_validation');
If you doubts of hooks you can take a look at http://doc.osclass.org/Hooks
you can create a plugin for this and this way you don't modify the osclass core files, you can check how here http://doc.osclass.org/How_to_create_a_plugin