Jump to content

Personal data information when registring (SOLVED)


hatc11

Recommended Posts

Posted (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 by El Patron (see edit history)
  • Thanks 1
Link to comment
Share on other sites

  • hatc11 changed the title to Personal data information when registring (SOLVED)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...