hatc11 Posted May 26 Share Posted May 26 (edited) Hi, Were do I change this section ? The text need to under the input fields and not in on line. Thanks Edited May 28 by hatc11 (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted May 26 Share Posted May 26 In GDPR module Link to comment Share on other sites More sharing options...
hatc11 Posted May 28 Author Share Posted May 28 @Prestashop Addict I have now searched in GDPR but I can not find it anywhere. Can you share the name of the file to edit ? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted May 28 Share Posted May 28 In module settings tab content Link to comment Share on other sites More sharing options...
El Patron Posted May 28 Share Posted May 28 (edited) Customer Privacy Module Module Name: Customer Privacy (ps_customerprivacy) Back Office Path: Modules > Module Manager > Customer Privacy > Configure What you can do: Here, you can change the text of the privacy message. However, this does not affect the position/formatting of the text (i.e., if it wraps to the next line or appears under the checkbox). Template File (For Layout & Placement) The position and layout of this consent box are controlled in your theme template file. /themes/YOUR_THEME/templates/customer/_partials/customer-form.tpl For PrestaShop 8, the structure may be slightly different, but it's generally inside a customer or auth folder. How to Move Customer Privacy Text Under Checkbox in PrestaShop Registration Form If your customer privacy (GDPR) consent text is showing on the same line as the checkbox and you want it to appear under the checkbox, follow these steps: Step 1: Edit the Theme Template File Go to your site's files using FTP or your hosting file manager. Open the file (the path may vary depending on your theme): /themes/YOUR_THEME/templates/customer/_partials/customer-form.tpl or sometimes: /themes/YOUR_THEME/templates/_partials/customer-form.tpl Find the section related to customer privacy consent. It may look like this: label input type="checkbox" ... [privacy message or hook] /label Change the layout so the privacy message appears under the checkbox label. For example, you can change it to: div class="form-group" span class="custom-checkbox" input type="checkbox" name="customer_privacy" id="customer_privacy" value="1" required label for="customer_privacy" [the privacy label text here] /label /span div class="privacy-message" [the privacy message or hook here] /div /div Step 2: (Optional) Add Some CSS for Better Appearance Add this to your theme’s custom.css or in the PrestaShop back office at Design > Theme & Logo > Advanced Customization > Custom CSS: .privacy-message { display: block; margin-top: 5px; font-style: italic; } Step 3: Save & Clear Cache Save the file. In your PrestaShop back office, go to Advanced Parameters > Performance and click Clear Cache. Step 4: Edit the Consent Text (if needed) Edit the text shown in the privacy box in Modules > Module Manager > Customer Privacy > Configure. Result: The privacy/GDPR message will now show under the checkbox on the registration page and will wrap correctly instead of being shown on a single line. If your theme uses a different file, the location might vary slightly, but the same logic applies! Edited May 28 by El Patron (see edit history) 1 Link to comment Share on other sites More sharing options...
hatc11 Posted May 28 Author Share Posted May 28 @El Patron This is perfect, thank you SO much, This will do the trick i´m sure. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now