Jump to content
bnadauld

Remove customer invoice address information - Prestashop 1.6

Recommended Posts

My first question post  - hi all! - Hope you can help

 

I'm trying to remove all references to customer invoice address in Prestashop 1.6. I'm just not interested in this info and my customers are getting really confused as my template automatically defaults the invoice address to the delivery address - which in almost all cases is never needed as my orders are coming from outside the country for delivery inside the Philippines.

 

I followed this guide: https://www.prestashop.com/forums/topic/128541-how-to-remove-invoice-address/

which works really well apart from the invoice address is still showing in their cart summary (see uploaded image).


Does anyone know where/what i (additionally) need to comment out to remove this from the cart summary?

 

 

As a side note:

To remove the customer invoice address info displayed on the customer confirmation email i have just hacked the html email (order_conf.html) file. By turning the font/box/details of the displayed invoice address section to a white font i have made this section invisible.

Does anyone know if this is the way to go or is there is a better way to go about solving the problem?

 

Hope you can help - really appreciate it as i'm loosing quite a few sales due to confusion.

Thanks

 

Ben

invoice still showing.png

Edited by bnadauld (see edit history)

Share this post


Link to post
Share on other sites

To remove that you need to comment out/remove the box from addresses.tpl, theme folder.
You need to know some html of course, to avoid breaking stuff

Share this post


Link to post
Share on other sites

ah ok. would i have to write html to remove it. or just find parts of the addresses.tpl and comment out?

It was my understanding that the .tpl files can contain all sorts of 'coding language' php, smarty etc? Maybe the addresses.tpl is all html?

Thanks for the the reply

Edited by bnadauld (see edit history)

Share this post


Link to post
Share on other sites

Smarty's template are html plus variables and a few conditionals, so it's a mixed languages.
Yes, you just have to comment out the part you do not need :)

Share this post


Link to post
Share on other sites

Oh it's not that important, you can just use {* here the part to be commented out *}
To find the code you want to remove, right click on your page, inspect source (with chrome) and see how the code looks like.
If you have a code editor such as sublime text 2, it will have syntax highlighting, so you can easily spot the opening and closing of the block

 

Share this post


Link to post
Share on other sites

Really appreciate your help - thank you. I’ve just opened my page an inspected my code. Im using Developer tools on Firefox Quantum Dev edition. I can see how my page is displayed in the code (and how it links to my webpage) but I can’t see how this relates to the addresses.tpl file (opened in Notepad++ (set to php language)) and how i work backwards to comment stuff out.

It is my understanding (prob completely wrong) that the php/tpl/etc files create the html page(s) of my website (displayed here in my dev tool window).

Again - massive thanks

Untitled-1-01.jpg

Share this post


Link to post
Share on other sites

Well basically you just locate that div in the file and comment those out. The template is loaded  as sub-template from another, which is returned by a controller. It's a MVC system, I am sure you can find plenty of info on Google, basically having a class (model) to relate to the database, and a controller (same name in prestashop) do display a view (the tpl file).

So if you change the .tpl, the generated html also changes.
Smarty is php based, it parses tpl files and replaces those variables with other php code, that then generates the final html

Share this post


Link to post
Share on other sites

I know it is old thread but still is indexed at first places by Google. I had the same question and found maybe a way simpler way. How about just hide that block from the checkout using CSS display:none ? By default the Invoice address is marked as the same as shipping. So if you just hide it everything is still working fine.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More