VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: AzMandius on February 28, 2019, 01:12:10 AM

Title: Remove shipping address block from online invoice, email invoice and PDF invoice
Post by: AzMandius on February 28, 2019, 01:12:10 AM
Hello,
I would like to remove the shipping address block from online invoice, email invoice and PDF invoice. In my shop the the customer information and shipping information is combined in one block, an while the shipping address is already displayed in customer block, it is confusing to see it displayed again in shipping block, this creates confusion, it is displayed twice, so basically this is informational garbage. Please see attached screenshots.

Thank you a lot!

Joomla 3.6xx
VirtueMart 3xx
Title: Re: Remove shipping address block from online invoice, email invoice and PDF invoice
Post by: Ventsi Genchev on February 28, 2019, 07:48:08 AM
VirtueMart 3xx is not very clear.
In the latest version, if no additional address is selected, there is no duplication.
See if you have overwritten files. Pay attention to the original files.
Title: Re: Remove shipping address block from online invoice, email invoice and PDF invoice
Post by: AzMandius on February 28, 2019, 17:56:47 PM
Thanks for reply.
My VM version is 3.0.16, i would still prefer to execute the removal of that block. Any ideas where should i look for it? Thanks!
Title: Re: Remove shipping address block from online invoice, email invoice and PDF invoice
Post by: AzMandius on April 13, 2019, 22:19:26 PM
Sorry for bumping the thread.

Still looking for a way to remove shipping address block.
Title: Re: Remove shipping address block from online invoice, email invoice and PDF invoice
Post by: AH on April 15, 2019, 10:56:30 AM
Create and override to this view

components\com_virtuemart\views\invoice\tmpl\invoice_order.php

Find where this lable is in the file (should be at the bottom)


<?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_SHIP_TO_LBL'?></strong><br/>




Then decide what test you are going to implement to handle when the details are the same as Bill To

Latest versions of VM handle this already (3.4.x onwards)

Title: Re: Remove shipping address block from online invoice, email invoice and PDF invoice
Post by: AzMandius on April 15, 2019, 23:23:06 PM
Unfortunately removing that peace of code did not help. The portion of text is still present in all 3 up-mentioned areas.
Title: Re: Remove shipping address block from online invoice, email invoice and PDF invoice
Post by: Jörgen on April 16, 2019, 06:08:38 AM
Then you are using overrides.
Templates/your-template/...
Jörgen @ Kreativ Fotografi
Title: Re: Remove shipping address block from online invoice, email invoice and PDF invoice
Post by: AH on April 16, 2019, 10:49:44 AM
I did not give you the exact solution - just the name of the file you needed to override and the area you should be looking at for the display of the ST details

That is just the heading label for the shipping

<?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_SHIP_TO_LBL'?></strong><br/>

I cannot give you the solution for your outdated version - because this is already managed in VM3.4.x

Just find in this file where it looks to loop through the ST address fields and comment that section out

something like

$this->orderDetails['details']  with ST somewhere

Title: Re: Remove shipping address block from online invoice, email invoice and PDF invoice
Post by: AzMandius on April 16, 2019, 22:05:44 PM
In my case there is BT everywhere, no ST, so i assume a should look for BT variable?
Thank you!
Title: Re: Remove shipping address block from online invoice, email invoice and PDF invoice
Post by: AzMandius on April 16, 2019, 22:55:54 PM
Thank you for help, i have managed to find that content and remove it from all needed places.
Solved.
Title: Re: Remove shipping address block from online invoice, email invoice and PDF invoice
Post by: AH on April 17, 2019, 10:03:54 AM
Thanks for the update