Manage WooCommerce Customer Fields with Profile Builder

Profile Builder WooCommerce Sync Add-on
Looking for a simple way to manage WooCommerce Customer Billing and Shipping Address fields with Profile Builder?

Now you can, using the Profile Builder – WooCommerce Sync Add-on.

Manage WooCommerce Customer Fields

By default, WooCommerce adds address fields, Customer Billing and Shipping Address to the user profile. But what if you want to capture more user information, as well as let users manage all their profile fields in one place?

When a user/customer registers or updates his profile via Profile Builder front-end forms, using this add-on he will now not only be able to fill in/edit the user fields created with Profile Builder, but also display and update the shipping and billing fields from WooCommerce.

Installing Profile Builder – WooCommerce Sync Add-on

After downloading, you can add the add-on using the standard WordPress plugin uploader and clicking “Activate”.

Woo-Sync-Addon-Install
Note: For the Profile Builder WooCommerce Sync add-on to work as expected, you’ll need to have already installed both Profile Builder and WooCommerce plugins.

Note: The Profile Builder – WooCommerce Sync Add-on requires at least Profile Builder 2.0.1, free or premium.

Adding WooCommerce Customer Billing and Shipping Address to User Profile

Once activated the Profile Builder – WooCommerce Sync Add-on will automatically add WooCommerce Customer Billing and Shipping Address fields to the Manage Fields list from Profile Builder. They will output all the individual fields required for WooCommerce Shipping and Billing Address in the front-end.

manage-fields-woo

You will be able to (re)arrange them, edit their heading (title) and in case you remove them, you can always add them later in the Fields drop-down.

manage-fields-woo-shipping-billing-small
The WooCommerce fields will now appear on both registration as well as edit profile pages managed with Profile Builder.

front-end-register-woo-fields1

Users registering through Profile Builder will be able to fill in the required WooCommerce Customer fields

The Edit Profile page will now allow your users to update WooCommerce Shipping and Billing information

The Edit Profile page will now allow your users to update WooCommerce Shipping and Billing information

So from now on, when a new user registers, you can give him access to add or modify the WooCommerce customer fields as well, all in one place.

Get the Profile Builder – WooCommerce Sync Add-On

WordPress Shortcode – Compare Values

icon-256x256

With both Profile Builder and WordPress Creation Kit plugins using Mustache as their template system for things like User Listing and Swift Templates, we need at times the possibility to compares different values.

This however, is not possible in Mustache. So a shortcode to compare values comes to the rescue.

Compare Shortcode

Download Compare Shortcode

How to use

[compare val1="test" val2="test" operator="=="]
    List if the values is the same?
[/compare]
 
// Inside Profile Builder or WordPress Creation Kit you'll probably use it like so:
[compare val1="{{my-custom-field-2}}" val2="Yes" operator="=="]
    List if the values is the same?
[/compare]

Code wise, it’s fairly straight forward. You can also see what operators are supported:

/*
 * Compare shortcode. Tags: shortcode, compare,
 * Usage:
	[compare val1="test" val2="test" operator="=="]
		List if the values is the same?
	[/compare]
 */
add_shortcode( 'compare', 'wppbc_compare_shortcode' );
function wppbc_compare_shortcode( $atts, $content ){
	extract(
		$out = shortcode_atts(	array( 'val1' => '', 'val2' => '', 'operator' => ''), $atts )
	);
 
	// quick fix for WordPress bug: https://core.trac.wordpress.org/ticket/29658
	foreach($out as $key => $value){
		$out[$key] = str_replace('”', '', $value );
	}
 
	$l = $out['val1'];
	$r = $out['val2'];
 
	$operators = array(
		'=='    => create_function('$l, $r', 'return $l == $r;'),
		'==='   => create_function('$l, $r', 'return $l === $r;'),
		'!='    => create_function('$l, $r', 'return $l != $r;'),
		'<'     => create_function('$l, $r', 'return $l < $r;'),
		'>'     => create_function('$l, $r', 'return $l > $r;'),
		'<='    => create_function('$l, $r', 'return $l <= $r;'),
		'<='    => create_function('$l, $r', 'return $l <= $r;'),
		'>='    => create_function('$l, $r', 'return $l >= $r;'),
		''      => create_function('$l, $r', 'return $l == $r;'),
	);
	if ( !array_key_exists($out['operator'], $operators ) ){
		return '<p>The compare operator <strong style="padding:0 10px;">' . $out["operator"] . '</strong> is not recognized. Please try: == , ===, !=, <, >, <=, >=';
	}
 
	$bool = $operators[$out['operator']]($l, $r);
	if( $bool ) {
		return $content;
	}
}

Multiple Admin Emails Add-On for Profile Builder

