Page 1 of 1

orders and confirmation order template

Posted: Sun Apr 29, 2012 4:48 pm
by janvl
Hi,

I can define different "confirm order templates" but where do I tell the system to USE a different template?

I did search the help and the forum but I cannot find how to tell module "order management" to use a different "confirmation order template".

edit - the same with "Invoice Templates"

Thanks in advance,
Jan

Re: orders and confirmation order template

Posted: Sun May 27, 2012 1:07 pm
by andriesinfoserv
click on the "x" out to the right and it will become the default template and will be used.

Re: orders and confirmation order template

Posted: Sun May 27, 2012 3:32 pm
by janvl
That I know.

I wanted to select a template with smarty the way this is usually done like:
{orders lang="nl_NL" confirmationtemplate="the_one_or_the_other_template"}
now this is not possible, according to the developer being mr. R. Campbell, I quote "it is like it is".
This makes it al lot more difficult to use in a multi-language situation, therefore I consider these modules unusable for professional use.

Kind regards,
Jan

Re: orders and confirmation order template

Posted: Sat Aug 23, 2014 11:32 am
by frankmanl
janvl wrote: I can define different "confirm order templates" but where do I tell the system to USE a different template?
the same with "Invoice Templates"
Is there already a solution for this?
Or would it be a work around to I install Orders twice? Once as Orders, once as Orders-2 being the module to use for the second language?

Frank

Re: orders and confirmation order template

Posted: Sat Aug 23, 2014 12:33 pm
by janvl
Hi

I solved it by using smarty to check the language and made an if-then-else construct to present the right language.

That did work.

Since we have new laws for webshops in the EU from 13-06-2014 I refrain from using this solution.
I now use Oxid-shop that is build with smarty too, it is much larger but the better choice for professional shops.

Kind regards
Jan

Re: orders and confirmation order template

Posted: Sun Aug 24, 2014 12:07 pm
by frankmanl
Thanks Jan, but I can't get that working.
Confirm order template retreives the value of field product_name in table cms_module_products.

Code: Select all

<td>{$item->get_description()}</td>
For my dutch page that is alright.
For my english page I need the value of a custom field in table cms_module_products_fielddefs.
I don't see how I can manage that without changing the code of the module - something I don't want to do.
I'm now thinking of using a bi-lingual value for the product name.
Unless there's another (and better) way to do this neatly.