Nicolas,
You comments are cryptic. I don't want to be critical here as I have 'very high' respect and admiration for the HikaShop team but please remember that most of the people who come to the forums are either not developers themselves, are beginner or intermediate level developers or people, like myself, who are advanced developers (yep, been doing it for 40+ years).
Naturally, someone who is not a developer needs a higher level of guidance but so too does beginner to advanced developers. Why? Because they didn't code HikaShop. You can give an instruction like this but, as a developer, I can't just go half-cocked (American term for jumping off a cliff) and hope that what I do will work. It is important to me that I do more good than harm. I may 'think' I understand exactly what to do but without knowing what some underlying code may be doing to the changes I make, I could cause more harm because I do not know 'fully' the underlying structure / coding and, to be honest, I really don't have time to 'reverse engineer' HikaShop. As much as I hate to say this but give feedback like you're speaking to a dummy, call it "HikaShop for Dummies".
So you say "you can replace the code with your custom PHP.". Are you talking about the PHP that is in the 'Text Version'? If so, why not just simply say "you can replace the {TXT:ORDER_END_MESSAGE} with the entire contents in your edited 'Text Version' ". I am assuming that is what you are saying. If not, enlighten me.
As far as making the changes in the Preload version, If I decided to change that version, would I replace this code:
'ORDER_BEGIN_MESSAGE' => JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_BEGIN', HIKASHOP_LIVE),
'ORDER_END_MESSAGE' => JText::sprintf('THANK_YOU_FOR_YOUR_ORDER', HIKASHOP_LIVE) . '<br/>' . JText::sprintf('BEST_REGARDS_CUSTOMER',$mail->from_name),
With this code to accomplish the same thing:
'ORDER_BEGIN_MESSAGE' => JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_BEGIN', HIKASHOP_LIVE),
'ORDER_END_MESSAGE' => JText::sprintf('THANK_YOU_FOR_YOUR_ORDER', HIKASHOP_LIVE) . '<br/>' .
foreach($data->cart->products as $product){
if($product->product_id==1){
JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE)
}
if($product->product_id==2){
JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE)
}
if($product->product_id==3){
JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE)
}
if($product->product_id==4){
JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE)
}
}
. '<br/>' . JText::sprintf('BEST_REGARDS_CUSTOMER',$mail->from_name),
If I change either the "HTML version" or the "Preload version", should I remove the changes that I made in the "Text version"?
Again, I appreciate your efforts.