Different Invoice For Different Countries

Hello Community,



is there an possibility to create an individual automatic Invoice, dependening from where the customer comes from?



Background: If we sell our Products outside of Europe, the text of the invoice must be different then within Europe.



:?













Greetings Mike

Dear Mike,



Code modification is required here!



Could you please write us to manager@alt-team.com and our developer will tell you all details.



Best regards, Alt-team.

[quote name='MikeN' timestamp='1418379688' post='199577']

Hello Community,



is there an possibility to create an individual automatic Invoice, dependening from where the customer comes from?



Background: If we sell our Products outside of Europe, the text of the invoice must be different then within Europe.

[/quote]



The invoice templates are located here:



design\themes\THEME\mail\templates\orders\invoice.tpl

design\backend\mail\templates\orders\invoice.tpl



You can create copy of them and call them invoice_eu.tpl (for example)



Then you should edit the following files:



design\themes\THEME\mail\templates\orders\print_invoice.tpl

design\themes\THEME\mail\templates\orders\order_notification.tpl

[b]design\backend\mail\templates\orders[/b]print_invoice.tpl

[b]design\backend\mail\templates\orders[/b]order_notification.tpl



And replace:



{include file="orders/invoice.tpl"}




with



{if $order_info.s_country == "SZ" || $order_info.s_country == "CH"}
{include file="orders/invoice_eu.tpl"}
{else}
{include file="orders/invoice.tpl"}
{/if}




Just complete the list of EU country codes yourself



Hope that helps.

Thx this helps alot :grin:







I just wonder, could i also use my Locations for the query?

Couldnt find the Variable for it in the Database ( location_id ?? )

At the moment i have Germany, EU, and Worldwide.





this would be more flexible in the Future.



:grin:

[quote name=‘MikeN’ timestamp=‘1418391735’ post=‘199609’]

Thx this helps alot :grin:







I just wonder, could i also use my Locations for the query?

Couldnt find the Variable for it in the Database ( location_id ?? )

At the moment i have Germany, EU, and Worldwide.





this would be more flexible in the Future.



:grin:

[/quote]



I am afraid, used location is not stored in the database. Additional code modifications are required to change this behavior.

I found the Table cscart_destinations i have 3 different destination_id's

Germany destination_id=1

EU destination_id=2

Worldwide destination_id=3



Do you think this could work when i evaluate this query?

[quote name='MikeN' timestamp='1418401853' post='199629']

I found the Table cscart_destinations i have 3 different destination_id's

Germany destination_id=1

EU destination_id=2

Worldwide destination_id=3



Do you think this could work when i evaluate this query?

[/quote]



As I said in my previous message, order does not store information about used location. We can create a modification which will store the destination_id for each order. If you are interested in it, please contact me using the link from my signature.

One of the areas that cs-cart needs to work on is “localizations”. Right now, localizations only affect language, currency and weights.

What needs to happen is that data and descriptions also need to “localized” beyond just language. I.e. banners and images may need to be different for different localizations (I.e. Ireland versus UK where both are English).



This also applies to everywhere languages are used. I.e. product/category descriptions, names of all kinds of things, etc.



While many times the language may be sufficient, there are many cases where language is too broad a classification to meet a need.



A classic example is providing local phone numbers for various “localizations”. I.e. UK has 123-4567, France has 8989-0098 and USA has 800-453-5644. To properly deal with this on the contact-us page for instance or in the page footer, the “data” needs to be “localized” of which 'language' is just one aspect of the 'localization'.



Profile fields are another area where customization is required to eliminate or change the visibility of fields based on localization. I.e. there are no postal codes or states in Ireland, US requires both but the only selection difference is based on language (both are English so you're screwed).



Sorry for the long winded response, but I've had to describe the issue so many times for clients trying to use localizations. Currently they are only useful for setting language/currency and as a shortcut for 'locations'.

[quote name=‘eComLabs’ timestamp=‘1418388029’ post=‘199600’] The invoice templates are located here: design\themes\THEME\mail\templates\orders\invoice.tpl design\backend\mail\templates\orders\invoice.tpl You can create copy of them and call them invoice_eu.tpl (for example) Then you should edit the following files: design\themes\THEME\mail\templates\orders\print_invoice.tpl design\themes\THEME\mail\templates\orders\order_notification.tpl [b]design\backend\mail\templates\orders[/b]print_invoice.tpl [b]design\backend\mail\templates\orders[/b]order_notification.tpl And replace: php {include file="orders/invoice.tpl"} with ```php
{if $order_info.s_country == “SZ” || $order_info.s_country == “CH”} {include file=“orders/invoice_eu.tpl”} {else} {include file=“orders/invoice.tpl”} {/if}

<br />
THX alot @ all, i finally used this way works perfect <img src="upload://iKNGSw3qcRIEmXySa8gItY6Gczg.gif" class="bbc_emoticon" alt=":grin:">

You are welcome, MikeN!

Thansk a lot :grin: