Now we are using the tpl file for the login page. Customers can change the style and place the elements at their free will.
If you want to create a new style for the login page, you can create a custom template of your choice and upload it to the themes/{Current theme}/login.tpl.
If you want to add some custom/local changes in login.php , you need to add a custom php file with name custom_tpl_login.php in themes/functions/ folder where you can add the new changes and define those to a template variable. Also you should place that variable in themes/{Current theme}/login.tpl.
We have a custom file custom_add.php in themes/functions/ folder which will be available for all files.
Here is the template variables used for login page.
1) {$login_page_heading} - To display the page heading of login page
The data of this can be change by changing the value of define HEADING_TITLE in login.php language file.
2) {$login_category_image} - This is the image showing on the right side on the {$login_page_heading}.
3) {$login_message_stack_text} - To display errors or success message if any, after submitting the form.
4) {$visitors_cart_text} – To display a message for visitors if the cart contents > 0.
The data of this can be change by changing the value of define TEXT_VISITORS_CART in login.php language file.
5) {$returning_customer_text} – To display the title for returning customer.
The data of this can be change by changing the value of define TEXT_RETURNING_CUSTOMER in login.php language file.
6) {$title_entry_email} – To display the title for email.
7) {$email_field_text} – To display the input field for email.
8) {$title_entry_password} – To display the title for password.
9) {$password_field_text} – To display the input field for password.
10) {$password_forgotten_link}- To display the link for Forgot password.
The data of this can be change by changing the value of define TEXT_PASSWORD_FORGOTTEN in login.php language file.
11) {$login_button} – To display the login button.
12) {$new_customer_text} – To display the text for new customer to create a new account.
13) {$new_customer_button_link} – To display the create account button
14) {$new_guest_text} – To display the text for guest account creation.
15) {$new_guest_button_link} – To display the continue button for guest account creation.
|