Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

How to replace original virtuemart invoice
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: How to replace original virtuemart invoice

How to replace original virtuemart invoice 10 years, 2 months ago #42729

I need som help to realisze that. Maybe the code in the oders.php have changed.

FAQ says:
// Send the email
if (shopFunctionsF::renderMail('invoice', $order['details']['BT']->email, $vars, null,$vars['doVendor'])) {
...

with

// Send the email
$res = shopFunctionsF::renderMail('invoice', $order['details']['BT']->email, $vars, null,$vars['doVendor']);
if ($res===null) //edited: ARTIO: when sent to customer disabled, dont display message.
return true;

if ($res) {

code in the orders.php

// Send the email
$res = shopFunctionsF::renderMail('invoice', $order['details']['BT']->email, $vars, null,$vars['doVendor'],$this->useDefaultEmailOrderStatus);

//We need this, to prevent that a false alert is thrown.
if ($res and $res!=-1) {
$string = 'COM_VIRTUEMART_NOTIFY_CUSTOMER_SEND_MSG';
}
else if (!$res) {
$string = 'COM_VIRTUEMART_NOTIFY_CUSTOMER_ERR_SEND';
}
if($res!=-1){
vmInfo( JText::_($string,false).' '.$order['details']['BT']->first_name.' '.$order['details']['BT']->last_name. ', '.$order['details']['BT']->email);
}

return true;
}
The topic has been locked.

Re: How to replace original virtuemart invoice 10 years, 2 months ago #42748

  • vebi
  • OFFLINE
  • Posts: 444
Hello,

sorry, I do not understand what exactly do you need? Could you be more specific how can we help you?
ARTIO Support Team
The topic has been locked.

Re: How to replace original virtuemart invoice 10 years, 2 months ago #42806

In the FAQ's there ist the description how to replace the orignial virtuemart invoice
www.artio.net/de/faqs/vm-invoice/how-to-...e-mails-and-invoices

Step one ok but i have a problem with step 2:

Step form your FAQ:
----------- START -------------------
"Open file JOOMLA_ROOT /administrator/components/com_virtuemart/models/orders.php
Find line 1290 (can differ depends on your version of VM)

And replace

// Send the email
if (shopFunctionsF::renderMail('invoice', $order['details']['BT']->email, $vars, null,$vars['doVendor'])) {
...

with

// Send the email
$res = shopFunctionsF::renderMail('invoice', $order['details']['BT']->email, $vars, null,$vars['doVendor']);
if ($res===null) //edited: ARTIO: when sent to customer disabled, dont display message.
return true;

if ($res) {

-------------------- END -------------
but in the orignial orders.phr from virtuemart there is no line
if (shopFunctionsF::renderMail('invoice', $order['details']['BT']->email, $vars, null,$vars['doVendor'])) {

the only line i found is
$res = shopFunctionsF::renderMail('invoice', $order['details']['BT']->email, $vars, null,$vars['doVendor'],$this->useDefaultEmailOrderStatus);
Last Edit: 10 years, 2 months ago by Perle4you.at.
The topic has been locked.

Re: How to replace original virtuemart invoice 10 years, 2 months ago #42807

Code orders.pho (orginal virtuemart)
The topic has been locked.

Re: How to replace original virtuemart invoice 10 years, 2 months ago #42816

  • jitr
  • OFFLINE
  • ARTIO Support
  • Posts: 1432
Hello, place after:

$res = shopFunctionsF::renderMail('invoice', $order['details']['BT']->email, $vars, null,$vars['doVendor'],$this->useDefaultEmailOrderStatus);


code:

if ($res===null) //edited: ARTIO: when sent to customer disabled, dont display message.
return true;
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
User Login Empty