Ken Shea Posted June 9, 2023 Share Posted June 9, 2023 (edited) I have looked, but no success. This is in create new account Really getting close to a live web site but therr are a dozen or so little things to clean up, thais is one of them. actually two Raise the conntry block up in line with others Thank you Ken Edited June 9, 2023 by Ken Shea Quote Link to comment Share on other sites More sharing options...
CHD-UK Posted June 9, 2023 Share Posted June 9, 2023 Hi Ken, I don't think there is a nice easy toggle switch to remove the consent option, however you can tinker with the template to achieve the desired result. When you have the changes tested, be sure to keep a copy of the file as a future update may overwrite it. Basically what we need to do is: - Default the toggle switch to yes - Hide the entire consent row so it is no longer visible - Enable the "create" button by default so the customer can click it ! So with this plan in mind, we need to make 3 small changes to the template file. The file is located at <your install dir> /lib/frontend/themes/basic/boxes/login/register.tpl You might want to take a backup copy of the file before we make these changes, although I can always send a fresh one to you... The bit we are interested in starts at line 260 -> 267 in the latest version (4.12) and currently looks like this: 1) On line 262: We need to change the 'checked' => false to 'checked' => true , so the whole line will read as follows: {Html::activeCheckbox($registerModel, 'terms', ['class' => 'terms-conditions', 'value' => '1', 'label' => '', 'checked' => true])}{$smarty.const.TEXT_TERMS_CONDITIONS} 2) On line 260: Add a style="display: none;" to the privacy-row class. (We could do this in the theme, but since we are editing the template... ) The edited row should read as follows: <div class="col-full privacy-row" style="display: none;"> 3) On line 266, remove the 'disabled-area' class which is responsible for disabling the "create" button when first displayed. The edited line will be as follows: <button class="btn-2" type="submit">{$smarty.const.CREATE}</button> 4) SAVE your template changes and test... With the above changes there will be some Javascript code which is no longer needed and could be deleted but its not hurting anything.... If we were implementing this properly we would wrap each of these changes in a conditional statement, and also the Javascript, then define a system configuration value to toggle the changes on and off depending on user preference, but that's for the advanced class... Hopefully that achieves part of your request. Let me know how you get on. Quote Link to comment Share on other sites More sharing options...
CHD-UK Posted June 9, 2023 Share Posted June 9, 2023 Hi Ken, To move that field up on the form you will need to move the block of code for displaying the county immediately before the block of code displaying the town. So in the same file we have just been editing (<your install dir> /lib/frontend/themes/basic/boxes/login/register.tpl) Move lines 220->229 inclusive and insert at line 210 From: To Note: If you make the above change it will mess things up if, in furure, you enable "suburb" field or the "country" field so you will need revisit this file to move the fields around again. Basically, look at the "<div class="col-right"> and <div class="col-right">" blocks that are wrapped in the conditional statements, these should alternate Have fun! Quote Link to comment Share on other sites More sharing options...
Ken Shea Posted June 9, 2023 Author Share Posted June 9, 2023 Hi Andy Got the file modified no trouble but this is not clicking - Default the toggle switch to yes- Hide the entire consent row so it is no longer visible- Enable the "create" button by default so the customer can click it ! sorry Quote Link to comment Share on other sites More sharing options...
Ken Shea Posted June 9, 2023 Author Share Posted June 9, 2023 Moving the county state up = success May look into that to move some of the text blocks to their normal place for US addresses. CHD-UK 1 Quote Link to comment Share on other sites More sharing options...
CHD-UK Posted June 9, 2023 Share Posted June 9, 2023 (edited) 35 minutes ago, Ken Shea said: Hi Andy Got the file modified no trouble but this is not clicking - Default the toggle switch to yes- Hide the entire consent row so it is no longer visible- Enable the "create" button by default so the customer can click it ! sorry Looks like it is clickable and should work... have you tried filling in the fields so that you are are not getting any validation errors popup errors (red boxes) ? Edited June 9, 2023 by CHD-UK Quote Link to comment Share on other sites More sharing options...
Ken Shea Posted June 9, 2023 Author Share Posted June 9, 2023 1 minute ago, CHD-UK said: Looks like it is clickable and should work... have you tried filling in the fields so that you are are not getting any validation errors popup errors (red boxes) ? Yes, fills in perfect, I didn't click create though, I'll do that. HAHA, said address already exists but believe it works fine. Quote Link to comment Share on other sites More sharing options...
Chadduck Posted December 19, 2023 Share Posted December 19, 2023 @CHD-UK This will also work for v4.13 with one minor exception On 6/9/2023 at 10:44 AM, CHD-UK said: On line 266, remove the 'disabled-area' class which is responsible for disabling the "create" button when first displayed. In v4.13 that has already been removed. BJ Quote Link to comment Share on other sites More sharing options...
Chadduck Posted December 20, 2023 Share Posted December 20, 2023 @CHD-UK The above works GREAT for the "REGISTER TO SAVE YOUR DETAILS" section. Do you know the edit for the "GUEST – SINGLE USE ACCOUNT" section to perform the same (see Graphic)? BJ Quote Link to comment Share on other sites More sharing options...
Chadduck Posted December 24, 2023 Share Posted December 24, 2023 The attached file contains Step by Step insturctions for Removing the Consent portion for not only the Primary Register page but also the Guest / Single Use Account Register page. It not only contains CHD-UKs instructions (shown above) for the Primary Registration page but also the instructions for the Guest / Single Use Account page. The document contains graphics to show what you start with and what you should have when completed. Graphics also indicate where to find the needed administration pages to remove specific phrasing that you may wish to also incorporate. Certainly hope it helps in assisting others in their endeavor to personalize the pages to their store and liking. Make certain that you have backups of the files identified in the file BEFORE YOU BEGIN to incorporate the changes contained within the file. BJ !Remove Consent.pdf Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.