Edit Invoice email template to user

More
11 years 9 months ago #27740 by ericong.kc
Hi, I need help to Hide the "Title" (Eg, Mr, Ms) from the invoice email sent to buyer
If you take a look at my screenshot you will know why i need to hide that value

I just could not find the file to edit. i managed to find the file to hide the buyer's "Title" from this file-> components/com-virtuemart/views/invoice/tmpl/mail_html_header.php

But i need to hide the title in the vendors information at top right

thanks
Attachments:

Please Log in to join the conversation.

More
11 years 9 months ago #27774 by ivan.milic
You can override that file:

components/com-virtuemart/views/invoice/tmpl/mail_html_header.php

by copying it to:

templates\hot_drug_store\html\com_virtuemart\invoice\mail_html_header.php


instead of $this->orderDetails->title put just empty string ""

Please Log in to join the conversation.

More
11 years 9 months ago #27798 by ericong.kc
Hi Ivan. When I replace the $this->orderDetails->title, it hides the Customer's title but does not hide the vendor's title.

I think I have to do some changes in the <php echo $this->vendoraddress; ?>
Which i dont know where that is link to.

Please Log in to join the conversation.

More
11 years 9 months ago #27806 by ivan.milic
I'am not sure too , but this will kill it good:



instead of :

<php echo $this->vendoraddress; ?>

put:

<php
$va_out = $this->vendoraddress;
$va_out = str_ireplace('Mr','',$va_out);
$va_out = str_ireplace('Mrs','',$va_out);
$va_out = str_ireplace('Miss','',$va_out);
echo $va_out;
?>

Please Log in to join the conversation.

  • mkonline
  • Visitor
  • Visitor
11 years 6 months ago #30879 by mkonline
Replied by mkonline on topic Edit Invoice email template to user
Hello,
On this same question:

-When you click on orders, and press the printer, such as an invoice is generated or rather an order.

I have the same question: how remove Sr because it is a company that sells?

How I can do to get on the same sheet display the invoice number?

If I give sight INVOICE, which is icon beneath the impresara, I generated a PDF and I have several questions:

-The legal text bottom cut out.
-Do not get the name of the store or fiscal data or logo. How could I put it?

Thank you,

PS: excuse my English disastrous, I'm Spanish ...

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
11 years 6 months ago #30884 by milos
Hello,

Your question are related to modification of file /components/com_virtuemart/views/pdf/view.pdf.php
Please copy this file to folder /templates/hot_drug_store/html/com_virtuemart/pdf (create that folder).
Then make the modifications on the copied file.
For hacking/changing of default VirtueMart files please consult official VirtueMart forum.

Thanks
Milos

Please Log in to join the conversation.

Time to create page: 0.151 seconds
Powered by Kunena Forum