RudyS Posted June 21, 2011 Share Posted June 21, 2011 How can I adjust te order template so that discounts, gift wrap en shippingscost are only showed in the order confrimation if the amount is >0. Otherwise it should not be stated.It is frustrating for a customer when the discount line is stating a zero.....Thx Link to comment Share on other sites More sharing options...
bellini13 Posted June 21, 2011 Share Posted June 21, 2011 might need to implement different mail templates, and then change the code to choose the correct template based on what dollar amounts Link to comment Share on other sites More sharing options...
RudyS Posted June 22, 2011 Author Share Posted June 22, 2011 That is a good idea. What is the code (if discount is zero, I will deleted gift wrap and leave shipping costs as is) to realise this? Link to comment Share on other sites More sharing options...
bellini13 Posted June 22, 2011 Share Posted June 22, 2011 the code is located in PaymentModule.php, validateOrder function. if (Validate::isEmail($customer->email)) Mail::Send((int)($order->id_lang), 'order_conf', Mail::l('Order confirmation'), $data, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, $fileAttachment); Link to comment Share on other sites More sharing options...
RudyS Posted June 22, 2011 Author Share Posted June 22, 2011 I am using the ogone payment module.. I can't find the stated code Link to comment Share on other sites More sharing options...
bellini13 Posted June 22, 2011 Share Posted June 22, 2011 All payment modules extend the PaymentModule.php class. You just need to review the ogone module to see if they overrode the validateOrder function. If they did not, then you find the PaymentModule.php in the /classes folder. Link to comment Share on other sites More sharing options...
RudyS Posted June 22, 2011 Author Share Posted June 22, 2011 ok found it, thx. How can I add if (total_discounts > 0; use order_config; use order2_config)? Link to comment Share on other sites More sharing options...
bellini13 Posted June 22, 2011 Share Posted June 22, 2011 If you would like to hire me to perform the changes for you, that would be my pleasure, you can contact me on PM for those details.Otherwise I am trying to provide you with guidance on how to accomplish this your self, assuming you have some programing background. Link to comment Share on other sites More sharing options...
RudyS Posted June 22, 2011 Author Share Posted June 22, 2011 no programming experience, you can make me a quote, but it should be quite simple, no? Link to comment Share on other sites More sharing options...
bellini13 Posted June 22, 2011 Share Posted June 22, 2011 i have sent you a PM Link to comment Share on other sites More sharing options...
Recommended Posts