orders and confirmation order template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
janvl
Power Poster
Power Poster
Posts: 985
Joined: Wed Aug 13, 2008 10:57 am

orders and confirmation order template

Post 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
User avatar
andriesinfoserv
Forum Members
Forum Members
Posts: 78
Joined: Wed Aug 31, 2011 6:37 am

Re: orders and confirmation order template

Post by andriesinfoserv »

click on the "x" out to the right and it will become the default template and will be used.
janvl
Power Poster
Power Poster
Posts: 985
Joined: Wed Aug 13, 2008 10:57 am

Re: orders and confirmation order template

Post 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
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: orders and confirmation order template

Post 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
janvl
Power Poster
Power Poster
Posts: 985
Joined: Wed Aug 13, 2008 10:57 am

Re: orders and confirmation order template

Post 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
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: orders and confirmation order template

Post 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.
Post Reply

Return to “Modules/Add-Ons”