You may be well aware that WordPress sends by default a notification e-mail to the address that is set in the General Settings page of the Dashboard whenever a new user registers to your website. If you have a website where you manually approve new users this feature comes in handy .

But what if you have a whole team at your side that deals with new users? How do they get notifications? You may have a forwarding system in place, so that every time a new user registers, the notification email you receive is then sent to the others, or in a very worst case scenario you manually forward the emails yourself. In any case, there is now a better solution. Meet the Multiple Admin Emails Add-On for Profile Builder.

How it works

This little add-on adds a new option in the General Settings page of Profile Builder where you can type a list of email addresses that you wish to send notifications regarding users. Therefore when a new user registers notifications will be pushed to these addresses instead of the WordPress default.

Download and activate

Download The Multiple Admin Emails Add-OnIcon Multiple Admin Emails Add-On for Profile Builder

Please note: The Multiple Admin Emails Add-On requires Profile Builder version 2.0.6 or higher.

When your download is complete, you can upload the .zip file in the Add Plugins page of the Dashboard or you can unzip the file and copy its contents in the wp-content/plugins directory. Then simply navigate to the Plugins page and activate the Add-On.

Multiple Admin Emails Add-On for Profile Builder

Add the email addresses

You are almost done at this point. Navigate to the General Settings page of Profile Builder and you will see the new option named “Admin Emails”. Here you can type as many email addresses as you need, separated by comma. By default when you activate the plugin this option will be populated with the WordPress default email address.

Multiple Admin Emails Add-On for Profile Builder

Try it out

All done. From now on notifications regarding users will be sent to the addresses you’ve entered.

Maximum Character Length Add-On for Profile Builder

How can I limit the maximum number of characters a user can type in a field?

You may find yourself in the situation where you want your users to provide a postal code that is at most 4 characters long, or a description of themselves in less than 140 characters. In these cases the Maximum Character Length Add-On for Profile Builder comes in handy.

So to answer the above question, let me walk you through the 3 easy steps of getting this feature up and running.

Download and activate

icon-150x150First of all, click on the button below to download the add-on. Unzip the downloaded file and copy the contents in the wp-content/plugins directory.

Download The Maximum Character Length Add-On

Please note: The Maximum Character Length Add-On requires Profile Builder version 2.0.5 or higher.

Once the files are moved, head over to the Plugins section of the Dashboard and activate the add-on.

maximum-character-length-1

Set the maximum character length

Once the add-on has been activated head over to the Manage Fields page in Profile Builder. If you select an input field, a textarea field or the default biographical info field you will see that a new property named Maximum Character Length appeared below the other properties. All you need to do is set the desired value, in my case it was 10. You can also modify this value when editing one of these fields.

maximum-character-length-2

See it in action

Too see your work in action head over to the page where you display the register or edit form and type something in the field that has a maximum value set. Did it stop you from typing?

WordPress Passwordless Login

logo_150_150_03

WordPress Passwordless Login is a plugin that allows your users to login without a password. It’s as simple as installing it and adding a shortcode in a page or widget.

Download Passwordless Login from WordPress.org

These past months have been filled with security reports, articles and 0-day exploits. It’s fair to say they had little to do with WordPress, but that’s besides the point. What’s certain is that we’re now living in an increasingly technologically complex world and it’s getting harder and harder to keep everything safe and secure.

This article draws it’s inspiration from the Passwordless authentication: Secure, simple, and fast to deploy, an article published something like two weeks ago. It explains how to get passwordless login for node.js but more importantly, why you want passwordless login.

Username + passwords will probably not be replaced anytime soon. But that doesn’t mean we can’t come up with alternatives.

Everybody has a “friend” that uses the same password or some variation: the pass with numbers in it, the pass with capital letters, the pass with special characters in it, the pass with the year at the end in it, etc.

Lately there have been great solutions involving one time passwords like Persona from Mozilla. Whenever a user wants to log in, they receive a short-lived, one-time link with a token via email or text message.

There is also Clef that uses a QR code and also supports WordPress via a plugin

But all these are third party so let’s look into building something native to WordPress.

Read more

Breaking the barrier

The language barrier that is. I’m sure many of you have tried to translate a WordPress plugin, some even Profile Builder or WordPress Creation Kit, just to find out at the end of the process that it was a difficult thing to do. I’m sure many of you wanted to help out with a translation and did not have the know-how in achieving this.

Moreover, as new updates from these plugins rolled out, the management of the translations would get out of control and the end result would be an incomplete translation that would make the plugins inconsistent.

At this point I’m asking. Wouldn’t it be nice to have a place where translations are accesible, easy to mantain and always up to date with the latest version of the plugins? Well, starting today, for Profile Builder and WordPress Creation Kit there is such a place and it is called CozmosLabs Translate.

CozmosLabs Translate Logo

