Hi all,
i'm just tring to change my order status mails, wich works great so far....but now i'm stuck on a "if else" part and i dont find the solutin where the Problem is....
Here is the part of my code:
elseif (($this->orderDetails['details']['BT']->order_status_name != "Erhalten") && ($this->orderDetails['paymentName'] != "Paypal")) {echo $this->loadTemplate('header1');
echo $this->loadTemplate($this->recipient . '_1');
}
elseif (($this->recipient == 'shopper') && ($this->orderDetails['paymentName'] == "Paypal") && ($this->orderDetails['details']['BT']->order_status_name == "BestÃĪtigt / Zahlung erhalten")) {
echo $this->loadTemplate('header');
// Message for shopper or vendor
echo $this->loadTemplate($this->recipient);
// render shipto billto adresses
echo $this->loadTemplate('shopperaddresses');
// render price list
echo $this->loadTemplate('pricelist');
// more infos
echo $this->loadTemplate($this->recipient . '_more');
// end of mail
echo $this->loadTemplate('footer');
;}
So the Problem is, that always the first "elseif" statement is running, and not the second one.....has anyone a good idea?
Thx