Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Login on Checkout Page


Go to End


2397 Views

Avatar
pianomansam

Community Member, 9 Posts

4 November 2008 at 10:35am

Edited: 04/11/2008 10:42am

I added the following code to allow a registered user to login on the checkout page (ecommerce/templates/Layout/CheckOutPage.ss) so all their information is recalled from the database.

Sam Oltz
Spearia, Inc.

	<% if CurrentMember %>
	<% else %>
	<div class="typography">
		<h3>Login</h3>
		<p>Already have an account? Login here.</p>
	</div>
		$LoginForm
	<% end_if %>