Translate is a new tool, powered by GlotPress, that is designed as a collaborative work environment where anyone can help with the translations. It has a simple and easy to use interface, where you can edit translations and view their progress.

As certain languages get fully translated, or are close to that point, they will be added in plugin updates, but if you feel confortable using some languages before their official release you can download them in advance.

All you need to do is to register an account and have fun translating.

Profile Builder Free version 2.0 released

After the newly launched version 2 of Profile Builder PRO, we focused on releasing an update to the Profile Builder Free version from wordpress.org.

Profile Builder Free v2 comes with:

  • a completely redesigned interface, more focused on flexibility
  • manage default user profile fields (add/edit/delete)
  • drag & drop to reorder profile fields
  • set a minimum password length
  • enforce minimum password strength (using the built in WordPress strength meter)
  • email confirmation for new users
  • allow users to login with email or username

Profile Builder Free Basic Information

New to Profile Builder?

If you’re looking to have a basic front-end registration for your website, you’ll find Profile Builder Free very easy to set up. It’s shortcode based, allowing you to set up register, login and edit profile forms in minutes.

More functionality (like Extra User Fields (Avatar Upload), Front-end User Listings, Custom Redirects or Multiple Registration Forms) is available in the premium versions.

WordPress Minimum Password Length and Password Strength Meter for User Registration

I’m quite concerned for the security of my site and content if I allow users to sign up with weak passwords.

That’s something we hear a lot from website owners. Chances are, if you run a WordPress membership site that allows user registration, your primary security concern is NOT to allow users to sign-up with weak passwords.

A short or weak password is one of the most used security breach by people trying to hack your site, so you try to avoid that at all costs. Cracking one password may sometimes be enough to lose access to sections or even the whole website, which puts your content, revenue and work in danger.

After hours of research you’ve probably realized that most of the plugins available go only half way. While some offer increased security by allowing you to set a minimum password length, they do NOT posses all the features you would need from a user registration plugin.

On the other side, even though there is a significant list of plugins out there that can help you with some aspects of the user registration part, the big majority fall short when it comes to security.

Wouldn’t it be nice to have an all in one solution that can help you with both the front-end user registration part, but also be able to set security restrictions when it comes to registration forms?

Read more

WordPress Multiple User Registration Forms with Profile Builder 2.0

I’ve set 2 new roles for my site – “sellers” and “buyers”. Each role should have its own registration page with different fields.

I’ve searched for hours for a plugin that will give me the option to do this, but couldn’t find one. Does a plugin like this even exist?

This sounds like a pretty common configuration in membership websites with different role registrations. However, finding a user registration plugin that does this out of the box is where things get hard.

Plugins authors try to offer you workarounds, but the truth is you shouldn’t be required to mess around with the code trying to filter the fields that aren’t relevant on a specific form. Nor be advised to use CSS to hide fields, which of course can break stuff if you need some kind of validation for the extra fields.

Shouldn’t multiple user registration forms with different profile fields for certain roles be more easy to set up using a plugin that was designed exactly for this, to handle the front-end user registration part?

That’s the main reason we made sure that this process is really straight forward in Profile Builder 2.0.

Read more

Profile Builder Pro 2.0 is out! See Full List of Features and Improvements.

pb2.0-logo-red
We’re happy to announce that Profile Builder 2.0 is officially released!

The 2.0 version includes important new features and improvements we know you’ll love:

Profile Builder 2.0 has been rebuilt from scratch into a more flexible and user friendly user registration and management plugin.

1-pb2.0-basic-info-small

Upgrading to Profile Builder Pro 2.0 (from 1.3.x)

All current Profile Builder 1.3.x customers will find the new Profile Builder 2.0 update available in their account page.

You will be able to update to 2.0 without losing any existing information or settings. However we won’t offer it as an automatic update for 1.3.x.

The main reason is that in 2.0, because of the restructuring we had to drop some of the filters from 1.3.x, therefore some of the plugin customizations may not work in 2.0.

However, most of the custom functionality that was added through filters in 1.3 can now be easily achieved using the UI of 2.0.

You will have to manually upgrade to Profile Builder 2.0 following the steps below:
Note: Make sure to create a full database backup first.

Steps to Manually Upgrade to 2.0

  • Access your account page and download the Profile Builder 2.0 zip file
  • Unzip the plugin files
  • (Via FTP) Delete the existing profile-builder-pro folder from the plugins folder on your server (which contains Profile Builder version 1.3.x files).
  • (Via FTP) Copy the new profile-builder-pro folder (containing Profile Builder 2.0 extracted files) to your plugins directory

This way, all your previous Profile Builder 1.3.x settings and data will now be recognized by version 2.0.

Get Profile Builder Pro Today!

People have been pretty excited about this release, so make sure you check out the most comprehensive WordPress user registration plugin, Profile Builder.