Remove shipping address block from online invoice, email invoice and PDF invoice

Started by AzMandius, February 28, 2019, 01:12:10 AM

Previous topic - Next topic

AzMandius

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
AzBlog.me | Mentally healthy content & lnks.

Ventsi Genchev

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.
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English

AzMandius

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!
AzBlog.me | Mentally healthy content & lnks.

AzMandius

Sorry for bumping the thread.

Still looking for a way to remove shipping address block.
AzBlog.me | Mentally healthy content & lnks.

AH

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)

Regards
A

Joomla 4.4.5
php 8.1

AzMandius

Unfortunately removing that peace of code did not help. The portion of text is still present in all 3 up-mentioned areas.
AzBlog.me | Mentally healthy content & lnks.

Jörgen

Then you are using overrides.
Templates/your-template/...
Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

AH

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

Regards
A

Joomla 4.4.5
php 8.1

AzMandius

In my case there is BT everywhere, no ST, so i assume a should look for BT variable?
Thank you!
AzBlog.me | Mentally healthy content & lnks.

AzMandius

Thank you for help, i have managed to find that content and remove it from all needed places.
Solved.
AzBlog.me | Mentally healthy content & lnks.

AH

Regards
A

Joomla 4.4.5
php 8.1