News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Remove shiping adress from e-mail and pdf

Started by andrai2, February 09, 2017, 08:45:32 AM

Previous topic - Next topic

andrai2

Hello!

My idea was to remove shipping adress from invoice e-mail and invoice pdf as it is not necesery for my shop

So waht i did i modify these two files

html/com_virtuemart/invoice/mail_html_shopperaddresses.php - removes shipment adres from e-mail
so i remove these lines
<th width="50%" >
    <?php echo vmText::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'); ?>
</th>

and
<td valign="top" width="50%">
    <?php
    foreach (
$this->shipmentfields['fields'] as $field) {

if (!empty($field['value'])) {
    ?>
<!-- span class="titles"><?php echo $field['title'?></span -->
    <span class="values vm2<?php echo '-' $field['name'?>" ><?php echo $field['value'?></span>
    <?php if ($field['name'] != 'title' and $field['name'] != 'first_name' and $field['name'] != 'middle_name' and $field['name'] != 'zip') { ?>
        <br class="clear" />
<?php
    }
}
    }

    ?>

</td>

html/com_virtuemart/invoice/invoice_order.php to remove from pdf i remove these lines
<td valign="top" ><strong>
    <?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_SHIP_TO_LBL'?></strong><br/>
    <table border="0"><?php
    foreach (
$this->shipmentfields['fields'] as $field) {
if (!empty($field['value'])) {
    echo '<tr><td class="key">' $field['title'] . '</td>'
    . '<td>' $field['value'] . '</td></tr>';
}
    }
    ?>
</table>
</td>


Just wanted to ask if i dont mess up something in global, am i right.....? in e-mail and pdf invoice looks fine without shipment adreess...

using joomla 3.5
virtumeta 3.18

Studio 42

Why not, i think that you should have an option for "shipping" in case you sale only online product or for some other reason.