kongking Posted May 29 Share Posted May 29 (edited) Hello everyone. How you doing? Please, is there a way to remove those fields I marked with "X" in red and the one for newsletter come always checked by default on subscribe new customer page? (also on the checkout part where those fields are being shown / required too...)? Maybe it'll be better not to change the core code directly, but creating a specific module for that... (in order not to be rewritten when new core of prestashop update versions...) Edited May 29 by kongking complement. (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted May 29 Share Posted May 29 This is another example of how PrestaShop is failing, newsletter? who does that? To remove the GDPR/Privacy checkbox and its text: 1. In Back Office, go to Modules > Module Manager, search for "GDPR" or "Customer privacy" and disable/uninstall the module. Or: In some PrestaShop versions, go to Improve > International > GDPR > Settings and disable the consent option. 2. To hide the checkbox on the frontend (without uninstalling), add this CSS in your custom CSS: ```css .form-group[data-link-action="gdpr"], .form-group.customer-privacy { display: none !important; } ``` To have the newsletter checkbox always checked by default: 1. Edit the template file `themes/your-theme/templates/customer/_partials/customer-form.tpl` 2. Find the newsletter checkbox input and add `checked="checked"` to it. 3. Save and clear cache. If you want the same on checkout, edit `themes/your-theme/templates/checkout/_partials/steps/personal-information.tpl` and add `checked="checked"` there too. Note: Template changes may be overwritten by updates. Use a child theme or override where possible. also go to admin-->shop parameters-->orders there you can disable terms and conditions, again who does that? that should not be on by default...ps stuck in the 80's...also good luck with that, we had to write a module to fix that....and if you load any of ps 'checkout' it will fail, even though disabled in bo...ps checkout won't proceed unless it's checked....why I still bother with ps is beyond me.... Link to comment Share on other sites More sharing options...
kongking Posted May 29 Author Share Posted May 29 Hello dude. Thank you very much. I'm doing that. The GDPR module worked well only for Terms and Conditions Checkbox... the others are still there: 1. "Receive offers from our partners" 2. Newsletters (it's ok, I'll let it there indeed) 3. Privacy...blablabla (last field)...It's still there... About creating a child template. Can you guide me how to proceed? Link to comment Share on other sites More sharing options...
El Patron Posted May 29 Share Posted May 29 https://devdocs.prestashop-project.org/8/themes/reference/template-inheritance/parent-child-feature/#how-to-create-a-child-theme Link to comment Share on other sites More sharing options...
kongking Posted May 29 Author Share Posted May 29 (edited) 4 hours ago, El Patron said: https://devdocs.prestashop-project.org/8/themes/reference/template-inheritance/parent-child-feature/#how-to-create-a-child-theme I really tried, but I couldn't understand. I'm old .NET programmer. Stoped with it all only on Frameork 4.0 of .NET. I really don't understand much of PHP... nor yml files... What I could read is to create another folder with this structure. . ├── config │ └── theme.yml └── preview.png but... where to create this folder? The guide does not specify. I've created it inside /themes root folder and named it as classic_child. Inside classic child I've copied those files and foldes (from the above tree shown before). I edited theme.yml file to follow what the guide (from the link you sent me) said to... Where do I find the part where you mentioned: "themes/your-theme/templates/customer/_partials/customer-form.tpl" and "themes/your-theme/templates/checkout/_partials/steps/personal-information.tpl" I´m very NOOB on prestashop and PHP. I'm sorry my ignorance. I need help. The checkbox does not exist on the code. look below: Edited May 29 by kongking put image attached (see edit history) Link to comment Share on other sites More sharing options...
yama Posted May 30 Share Posted May 30 (edited) Why do you install GDPR module, if you don't respect GDPR? Btw, websites who check newsletter by default are really annoying, right? Why do you want to do that? About child-theme, just create the folder in the folder /themes as a new theme. Edited May 30 by yama (see edit history) Link to comment Share on other sites More sharing options...
kongking Posted May 30 Author Share Posted May 30 9 hours ago, yama said: Why do you install GDPR module, if you don't respect GDPR? Btw, websites who check newsletter by default are really annoying, right? Why do you want to do that? About child-theme, just create the folder in the folder /themes as a new theme. It was not me that installed it. As it was a new fresh prestashop installation and this is my first time using it. I didn't know that there was a GDPR module installed. In Brazil we don't use it. Only for EUROPE, as far as I know.... Link to comment Share on other sites More sharing options...
kongking Posted May 30 Author Share Posted May 30 9 hours ago, yama said: Why do you install GDPR module, if you don't respect GDPR? Btw, websites who check newsletter by default are really annoying, right? Why do you want to do that? About child-theme, just create the folder in the folder /themes as a new theme. About checked newsletter it's a trick to force the contrary logic, if the USER DOES NOT WISH to receive them, they nedd to UNCHECK the box, the contrary he/she will be subscribed to newsletter. I don't think annoying. It's marketing strategy. Later, the user also has the option to opt-out from them... About child-theme, I followed all the guide for creating a child theme. It appears on theme list on the panel, but when I click to USE THIS THEME, it never loads, it backs to classic... But I guess I solved this problem. I've just bought this theme pack here: Buy one get all - Build your store too easy! Of course I'll need some changes on this theme... so I'll need to do changes. Maybe I can pay for someone experienced that can do it for me by demand. I pay... Thank you all. Link to comment Share on other sites More sharing options...
yama Posted May 30 Share Posted May 30 7 hours ago, kongking said: I didn't know that there was a GDPR module installed. In Brazil we don't use it. Only for EUROPE, as far as I know.... If you sell only in Brazil, it will be ok (maybe), please check LGDP for more information. If you sell to European citizen, you have to respect GDPR even if you are in Brazil. 7 hours ago, kongking said: About checked newsletter it's a trick to force the contrary logic That's exactly the term, "trick". Yes, you can do that (please double check law in Brazil before, to be sure). Is it a good practice to trick customer from creation of account? Link to comment Share on other sites More sharing options...
El Patron Posted May 30 Share Posted May 30 from a US perspective, if they create account then you by default have approval to communicate. checkout should be checkout....nothing more... for gdpr, that is a EU thing, but it's forced down US, worlds throat, in the US we like milk with our cookies, we find it 'odd' 'off putting'....however California has something similar but we seldom experience it. Years ago ps closed their Miami office and do 'nada' to promote ps in US, there used to be a lot of US ps users...we even put up with addons in euros... for cookie, it should only be shown to EU countries....especially if you want to sell in us, we just find it annoying and wonder where in the world the website originates fromI I have a module that 'hides' toc, because disabling in admin often has no affect. happy weekend, @yama this written without AI. 1 Link to comment Share on other sites More sharing options...
yama Posted May 31 Share Posted May 31 It's true, GDPR is too strict and irrelevant for worldwide purpose. Cookie's rules of GDPR for example is so annoying. But rules became strict because some website abused. GDPR is a bit similar to CCPA in California, I guess. About marketing email, there is some abuse too: For example: "don't you want record to our marketing offer?" □ □ (Of course, we don't tell you that you will receive 10 messages/hour from all our holdings companies and partnership. Good Luck to optout ) But it's not related with Prestashop. PS just give the option to follow a minimum the GDPR, they don't force to. In my opinion, it will be better if the module of GDPR become Globale instead than "Europe thinking only" with some option to activate or not some feature. Thanks to this, PS will be more "worldwide-side" (like Prestashop Corp want to be). -------- I have nothing against AI, just there is a difference between "Work with AI" and "Work for AI". Link to comment Share on other sites More sharing options...
kongking Posted May 31 Author Share Posted May 31 17 hours ago, yama said: If you sell only in Brazil, it will be ok (maybe), please check LGDP for more information. If you sell to European citizen, you have to respect GDPR even if you are in Brazil. Yes. I'll sell only in Brazil. And I saw LGDP, it's not necessary that CHECKBOX. but other things. (don't need this module, but others...). 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