Jump to content

[SOLVED]Module psgdpr - how to hide some fields in PDF export


kittysgifts

Recommended Posts

I installed version 8.1 to see if I can update a store that I have in an older version, still without GDPR. Right now, I'm facing an issue because I would like to hide some fields in the PDF generated by the 'psgdpr' module, and I'm not able to (they are not used in Portugal, customers don't see them on registration form).

Capturar.JPG.a03224c1e1273dd1e8a4173ab676f024.JPG

I've figured out that what generates the PDF is in the following path:

'modules/psgdpr/views/templates/front/pdf/sectionsgeneral_informations.tpl'

imagem.png.3b5f9d914983c3c80165f0f39d549e03.png

Can you help me figure it out where to find $customerData and remove the 'CNPJ/Ape...' fields from the PDF? They are not used in Portugal!

I don't know much about PrestaShop's language/architecture; I only understand a bit of HTML and CSS. However, since I'm a programmer in another software, I try to solve everything myself, as it is a very small store, and I handle everything! Thank you.

Edited by kittysgifts
Solved (see edit history)
Link to comment
Share on other sites

  • 1 month later...

"I managed to find the solution on my own. The file is as follows:

 

imagem.thumb.png.461ba8a7bd407b5a2dcbae39e159dd75.png

 

NOTE: In the module, the private note for the customer is being displayed (the "personal note"), which is a note that should not be shown to them!!!!

Link to comment
Share on other sites

  • kittysgifts changed the title to [SOLVED]Module psgdpr - how to hide some fields in PDF export

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...