Commerce Commerce 1.x Users Register Resource

This short tutorial will help you create a Register resource that can be used with the standard checkout process in Commerce.

1. Install Login

First things first. Install the Login extra from MODX.com through the package installer in the manager.

2. Create a Register Resource

Create a new resource somewhere in your site, and name it Register, or Sign up. In the content (or a chunk, or a template), put the following code:

[[!Register]]

Save the resource. Open it and make sure that it shows the default registration form.

If you’d like the customer to be able to continue with the checkout immediately, disable &activation, enable &autoLogin, and set submittedResourceId to [[++commerce.checkout_resource]]. This will ensure that the Register snippet redirects the user back to the checkout process after registering.

For further customisation options, see the Register documentation.

3. Tell Commerce you have a Register Resource

Go to System > System Settings in the manager, and find the commerce.register_resource system setting. Set its value to the ID of the login resource you created, this will automatically add a link to your sign up page from the user step in the checkout.

4. Ready to go

That should be all. When the user is logged in and returns to the checkout, they will automatically move to the next step, which is filling in their address information.

More Information