- Posts: 14
- Thank you received: 0
Edit Invoice email template to user
-
ericong.kc
Inactive member - Topic Author
- New Member
Less
More
11 years 9 months ago #27740
by ericong.kc
Edit Invoice email template to user was created 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
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
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 9 months ago #27774
by ivan.milic
Replied by ivan.milic on topic Edit Invoice email template to user
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 ""
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.
-
ericong.kc
Inactive member - Topic Author
- New Member
Less
More
- Posts: 14
- Thank you received: 0
11 years 9 months ago #27798
by ericong.kc
Replied by ericong.kc on topic Edit Invoice email template to user
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.
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 9 months ago #27806
by ivan.milic
Replied by ivan.milic on topic Edit Invoice email template to user
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;
?>
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
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 ...
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
Less
More
- Posts: 6753
- Thank you received: 718
11 years 6 months ago #30884
by milos
Replied by milos on topic Edit Invoice email template to user
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
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