Magento advanced newsletter hide email fields when customer logged in - php

I have found a problem under this extension:
If the user is not logged he can see all input field (name, email...), but if he is logged all inputs disappears and he can only see the subscription button which only subscribe his account e-mail.
I need guest users and logged users seeing the same form! Both need to be able to choose any email they want to subscribe.
Does anyone know how to fix it?
Thank You.

Enable Magento Template Path Hints - to find the path to the form template
Comment out the code that check if customer is login (i.e $this->helper('customer')->isLoggedIn())

Related

Can't subscribe to subscription forms in a website

I've tried using the plugins Contact Forms 7, Mailpoet, and other subscription forms for my website. Whenever a visitor tries to enter his email address into the form and when they click the subscribe button. Instead of subscribing, a pop up is showing up that says. "https://websitename.com is requesting your username and password. The site says: Restricted"
But, when I logged into the admin site and subscribe, I can subscribe just fine.
Can you let me know what's wrong here? Thanks.
Please check the admin general setting "Membership" .You can find checkbox with "Anyone can register" option please active that one. Hope you will get the solution.

How to give new users two user role options upon WordPress user registration

I have a website that has customers and vendors. What is the proper way to let the new registered user choose which role they want? Do they want to be as a customers and buy things or do they want to start selling.
I’m dreaming of a registration page where you could actually put your username, email and then from a dropdown button choose their role. Don’t know is this possible to do. Please see the attached picture.
Image of registration form:
You could just use a plugin like Paid Membership Pro and make the different roles all free. I have used this for a similar project in the past and it all worked out. Check out the plugin site here https://www.paidmembershipspro.com/

wordpress password reset link not work

on my WordPress website when i reset my account password by entering my email and pressing reset on the lost-password page, i get the confirmation to check my email for confirmation link,
enter image description here
however i never get the email, the email doesn't reach the inbox neither the spam folder, in other words the email does not go.
Why could that be?
Emails from other forms from the website work, contact, registration, product purchase.
I am using woo-commerce on the website.
How can i overcome this?
go to yourwebsite/wp-login.php?action=lostpassword
then u can change ur password
dont go to my-account/lost-password/ as woocommerce get you to it
for more info go to https://codex.wordpress.org/Customizing_the_Login_Form

Disable Joomla virtuemart from allowing users to register using same email id

I'm developing an eCommerce site using Joomla 3.3 and Virtuemart 3, but for some reason, uniqueness of the emailID is not checked.
No alert/validation error is shown when a user try to register with already registered email id. Also, no alert message is displayed if the username entered by a user is already registered.
I want to disable this.
Any help will be greatly appreciated.

Redirect URL to a specific page in wordpress

I am creating a plugin, in which I send newsletters to subscribed users. To do this, I first created a form, in which users enter their email-id, and been subscribed. After subscribing, they got an email for confirming their email-id. Here is the problem arise.
To confirm, I send them a link for confirming their email id as following:
http://localhost/wordpress/wp-content/plugins/my-plugin-path/templates/subscribe.php?id=53cad9f23a6ec
While I have to send them the link as following:
http://localhost/wordpress/newsletter/confirmation/53cad9f23a6ec
So how it can be done. Please help me. Any help would be appreciated. Thank you.

Categories