first commit
This commit is contained in:
16
admin/templates/massprocess/cp.tpl
Normal file
16
admin/templates/massprocess/cp.tpl
Normal file
@@ -0,0 +1,16 @@
|
||||
{foreach $orders as $order}
|
||||
{strip}"{$order.id}";
|
||||
"{$order.to_pay|round:2}";
|
||||
"50000";
|
||||
"{if strpos(mb_strtolower($order.delivery_type_name, 'UTF-8'), "expresní příplatek") !== false}BODE{else}{if strpos(mb_strtolower($order.delivery_type_name, 'UTF-8'), "na poštu") === false}BODR{else}BONP{/if}{/if}";
|
||||
"{$order.delivery_name nofilter} {$order.delivery_surname nofilter}{if $order.delivery_firm} {$order.delivery_firm nofilter}{/if}";
|
||||
"{$order.delivery_name nofilter} {$order.delivery_surname nofilter}{if $order.delivery_firm} {$order.delivery_firm nofilter}{/if}";
|
||||
"{$order.delivery_street|replace:'"':"'" nofilter}";
|
||||
"{$order.delivery_zip}";
|
||||
"{$order.delivery_city}";
|
||||
"{$order.delivery_suburb}";
|
||||
"{$order.delivery_country}";
|
||||
"{$order.invoice_phone}";
|
||||
"{$order.invoice_email}";
|
||||
"{if $order.note_admin.delivery_data.time_zone}B{else}A{/if}"{/strip}{"\r"}
|
||||
{/foreach}
|
||||
102
admin/templates/massprocess/dpd.tpl
Normal file
102
admin/templates/massprocess/dpd.tpl
Normal file
@@ -0,0 +1,102 @@
|
||||
{strip}
|
||||
"";
|
||||
"Jmeno Prijmeni (nazev firmy)";
|
||||
"";
|
||||
"DIC";
|
||||
"Stat (CZ/SK)";
|
||||
"Ulice";
|
||||
"C.p.";
|
||||
"Mesto";
|
||||
"PSC";
|
||||
"Telefon";
|
||||
"Email";
|
||||
"";
|
||||
"";
|
||||
"";
|
||||
"";
|
||||
"Produkt";
|
||||
"";
|
||||
"Kód objednávky";
|
||||
"Dobírka";
|
||||
"CZK";
|
||||
"Typ platby";
|
||||
"Poznámka";
|
||||
{/strip}
|
||||
{foreach $orders as $order}
|
||||
{strip}
|
||||
"";
|
||||
"{$order.delivery_name} {$order.delivery_surname}{if $order.delivery_firm} {$order.delivery_firm}{/if}";
|
||||
"";
|
||||
"";
|
||||
"{if $order.delivery_country|mb_stristr:"Česk" || $order.delivery_country|stristr:"CZ" || $order.delivery_country|stristr:"ČR" || empty($order.delivery_country)}CZ
|
||||
{elseif $order.delivery_country|stristr:"Slovensk" || $order.delivery_country|strstr:"SK"}SK{/if}";
|
||||
"{$order.delivery_street}";
|
||||
"{$order.delivery_suburb}";
|
||||
"{$order.delivery_city}";
|
||||
"{$order.delivery_zip|replace:" ":""}";
|
||||
"{$order.invoice_phone|replace:'+420':''|replace:' ': ''}";
|
||||
"{$order.invoice_email}";
|
||||
"";
|
||||
"";
|
||||
"";
|
||||
"";
|
||||
"40054";
|
||||
"";
|
||||
"{$order.order_no}";
|
||||
"{round($order.to_pay)}";
|
||||
"CZK";
|
||||
"1";
|
||||
"{$order.comment|html_entity_decode}"
|
||||
{/strip}
|
||||
{/foreach}
|
||||
|
||||
{* Šablona Standardní II
|
||||
"{$order.delivery_name} {$order.delivery_surname}{if $order.delivery_firm} {$order.delivery_firm}{/if}";
|
||||
"{if $order.delivery_country|mb_stristr:"Česk" || $order.delivery_country|stristr:"CZ" || $order.delivery_country|stristr:"ČR" || empty($order.delivery_country)}CZ
|
||||
{elseif $order.delivery_country|stristr:"Slovensk" || $order.delivery_country|strstr:"SK"}SK{/if}";
|
||||
"{$order.delivery_city}";
|
||||
"{$order.delivery_street}";
|
||||
"{$order.delivery_suburb}";
|
||||
"{$order.delivery_zip|replace:" ":""}";
|
||||
"{$order.invoice_phone}";
|
||||
"{$order.invoice_email}";
|
||||
"1";
|
||||
"{$order.to_pay|round:$dbcfg.price_round}";
|
||||
"CZK";
|
||||
"1";
|
||||
" ";
|
||||
" " *}
|
||||
|
||||
{*
|
||||
generuje se csv, pak se v php konvertuje do xls
|
||||
Format dat pro DPD formát "Import zasilek standardni II xls":
|
||||
|
||||
|
||||
Jméno příjemce;
|
||||
Země příjemce musí se nakonfigorovat jako: mezinárodní kód CZ, SK, PL, DE, … nebo id IT4EM 605, … (POVINNÉ POLE);
|
||||
Město příjemce(POVINNÉ POLE);
|
||||
Ulice příjemce(POVINNÉ POLE);
|
||||
Č. p. příjemce;
|
||||
PSČ příjemce bez mezer(POVINNÉ POLE);
|
||||
Telefon příjemce;
|
||||
Email příjemce;
|
||||
Produkt
|
||||
40066 / DPD 10:00
|
||||
40067 / DPD 12:00
|
||||
1 / DPD CLASSIC
|
||||
40042 / DPD CLASSIC Intercontinental
|
||||
40043 / DPD GUARANTEE
|
||||
50101 / DPD ParcelShop
|
||||
40054 / DPD Private
|
||||
40040 / DPDBox
|
||||
40048 / DPDPack
|
||||
40041 / Guarantee DPDBox
|
||||
40049 / Guarantee DPDPack
|
||||
40060 / Výměnná zásilka (POVINNÉ POLE)
|
||||
;
|
||||
COD částka používat pouze s desetinou tečkou;
|
||||
COD Měna;
|
||||
COD typ platby 1 = hotovost 2 = platební kartou, 0=bez platby;
|
||||
COD variabilní symbol;
|
||||
Hmotnost;
|
||||
*}
|
||||
52
admin/templates/massprocess/ppl.tpl
Normal file
52
admin/templates/massprocess/ppl.tpl
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ArrayOfPPLSprint>
|
||||
{foreach $orders as $o}
|
||||
<PPLSprint>
|
||||
<PackageIdPPL/>
|
||||
<DCOD/>
|
||||
<PackageType>16</PackageType>
|
||||
<PickupDate>{$o.date|replace:" ":"T"}</PickupDate>
|
||||
<PickupTimeFrom>01:00</PickupTimeFrom>
|
||||
<PickupTimeTo>14:00</PickupTimeTo>
|
||||
<PickupType>PT</PickupType>
|
||||
<DelivTimeFrom>08:00</DelivTimeFrom>
|
||||
<DelivTimeTo>11:00</DelivTimeTo>
|
||||
<CountOfEuroPal>0</CountOfEuroPal>
|
||||
<Email>{$o.invoice_email}</Email>
|
||||
<GoodsDesc>Popis zbozi.</GoodsDesc>
|
||||
<CustRef>{$o.id}</CustRef>
|
||||
<InsuranceValue>0</InsuranceValue>
|
||||
<CodValue>{$o.to_pay}</CodValue>
|
||||
<CodCurCode>CZK</CodCurCode>
|
||||
<CodVarCode>{$o.id}</CodVarCode>
|
||||
<SendName>{$dbcfg.shop_firm_name}</SendName>
|
||||
<SendStreet>{$dbcfg.shop_address}</SendStreet>
|
||||
<SendCity>Mesto</SendCity>
|
||||
<SendZipCode>{$zip.0}</SendZipCode>
|
||||
<SendContact>{$dbcfg.shop_email}</SendContact>
|
||||
<SendPhone>{$dbcfg.shop_phone}</SendPhone>
|
||||
<RecName>{$o.delivery_name} {$o.delivery_surname}{if $o.delivery_firm} {$o.delivery_firm}{/if}</RecName>
|
||||
<RecStreet>{$o.delivery_street} {$o.delivery_suburb}</RecStreet>
|
||||
<RecCity>{$o.delivery_city}</RecCity>
|
||||
<RecZipCode>{$o.delivery_zip}</RecZipCode>
|
||||
<RecContact>{$o.delivery_name}</RecContact>
|
||||
<RecPhone>{$o.invoice_phone}</RecPhone>
|
||||
<CrgManId>2</CrgManId>
|
||||
<PackageItems>
|
||||
<PPLSprintItem>
|
||||
<LPNumber/>
|
||||
<CaseDescription>Balík</CaseDescription>
|
||||
<Weight>1</Weight>
|
||||
<Length>0</Length>
|
||||
<Height>0</Height>
|
||||
<Width>0</Width>
|
||||
</PPLSprintItem>
|
||||
</PackageItems>
|
||||
<ErrorCode>0</ErrorCode>
|
||||
</PPLSprint>
|
||||
{/foreach}
|
||||
</ArrayOfPPLSprint>
|
||||
|
||||
{*
|
||||
XML podle formátu http://klient.ppl.cz/help.aspx#format_palety_xml
|
||||
*}
|
||||
Reference in New Issue
Block a user