Current Module

This commit is contained in:
2026-07-10 11:56:56 +02:00
parent 1c52d03cbf
commit 74583d512c
67 changed files with 8964 additions and 0 deletions
@@ -0,0 +1,15 @@
# Apache 2.2
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
<Files ~ "(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|ico|webp|woff|woff2|ttf|eot|otf|css|js)$">
Allow from all
</Files>
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
<Files ~ "(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|ico|webp|woff|woff2|ttf|eot|otf|css|js)$">
Require all granted
</Files>
</IfModule>
+1
View File
@@ -0,0 +1 @@
K8ekbIMbIwtx8vVd3hIGsdHkD2iGIAmyzFp9j/Sj1KU1ZDwo8bInXlWu+2cnsfdGPD4NyEzsYI6EIUeYC29+x572begpse5B0d97ptnJCd2GyZ24YF4ne7GBM8a+Bask+kWf42w8qapfITdeshcDQt3mmpTf2I6F0mFpaFQknz+N8elp++IbhZChjs0XPX0HzbizjVR8MOBcLo/TkgKw4b4f8DjqwmNG+JaIf3Y+/gjTjJnPAzH43P0QO0NLiXG/OEOH2Mn1qThE0lKL5w0wUQ==
@@ -0,0 +1,328 @@
<?php
/**
* Module allow edit existing orders and set rules for automatically generating numbers for orders and other documents
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
if (!defined('_PS_VERSION_')){
exit;
}
class DocumentReferences extends ObjectModel
{
public $id;
public $id_document;
public $document_type;
public $reference;
public static $definition = array(
'table' => 'document_references',
'primary' => 'id_document_reference',
'fields' => array(
'id_document' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true, 'required' => true),
'document_type' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'required' => true, 'size' => 32),
'reference' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 255)
)
);
public static function addMissingReferences($idOrder = 0) {
$ordersWithInvoices = Db::getInstance()->executeS("SELECT oi.id_order_invoice FROM "._DB_PREFIX_."order_invoice oi
LEFT JOIN "._DB_PREFIX_."document_references dr on dr.id_document = oi.id_order_invoice AND dr.document_type = 'invoice'
WHERE oi.number > 0 AND (dr.id_document is NULL || (dr.id_document is not NULL AND dr.document_type != 'invoice'))".($idOrder > 0 ? " AND oi.id_order = ". (int)$idOrder : ""));
if (count($ordersWithInvoices) > 0)
foreach ($ordersWithInvoices as $key => $value) {
$orderInvoice = new OrderInvoice((int)$value['id_order_invoice']);
$documentReference = new DocumentReferences();
$documentReference->id_document = (int)$value['id_order_invoice'];
$documentReference->document_type = 'invoice';
$documentReference->reference = $orderInvoice->getInvoiceNumberFormatted(Context::getContext()->language->id, null, true);
$documentReference->add();
}
$ordersWithDeliveryNumbers = Db::getInstance()->executeS("SELECT oi.id_order_invoice, oi.delivery_number FROM "._DB_PREFIX_."order_invoice oi
LEFT JOIN "._DB_PREFIX_."document_references dr on dr.id_document = oi.id_order_invoice AND dr.document_type = 'delivery_slip'
WHERE oi.delivery_number > 0 AND (dr.id_document is NULL || (dr.id_document is not NULL AND dr.document_type != 'delivery_slip'))".($idOrder > 0 ? " AND oi.id_order = ". (int)$idOrder : ""));
if (count($ordersWithDeliveryNumbers) > 0)
foreach ($ordersWithDeliveryNumbers as $key => $value) {
$documentReference = new DocumentReferences();
$documentReference->id_document = (int)$value['id_order_invoice'];
$documentReference->document_type = 'delivery_slip';
$documentReference->reference = Configuration::get('PS_DELIVERY_PREFIX', Context::getContext()->language->id, null, null).sprintf('%06d', $value['delivery_number']);
$documentReference->add();
}
$creditSlips = Db::getInstance()->executeS("SELECT os.id_order_slip FROM "._DB_PREFIX_."order_slip os
LEFT JOIN "._DB_PREFIX_."document_references dr on dr.id_document = os.id_order_slip AND dr.document_type = 'credit_slip'
WHERE dr.id_document is NULL || (dr.id_document is not NULL AND dr.document_type != 'credit_slip')".($idOrder > 0 ? " AND os.id_order = ". (int)$idOrder : ""));
if (count($creditSlips) > 0)
foreach ($creditSlips as $key => $value) {
$documentReference = new DocumentReferences();
$documentReference->id_document = (int)$value['id_order_slip'];
$documentReference->document_type = 'credit_slip';
$documentReference->reference = sprintf(Translate::getPdfTranslation('%1$s%2$06d'), Configuration::get('PS_CREDIT_SLIP_PREFIX', Context::getContext()->language->id), (int)$value['id_order_slip']);
$documentReference->add();
}
}
public static function storeReference($documentType, $idOrder = 0, $idDocument = 0)
{
$customNumberReferenceData = json_decode(Configuration::get('modrefchange'));
if ($documentType == 'credit_slip') {
$reference = self::getCustomOrderSlipReferenceNumber($customNumberReferenceData[3], $idOrder, $idDocument);
} else if ($documentType == 'delivery_slip') {
$reference = self::getCustomDeliverySlipReferenceNumber($customNumberReferenceData[2], $idOrder);
} else if ($documentType == 'invoice') {
if ($idDocument == 0) {
$idDocument = self::getOrderInvoiceIdByOrderId($idOrder);
}
$reference = self::getCustomInvoiceReferenceNumber($customNumberReferenceData[1], $idOrder, $idDocument);
} else { //$documentType == 'order'
return self::getCustomOrderReferenceNumber($customNumberReferenceData[0]);
}
$idDocumentReference = Db::getInstance()->getValue("SELECT id_document_reference
FROM `"._DB_PREFIX_."document_references`
WHERE `id_document` = ".(int)$idDocument." AND `document_type` = '".pSQL($documentType)."'");
if ($idDocumentReference > 0) {
Db::getInstance()->update('document_references', array('reference' => pSQL($reference)), '`id_document_reference` = '.(int)$idDocumentReference);
} else {
Db::getInstance()->insert('document_references', array('id_document' => (int)$idDocument, 'document_type' => pSQL($documentType), 'reference' => pSQL($reference)));
}
}
public static function getAllDocuments()
{
return Db::getInstance()->executeS("SELECT * FROM "._DB_PREFIX_."document_references");
}
public static function getReference($idDocument, $documentType)
{
$sql = "SELECT * FROM "._DB_PREFIX_."document_references WHERE id_document = ".(int)$idDocument." AND document_type = '".pSQL($documentType)."'";
return Db::getInstance()->getRow($sql);
}
public static function getCustomOrderSlipReferenceNumber($customOrderSlipReferenceData, $order_id, $idDocument)
{
if ($customOrderSlipReferenceData->activate_reference_number) {
$finalReference = $customOrderSlipReferenceData->reference_number_format;
if (strpos($finalReference, '{COUNTER}') !== false)
{
self::checkForCounterReset(3);
$getAllCounterData = json_decode(Configuration::getGlobalValue('counterNumberData'), true);
$currentCounterData = $getAllCounterData[3];
$finalReference = str_replace('{COUNTER}', self::getCounterValue($currentCounterData), $finalReference);
$nextCounterValue = (int)$currentCounterData['counter_actual_value'] + (int)$currentCounterData['counter_increment_by'];
$currentCounterData['counter_actual_value'] = $nextCounterValue;
$getAllCounterData[3] = $currentCounterData;
Configuration::updateGlobalValue('counterNumberData', json_encode($getAllCounterData));
}
$finalReference = str_replace('{RANDOM_NUMBER}', Tools::strtoupper(Tools::passwdGen($customOrderSlipReferenceData->random_number_length, 'NUMERIC')), $finalReference);
$finalReference = str_replace('{RANDOM_ALPHABETIC}', Tools::strtoupper(Tools::passwdGen($customOrderSlipReferenceData->random_alphabetic_length, 'NO_NUMERIC')), $finalReference);
$finalReference = str_replace('{RANDOM_ALPHANUMERIC}', Tools::strtoupper(Tools::passwdGen($customOrderSlipReferenceData->random_alphanumeric_length, 'ALPHANUMERIC')), $finalReference);
$finalReference = str_replace('{ORDER_ID}', (int)$order_id, $finalReference);
$finalReference = str_replace('{SHOP_ID}', (int)Context::getContext()->shop->id, $finalReference);
$finalReference = str_replace('{YEAR}', date('Y'), $finalReference);
$finalReference = str_replace('{YEARSHORTCUT}', date('y'), $finalReference);
$finalReference = str_replace('{MONTH}', date('m'), $finalReference);
$finalReference = str_replace('{WEEK}', date('W'), $finalReference);
$finalReference = str_replace('{DAYINWEEK}', date('N'), $finalReference);
$finalReference = str_replace('{DAY}', date('j'), $finalReference);
return $finalReference;
} else {
return Configuration::get('PS_CREDIT_SLIP_PREFIX', Context::getContext()->language->id).sprintf('%06d', (int)$idDocument);
}
}
public static function getCustomDeliverySlipReferenceNumber($customDeliverySlipReferenceData, $order_id)
{
if ($customDeliverySlipReferenceData->activate_reference_number) {
$finalReference = $customDeliverySlipReferenceData->reference_number_format;
if (strpos($finalReference, '{COUNTER}') !== false)
{
self::checkForCounterReset(2);
$getAllCounterData = json_decode(Configuration::getGlobalValue('counterNumberData'), true);
$currentCounterData = $getAllCounterData[2];
$finalReference = str_replace('{COUNTER}', self::getCounterValue($currentCounterData), $finalReference);
$nextCounterValue = (int)$currentCounterData['counter_actual_value'] + (int)$currentCounterData['counter_increment_by'];
$currentCounterData['counter_actual_value'] = $nextCounterValue;
$getAllCounterData[2] = $currentCounterData;
Configuration::updateGlobalValue('counterNumberData', json_encode($getAllCounterData));
}
$finalReference = str_replace('{RANDOM_NUMBER}', Tools::strtoupper(Tools::passwdGen($customDeliverySlipReferenceData->random_number_length, 'NUMERIC')), $finalReference);
$finalReference = str_replace('{RANDOM_ALPHABETIC}', Tools::strtoupper(Tools::passwdGen($customDeliverySlipReferenceData->random_alphabetic_length, 'NO_NUMERIC')), $finalReference);
$finalReference = str_replace('{RANDOM_ALPHANUMERIC}', Tools::strtoupper(Tools::passwdGen($customDeliverySlipReferenceData->random_alphanumeric_length, 'ALPHANUMERIC')), $finalReference);
$finalReference = str_replace('{ORDER_ID}', (int)$order_id, $finalReference);
$finalReference = str_replace('{SHOP_ID}', (int)Context::getContext()->shop->id, $finalReference);
$finalReference = str_replace('{YEAR}', date('Y'), $finalReference);
$finalReference = str_replace('{YEARSHORTCUT}', date('y'), $finalReference);
$finalReference = str_replace('{MONTH}', date('m'), $finalReference);
$finalReference = str_replace('{WEEK}', date('W'), $finalReference);
$finalReference = str_replace('{DAYINWEEK}', date('N'), $finalReference);
$finalReference = str_replace('{DAY}', date('j'), $finalReference);
return $finalReference;
} else {
$order = new Order($order_id);
return Configuration::get('PS_DELIVERY_PREFIX', Context::getContext()->language->id, null, Context::getContext()->shop->id).sprintf('%06d', $order->delivery_number);
}
}
public static function getCustomInvoiceReferenceNumber($customInvoiceReferenceData, $order_id, $idDocument)
{
if ($customInvoiceReferenceData->activate_reference_number) {
$finalReference = $customInvoiceReferenceData->reference_number_format;
if (strpos($finalReference, '{COUNTER}') !== false)
{
self::checkForCounterReset(1);
$getAllCounterData = json_decode(Configuration::getGlobalValue('counterNumberData'), true);
$currentCounterData = $getAllCounterData[1];
$finalReference = str_replace('{COUNTER}', self::getCounterValue($currentCounterData), $finalReference);
$nextCounterValue = (int)$currentCounterData['counter_actual_value'] + (int)$currentCounterData['counter_increment_by'];
$currentCounterData['counter_actual_value'] = $nextCounterValue;
$getAllCounterData[1] = $currentCounterData;
Configuration::updateGlobalValue('counterNumberData', json_encode($getAllCounterData));
}
$finalReference = str_replace('{RANDOM_NUMBER}', Tools::strtoupper(Tools::passwdGen($customInvoiceReferenceData->random_number_length, 'NUMERIC')), $finalReference);
$finalReference = str_replace('{RANDOM_ALPHABETIC}', Tools::strtoupper(Tools::passwdGen($customInvoiceReferenceData->random_alphabetic_length, 'NO_NUMERIC')), $finalReference);
$finalReference = str_replace('{RANDOM_ALPHANUMERIC}', Tools::strtoupper(Tools::passwdGen($customInvoiceReferenceData->random_alphanumeric_length, 'ALPHANUMERIC')), $finalReference);
$finalReference = str_replace('{ORDER_ID}', (int)$order_id, $finalReference);
$finalReference = str_replace('{SHOP_ID}', (int)Context::getContext()->shop->id, $finalReference);
$finalReference = str_replace('{YEAR}', date('Y'), $finalReference);
$finalReference = str_replace('{YEARSHORTCUT}', date('y'), $finalReference);
$finalReference = str_replace('{MONTH}', date('m'), $finalReference);
$finalReference = str_replace('{WEEK}', date('W'), $finalReference);
$finalReference = str_replace('{DAYINWEEK}', date('N'), $finalReference);
$finalReference = str_replace('{DAY}', date('j'), $finalReference);
return $finalReference;
} else {
$orderInvoice = new OrderInvoice($idDocument);
return $orderInvoice->getInvoiceNumberFormatted(Context::getContext()->language->id, Context::getContext()->shop->id, true);
}
}
public static function getCustomOrderReferenceNumber($customOrderReferenceData)
{
if ($customOrderReferenceData->activate_reference_number)
{
$finalReference = $customOrderReferenceData->reference_number_format;
if (strpos($finalReference, '{COUNTER}') !== false)
{
self::checkForCounterReset(0);
$getAllCounterData = json_decode(Configuration::getGlobalValue('counterNumberData'), true);
$currentCounterData = $getAllCounterData[0];
$finalReference = str_replace('{COUNTER}', self::getCounterValue($currentCounterData), $finalReference);
$nextCounterValue = (int)$currentCounterData['counter_actual_value'] + (int)$currentCounterData['counter_increment_by'];
$currentCounterData['counter_actual_value'] = $nextCounterValue;
$getAllCounterData[0] = $currentCounterData;
Configuration::updateGlobalValue('counterNumberData', json_encode($getAllCounterData));
}
$finalReference = str_replace('{RANDOM_NUMBER}', Tools::strtoupper(Tools::passwdGen($customOrderReferenceData->random_number_length, 'NUMERIC')), $finalReference);
$finalReference = str_replace('{RANDOM_ALPHABETIC}', Tools::strtoupper(Tools::passwdGen($customOrderReferenceData->random_alphabetic_length, 'NO_NUMERIC')), $finalReference);
$finalReference = str_replace('{RANDOM_ALPHANUMERIC}', Tools::strtoupper(Tools::passwdGen($customOrderReferenceData->random_alphanumeric_length, 'ALPHANUMERIC')), $finalReference);
$finalReference = str_replace('{ORDER_ID}', (int)self::getLastOrderId() + 1, $finalReference);
$finalReference = str_replace('{SHOP_ID}', (int)Context::getContext()->shop->id, $finalReference);
$finalReference = str_replace('{YEAR}', date('Y'), $finalReference);
$finalReference = str_replace('{YEARSHORTCUT}', date('y'), $finalReference);
$finalReference = str_replace('{MONTH}', date('m'), $finalReference);
$finalReference = str_replace('{WEEK}', date('W'), $finalReference);
$finalReference = str_replace('{DAYINWEEK}', date('N'), $finalReference);
$finalReference = str_replace('{DAY}', date('j'), $finalReference);
return $finalReference;
}
else
return Tools::strtoupper(Tools::passwdGen(9, 'NO_NUMERIC'));
}
// tato metoda sa vola len pri prvom generovani faktury -> Order->setInvoice()
// vtedy este nemoze byt viac zaznamov v tabulke order_invoice
public static function getOrderInvoiceIdByOrderId($orderId)
{
$sql = 'SELECT id_order_invoice FROM '._DB_PREFIX_.'order_invoice WHERE id_order = '.(int)$orderId;
if ($row = Db::getInstance()->getRow($sql))
return $row['id_order_invoice'];
}
public static function getLastOrderId()
{
$sql = 'SELECT MAX(id_order) as lastId FROM '._DB_PREFIX_.'orders';
if ($row = Db::getInstance()->getRow($sql))
return $row['lastId'];
}
public static function orderInvoiceRecordsCountByOrderID($orderId)
{
return (int)Db::getInstance()->getValue('SELECT COUNT(id_order_invoice)
FROM `'._DB_PREFIX_.'order_invoice`
WHERE `id_order` = '.(int)$orderId);
}
public static function checkForCounterReset($type)
{
$counterData = json_decode(Configuration::getGlobalValue('counterNumberData'), true);
$currentCounterData = $counterData[$type];
$today = date("Y-m-d");
if ((int)$currentCounterData['counter_reset_interval'] == 0) //reset tyzdna
{
if (strtotime($currentCounterData['counter_last_set_date']) < strtotime($today)
&& (((int)date("W", strtotime($currentCounterData['counter_last_set_date'])) != (int)date("W", strtotime($today)))
|| (((int)date("W", strtotime($currentCounterData['counter_last_set_date'])) == (int)date("W", strtotime($today))) && ((int)date("Y", strtotime($currentCounterData['counter_last_set_date'])) < (int)date("Y", strtotime($today))))
))
{
$currentCounterData['counter_actual_value'] = $currentCounterData['counter_start_at'];
}
}
else if ((int)$currentCounterData['counter_reset_interval'] == 1) //reset mesiaca
{
if (strtotime($currentCounterData['counter_last_set_date']) < strtotime($today)
&& (((int)date("n", strtotime($currentCounterData['counter_last_set_date'])) != (int)date("n", strtotime($today)))
|| (((int)date("n", strtotime($currentCounterData['counter_last_set_date'])) == (int)date("n", strtotime($today))) && ((int)date("Y", strtotime($currentCounterData['counter_last_set_date'])) < (int)date("Y", strtotime($today))))
))
{
$currentCounterData['counter_actual_value'] = $currentCounterData['counter_start_at'];
}
}
else if ((int)$currentCounterData['counter_reset_interval'] == 2) //reset roka
{
if (strtotime($currentCounterData['counter_last_set_date']) < strtotime($today)
&& ((int)date("Y", strtotime($currentCounterData['counter_last_set_date'])) < (int)date("Y", strtotime($today))))
{
$currentCounterData['counter_actual_value'] = $currentCounterData['counter_start_at'];
}
}
else if ((int)$currentCounterData['counter_reset_interval'] == 3){ //reset podla cisla
if ((int)$currentCounterData['counter_actual_value'] > $currentCounterData['counter_reset_number']) {
$currentCounterData['counter_actual_value'] = $currentCounterData['counter_start_at'];
}
}
else if ((int)$currentCounterData['counter_reset_interval'] == 4) //reset podla datumu
{
if (strtotime($currentCounterData['counter_last_set_date']) < strtotime($today)
&& strtotime($currentCounterData['counter_reset_date']) <= strtotime($today)
&& $currentCounterData['counter_reset_date'] != '')
{
$currentCounterData['counter_actual_value'] = $currentCounterData['counter_start_at'];
$currentCounterData['counter_reset_date'] = '';
}
}
$currentCounterData['counter_last_set_date'] = $today;
$counterData[$type] = $currentCounterData;
Configuration::updateGlobalValue('counterNumberData', json_encode($counterData));
}
public static function getCounterValue($currentCounterData)
{
$nextCounterValue = '';
if ((int)$currentCounterData['counter_reference_length_in_use'] == 1)
{
if ((int)$currentCounterData['counter_reference_length'] > Tools::strlen((string)$currentCounterData['counter_actual_value']))
{
for ($i = 0; $i < (int)$currentCounterData['counter_reference_length'] - Tools::strlen((string)$currentCounterData['counter_actual_value']); $i++)
{
$nextCounterValue .= "0";
}
}
}
$nextCounterValue .= $currentCounterData['counter_actual_value'];
return $nextCounterValue;
}
}
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,897 @@
<?php
/**
* Module allow edit existing orders and set rules for automatically generating numbers for orders and other documents
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
if (!defined('_PS_VERSION_'))
exit;
}
class AdminEditOrderController extends ModuleAdminController
{
public function __construct() {
parent::__construct();
}
// ORDER
public function ajaxProcessSetOrderDate() {
$order = new Order((int)Tools::getValue('id_order'));
$date = Tools::getValue('value');
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$order->date_add = $date;
$order->date_upd = $date;
if($order->update()) {
if (version_compare(_PS_VERSION_, '1.7.7', '>=')) {
$dateTime = Tools::displayDate($order->date_add, Context::getContext()->language->id, true);
} else {
$dateTime = Tools::displayDate($order->date_add);
}
die(json_encode(array('errors' => false, 'value' => $dateTime, 'result' => $this->l('Order date stored'))));
}
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetOrderNumber() {
$order = new Order((int)Tools::getValue('id_order'));
$reference = Tools::getValue('value');
$updateOrderReference = false;
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
if (Tools::strlen($reference) > 9)
die(json_encode(array(
'result' => $this->l('Order number has more than 9 characters'),
'errors' => true
)));
if (!Order::getByReference($reference)->count()) {
if ($updateOrderReference = Db::getInstance()->update(
"order_payment",
array(
"order_reference" => pSQL($reference)
),
"order_reference = '".pSQL($order->reference)."'"
))
$order->reference = $reference;
} else
die(json_encode(array(
'errors' => true,
'result' => $this->l('Order number already exist')
)));
if($order->update() && $updateOrderReference)
die(json_encode(array('errors' => false, 'result' => $this->l('Order number stored'))));
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
// DOCUMENTS
public function ajaxProcessSetInvoiceDate() {
$order = new Order((int)Tools::getValue('id_order'));
$date = Tools::getValue('value');
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$orderInvoice = new OrderInvoice((int)Tools::getValue('id'));
if (!Validate::isLoadedObject($orderInvoice))
die(json_encode(array(
'result' => $this->l('Order invoice cannot be loaded'),
'errors' => true
)));
$orderInvoice->date_add = $date;
if (!$orderInvoice->update())
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
$order->invoice_date = $date;
if ($order->update())
die(json_encode(array('errors' => false, 'value' => Tools::displayDate($order->invoice_date), 'result' => $this->l('Invoice date stored'))));
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetInvoiceNumber() {
DocumentReferences::addMissingReferences((int)Tools::getValue('id_order'));
if (Db::getInstance()->update(
"document_references",
array(
'reference' => pSQL(Tools::getValue("value"))
),
_DB_PREFIX_."document_references.id_document = ".(int)Tools::getValue('id')." AND "._DB_PREFIX_."document_references.document_type = 'invoice'"
)) {
$order = new Order((int)Tools::getValue('id_order'));
$invoice_collection = $order->getInvoicesCollection();
$invoices = array();
foreach ($invoice_collection as $invoice) {
$invoice->name = $invoice->getInvoiceNumberFormatted(Context::getContext()->language->id, (int)$order->id_shop);
$invoices[] = $invoice;
}
die(json_encode(array(
'errors' => false,
'documents' => json_encode(DocumentReferences::getAllDocuments()),
'invoices' => $invoices,
'result' => $this->l('Invoice number stored')
)));
}
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetDeliveryDate() {
$order = new Order((int)Tools::getValue('id_order'));
$date = Tools::getValue('value');
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$orderInvoice = new OrderInvoice((int)Tools::getValue('id'));
if (!Validate::isLoadedObject($orderInvoice))
die(json_encode(array(
'result' => $this->l('Order invoice cannot be loaded'),
'errors' => true
)));
$orderInvoice->delivery_date = $date;
if (!$orderInvoice->update())
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
$order->delivery_date = $date;
if ($order->update())
die(json_encode(array('errors' => false, 'value' => Tools::displayDate($order->delivery_date), 'result' => $this->l('Delivery date stored'))));
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetDeliveryNumber() {
if (Db::getInstance()->update(
"document_references",
array(
'reference' => pSQL(Tools::getValue("value"))
),
_DB_PREFIX_."document_references.id_document = ".(int)Tools::getValue('id')." AND "._DB_PREFIX_."document_references.document_type = 'delivery_slip'"
))
die(json_encode(array('errors' => false, 'result' => $this->l('Delivery number stored'))));
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetCreditslipDate() {
$orderSlip = new OrderSlip((int)Tools::getValue('id'));
if (!Validate::isLoadedObject($orderSlip))
die(json_encode(array(
'result' => $this->l('Credit slip cannot be loaded'),
'errors' => true
)));
$orderSlip->date_add = Tools::getValue('value');
if ($orderSlip->update())
die(json_encode(array('errors' => false, 'value' => Tools::displayDate($orderSlip->date_add), 'result' => $this->l('Credit slip stored'))));
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetCreditslipNumber() {
if (Db::getInstance()->update(
"document_references",
array(
'reference' => pSQL(Tools::getValue("value"))
),
_DB_PREFIX_."document_references.id_document = ".(int)Tools::getValue('id')." AND "._DB_PREFIX_."document_references.document_type = 'credit_slip'"
))
die(json_encode(array('errors' => false, 'result' => $this->l('Credit slip number stored'))));
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessDeleteInvoice() {
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$idOrderInvoice = (int)Tools::getValue('number');
$orderInvoice = new OrderInvoice($idOrderInvoice);
if (!Validate::isLoadedObject($orderInvoice))
die(json_encode(array(
'result' => $this->l('Order invoice cannot be loaded'),
'errors' => true
)));
if ((int)$order->invoice_number == (int)$orderInvoice->number) {
$newInvoiceNumber = 0;
$newInvoiceDate = "0000-00-00 00:00:00";
$invoiceNumbers = self::getOrderInvoiceNumbers($order->id, 'number');
if (count($invoiceNumbers) > 1) {
$newInvoiceNumber = self::getNextDocumentField($order->id, $orderInvoice->number, 'number', 'number');
$newInvoiceDate = self::getNextDocumentField($order->id, $orderInvoice->number, 'date_add', 'number');
}
$order->invoice_number = $newInvoiceNumber;
$order->invoice_date = $newInvoiceDate;
$order->update();
}
Db::getInstance()->execute('
UPDATE '._DB_PREFIX_.'order_carrier SET id_order_invoice = 0
WHERE id_order = '.(int)$order->id.' AND id_order_invoice = '.(int)$idOrderInvoice
);
Db::getInstance()->execute('
UPDATE '._DB_PREFIX_.'order_detail SET id_order_invoice = 0
WHERE id_order = '.(int)$order->id.' AND id_order_invoice = '.(int)$idOrderInvoice
);
Db::getInstance()->execute('
UPDATE '._DB_PREFIX_.'order_cart_rule SET id_order_invoice = 0
WHERE id_order = '.(int)$order->id
);
$this->deleteDeliverySlip((int)Tools::getValue('id_order'), (int)Tools::getValue('number'));
Db::getInstance()->delete('document_references', "`id_document` = ".(int)$idOrderInvoice." AND `document_type` = 'invoice'");
$orderInvoice->delete();
$invoice_collection = $order->getInvoicesCollection();
$invoices = array();
foreach ($invoice_collection as $invoice) {
$invoice->name = $invoice->getInvoiceNumberFormatted(Context::getContext()->language->id, (int)$order->id_shop);
$invoices[] = $invoice;
}
die(json_encode(array('errors' => false, 'invoices' => $invoices, 'documentsCount' => count($order->getDocuments()), 'result' => $this->l('Invoice successfully deleted'))));
}
public function ajaxProcessDeleteDeliverySlip() {
$this->deleteDeliverySlip((int)Tools::getValue('id_order'), (int)Tools::getValue('number'));
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
die(json_encode(array('errors' => false, 'documentsCount' => count($order->getDocuments()), 'result' => $this->l('Delivery slip successfully deleted'))));
}
public function deleteDeliverySlip($idOrder, $idOrderInvoice) {
$order = new Order((int)$idOrder);
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$orderInvoice = new OrderInvoice($idOrderInvoice);
if (!Validate::isLoadedObject($orderInvoice))
die(json_encode(array(
'result' => $this->l('Order invoice cannot be loaded'),
'errors' => true
)));
if ((int)$order->delivery_number == (int)$orderInvoice->delivery_number) {
$newDeliveryNumber = 0;
$newDeliveryDate = "0000-00-00 00:00:00";
$deliveryNumbers = self::getOrderInvoiceNumbers($order->id, 'delivery_number');
if (count($deliveryNumbers) > 1) {
$newDeliveryNumber = self::getNextDocumentField($order->id, $orderInvoice->delivery_number, 'delivery_number', 'delivery_number');
$newDeliveryDate = self::getNextDocumentField($order->id, $orderInvoice->delivery_number, 'delivery_date', 'delivery_number');
}
$order->delivery_number = $newDeliveryNumber;
$order->delivery_date = $newDeliveryDate;
$order->update();
}
$orderInvoice->delivery_date = "0000-00-00 00:00:00";
$orderInvoice->delivery_number = 0;
$orderInvoice->update();
Db::getInstance()->delete('document_references', "`id_document` = ".(int)$idOrderInvoice." AND `document_type` = 'delivery_slip'");
}
public function ajaxProcessDeleteCreditSlip() {
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$orderSlip = new OrderSlip((int)Tools::getValue('number'));
if (!Validate::isLoadedObject($orderSlip))
die(json_encode(array(
'result' => $this->l('Order slip cannot be loaded'),
'errors' => true
)));
Db::getInstance()->delete('order_slip', '`id_order_slip` = '.(int)$orderSlip->id);
Db::getInstance()->delete('order_slip_detail', '`id_order_slip` = '.(int)$orderSlip->id);
Db::getInstance()->delete('document_references', "`id_document` = ".(int)$orderSlip->id." AND `document_type` = 'credit_slip'");
die(json_encode(array('errors' => false, 'documentsCount' => count($order->getDocuments()), 'result' => $this->l('Order slip successfully deleted'))));
}
// ORDER NOTE
public function ajaxProcessSetOrderNote() {
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$data = array(
'id_order' => $order->id,
'note' => pSQL(Tools::getValue('note'), true),
'show_on_invoice' => (int)Tools::getValue('show_on_invoice'),
'date_upd' => date('Y-m-d H:i:s')
);
if (Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'order_note WHERE id_order = '.(int)$order->id)) {
$result = Db::getInstance()->update('order_note', $data, '`id_order` = '.(int)$order->id);
} else {
$result = Db::getInstance()->insert('order_note', array_merge($data, array('date_add' => date('Y-m-d H:i:s'))));
}
die(json_encode(array('errors' => !$result, 'result' => $this->l('Order note stored'))));
}
//STATUSES
public function ajaxProcessDeleteStatus() {
$sql = 'SELECT * FROM '._DB_PREFIX_.'order_history WHERE `id_order` = '.(int)Tools::getValue('id_order').' ORDER BY date_add, id_order_history ASC';
if ($results = Db::getInstance()->ExecuteS($sql))
if (count($results) > 1) { //vymaze zaznam len pokial existuje viac ako jeden dalsi, nesmu byt zmazane vsetky statusy
$orderHistoryCount = 0;
foreach ($results as $row) {
$orderHistoryCount++;
if ((int)Tools::getValue('number') == $orderHistoryCount)
if (Db::getInstance()->delete('order_history', '`id_order_history` = '.(int)$row['id_order_history'])) {
$currentOrderStateID = 0;
foreach ($results as $rowInner)
if ((int)$row['id_order_history'] != (int)$rowInner['id_order_history'])
$currentOrderStateID = (int)$rowInner['id_order_state'];
if ($currentOrderStateID > 0) {
$sqlUpdate = 'UPDATE '._DB_PREFIX_.'orders SET current_state = '.(int)$currentOrderStateID.' WHERE id_order = '.(int)Tools::getValue('id_order');
Db::getInstance()->execute($sqlUpdate);
}
die(json_encode(array('errors' => false, 'result' => $this->l('Order status removed'))));
}
else
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be removed')
)));
}
}
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be removed')
)));
}
// SHIPPING
public function ajaxProcessSetShippingDate() {
$orderCarrier = new OrderCarrier((int)Tools::getValue('id'));
if (!Validate::isLoadedObject($orderCarrier))
die(json_encode(array(
'result' => $this->l('Order carrier cannot be loaded'),
'errors' => true
)));
$orderCarrier->date_add = Tools::getValue('value');
if ($orderCarrier->update())
die(json_encode(array('errors' => false, 'value' => Tools::displayDate($orderCarrier->date_add, null, true), 'result' => $this->l('Shipping date stored'))));
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetShippingCarrier() {
error_reporting( E_ALL );
ini_set('display_errors', 1);
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$order->id_carrier = (int)Tools::getValue('value');
$orderStore = $order->update();
$orderCarrier = new OrderCarrier((int)Tools::getValue('id'));
if (!Validate::isLoadedObject($orderCarrier))
die(json_encode(array(
'result' => $this->l('Order carrier cannot be loaded'),
'errors' => true
)));
$orderCarrier->id_carrier = (int)Tools::getValue('value');
$orderCarrierStore = $orderCarrier->update();
$order = self::recalculateShippingCostAndTotalPaid((int)Tools::getValue('id_order'));
if ($orderCarrierStore && $orderStore) {
Context::getContext()->smarty->assign(array(
'order' => $order,
'currency' => new Currency($order->id_currency),
'link' => Context::getContext()->link
));
if (version_compare(_PS_VERSION_, '1.7', '>')) {
smartyRegisterFunction(Context::getContext()->smarty, 'function', 'displayPrice', array('Tools', 'displayPriceSmarty'));
}
die(json_encode(array('errors' => false, 'order' => $order, 'shipping' => $order->getShipping(), 'shipping_html' => Context::getContext()->smarty->createTemplate(Tools::getValue('adminThemeDir').'/default/template/controllers/orders/_shipping.tpl', Context::getContext()->smarty)->fetch(), 'result' => $this->l('Shipping carrier stored'))));
}
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetShippingTrackingNumber() {
$orderCarrier = new OrderCarrier((int)Tools::getValue('id'));
if (!Validate::isLoadedObject($orderCarrier))
die(json_encode(array(
'result' => $this->l('Order carrier cannot be loaded'),
'errors' => true
)));
$orderCarrier->tracking_number = Tools::getValue('value');
if ($orderCarrier->update())
die(json_encode(array('errors' => false, 'result' => $this->l('Shipping tracking number stored'))));
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetShippingCostData() {
$orderCarrier = new OrderCarrier((int)Tools::getValue('id_order_carrier'));
if (!Validate::isLoadedObject($orderCarrier))
die(json_encode(array(
'result' => $this->l('Order carrier cannot be loaded'),
'errors' => true
)));
$orderCarrier->shipping_cost_tax_excl = (float)Tools::getValue('priceTaxExcl');
$orderCarrier->shipping_cost_tax_incl = (float)Tools::getValue('priceTaxIncl');
if (!$orderCarrier->update())
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$order->total_shipping = (float)Tools::getValue('priceTaxIncl');
$order->total_shipping_tax_incl = (float)Tools::getValue('priceTaxIncl');
$order->total_shipping_tax_excl = (float)Tools::getValue('priceTaxExcl');
$order->carrier_tax_rate = (float)Tools::getValue('tax');
$order->total_paid = $order->total_products_wt + $order->total_shipping_tax_incl + $order->total_wrapping_tax_incl - $order->total_discounts_tax_incl;
$order->total_paid_tax_excl = $order->total_products + $order->total_shipping_tax_excl + $order->total_wrapping_tax_excl - $order->total_discounts_tax_excl;
$order->total_paid_tax_incl = $order->total_paid;
if (!$order->update())
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
$order = self::recalculateShippingCostAndTotalPaid((int)Tools::getValue('id_order'));
//pokial napr. nie je vygenerovana faktura pre objednavku tak neexistje zaznam na $orderCarrier->id_order_invoice
if ((int)$orderCarrier->id_order_invoice > 0) {
$orderInvoice = new OrderInvoice((int)$orderCarrier->id_order_invoice);
if (!Validate::isLoadedObject($orderInvoice))
die(json_encode(array(
'result' => $this->l('Order invoice cannot be loaded'),
'errors' => true
)));
else {
$orderInvoice->total_shipping_tax_incl = (float)Tools::getValue('priceTaxIncl');
$orderInvoice->total_shipping_tax_excl = (float)Tools::getValue('priceTaxExcl');
$orderInvoice->total_paid_tax_excl = $order->total_paid_tax_excl;
$orderInvoice->total_paid_tax_incl = $order->total_paid;
if(!$orderInvoice->update())
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
}
Context::getContext()->smarty->assign(array(
'order' => $order,
'currency' => new Currency($order->id_currency),
'link' => Context::getContext()->link
));
if (version_compare(_PS_VERSION_, '1.7', '>')) {
smartyRegisterFunction(Context::getContext()->smarty, 'function', 'displayPrice', array('Tools', 'displayPriceSmarty'));
}
$shippingHtml = '';
if (version_compare(_PS_VERSION_, '1.7.7', '<')) {
$shippingHtml = Context::getContext()->smarty->createTemplate(Tools::getValue('adminThemeDir').'/default/template/controllers/orders/_shipping.tpl', Context::getContext()->smarty)->fetch();
}
die(json_encode(array(
'errors' => false,
'order' => $order,
'shipping' => $order->getShipping(),
'shipping_html' => $shippingHtml,
'result' => $this->l('Shipping cost stored')
)));
}
// PAYMENTS
public function ajaxProcessSetPaymentDate() {
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$orderPayments = new PrestaShopCollection('OrderPayment');
$orderPayments->where('order_reference', '=', $order->reference);
$paymentIndex = 0;
foreach ($orderPayments as $key => $value) {
if ($paymentIndex == (int)Tools::getValue('id')) {
$orderPayment = new OrderPayment((int)$value->id);
$orderPayment->date_add = Tools::getValue('value');
if($orderPayment->update())
die(json_encode(array('errors' => false, 'value' => Tools::displayDate($orderPayment->date_add, null, true), 'result' => $this->l('Payment date stored'))));
}
$paymentIndex++;
}
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetPaymentMethod() {
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$orderPayments = new PrestaShopCollection('OrderPayment');
$orderPayments->where('order_reference', '=', $order->reference);
$paymentIndex = 0;
foreach ($orderPayments as $key => $value) {
if ($paymentIndex == (int)Tools::getValue('id')) {
$orderPayment = new OrderPayment((int)$value->id);
$orderPayment->payment_method = Tools::getValue('value');
if($orderPayment->update())
die(json_encode(array('errors' => false, 'result' => $this->l('Payment method stored'))));
}
$paymentIndex++;
}
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetPaymentTransactionID() {
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$orderPayments = new PrestaShopCollection('OrderPayment');
$orderPayments->where('order_reference', '=', $order->reference);
$paymentIndex = 0;
foreach ($orderPayments as $key => $value) {
if ($paymentIndex == (int)Tools::getValue('id')) {
$orderPayment = new OrderPayment((int)$value->id);
$orderPayment->transaction_id = Tools::getValue('value');
if ($orderPayment->update())
die(json_encode(array('errors' => false, 'result' => $this->l('Payment transaction ID stored'))));
}
$paymentIndex++;
}
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessSetPaymentAmount() {
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$orderPayments = new PrestaShopCollection('OrderPayment');
$orderPayments->where('order_reference', '=', $order->reference);
$paymentIndex = 0;
foreach ($orderPayments as $key => $value) {
if ($paymentIndex == (int)Tools::getValue('id')) {
$orderPayment = new OrderPayment((int)$value->id);
$order->total_paid_real -= (float)$orderPayment->amount;
$newOrderPaymentAmount = (float)str_replace(",", ".", Tools::getValue('value'));
if ($orderPayment->id_currency == $order->id_currency)
$order->total_paid_real += (float)$newOrderPaymentAmount;
else
$order->total_paid_real += Tools::ps_round(Tools::convertPrice((float)$newOrderPaymentAmount, $orderPayment->id_currency, false), 2);
$orderPayment->amount = (float)$newOrderPaymentAmount;
if($orderPayment->update() && $order->update())
die(json_encode(array('errors' => false, 'result' => $this->l('Payment amount stored'))));
}
$paymentIndex++;
}
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be stored')
)));
}
public function ajaxProcessDeletePayment() {
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$orderPayments = new PrestaShopCollection('OrderPayment');
$orderPayments->where('order_reference', '=', $order->reference);
$paymentIndex = 0;
foreach ($orderPayments as $key => $value) {
if ($paymentIndex == (int)Tools::getValue('number')) {
$orderPayment = new OrderPayment((int)$value->id);
$order->total_paid_real -= (float)$orderPayment->amount;
if ($orderPayment->delete() && $order->update())
die(json_encode(array('errors' => false, 'result' => $this->l('Order payment removed'))));
}
$paymentIndex++;
}
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be removed')
)));
}
//PRODUCTS
public function ajaxProcessChangeProductName() {
if (Tools::strlen(Tools::getValue('product_name')) > 0) {
$orderDetail = new OrderDetail((int)Tools::getValue('product_id_order_detail'));
if (!Validate::isLoadedObject($orderDetail)) {
die(json_encode(array(
'result' => $this->l('The Order Detail object cannot be loaded'),
'errors' => true
)));
}
$orderDetail->product_name = Tools::getValue('product_name');
if ($orderDetail->update())
die(json_encode(array('errors' => false, 'result' => $this->l('Product name changed'))));
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be changed')
)));
}
}
public function ajaxProcessSetProductName() {
if (Tools::strlen(Tools::getValue('value')) > 0) {
$orderDetail = new OrderDetail((int)Tools::getValue('id'));
if (!Validate::isLoadedObject($orderDetail)) {
die(json_encode(array(
'result' => $this->l('The Order Detail object cannot be loaded'),
'errors' => true
)));
}
$orderDetail->product_name = Tools::getValue('value');
if ($orderDetail->update())
die(json_encode(array('errors' => false, 'result' => $this->l('Product name changed'))));
die(json_encode(array(
'errors' => true,
'result' => $this->l('Can not be changed')
)));
}
}
public function ajaxProcessResendEmail() {
$order = new Order((int)Tools::getValue('id_order'));
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => $this->l('Order cannot be loaded'),
'errors' => true
)));
$customer = new Customer($order->id_customer);
$invoiceAddress = new Address($order->id_address_invoice);
$deliveryAddress = new Address($order->id_address_delivery);
$currency = new Currency($order->id_currency);
$productsOrder = $order->getProducts();
$discounts = $order->getCartRules();
$productsByInvoices = array();
foreach ($productsOrder as $product) {
if (!array_key_exists((int)$product['id_order_invoice'], $productsByInvoices)) {
$productsByInvoices[(int)$product['id_order_invoice']] = array();
}
array_push($productsByInvoices[$product['id_order_invoice']], $product);
}
$virtualProduct = true;
$carrierObj = new Carrier($order->id_carrier);
if (count($productsByInvoices)) {
$customizationQuantities = Customization::countQuantityByCart($order->id_cart);
$productsList = '';
$cartRulesList = '';
foreach ($productsByInvoices as $products) {
foreach ($products as $key => $product) {
$customizedDatas = Product::getAllCustomizedDatas((int)$order->id_cart);
$customizationQuantity = 0;
if (isset($customizedDatas[$product['product_id']][$product['product_attribute_id']])) {
if (array_key_exists($product['product_id'], $customizationQuantities)
&& array_key_exists($product['product_attribute_id'], $customizationQuantities[$product['product_id']])) {
$customizationQuantity = (int)$customizationQuantities[$product['product_id']][$product['product_attribute_id']];
}
$customizationText = '';
foreach ($customizedDatas[$product['product_id']][$product['product_attribute_id']][$order->id_address_delivery] as $customization) {
if (isset($customization['datas'][Product::CUSTOMIZE_TEXTFIELD])) {
foreach ($customization['datas'][Product::CUSTOMIZE_TEXTFIELD] as $text) {
$customizationText .= $text['name'].': '.$text['value'].'<br />';
}
}
if (isset($customization['datas'][Product::CUSTOMIZE_FILE])) {
$customizationText .= sprintf($this->l('%d image(s)'), count($customization['datas'][Product::CUSTOMIZE_FILE])).'<br />';
}
$customizationText .= '---<br />';
}
$customizationText = rtrim($customizationText, '---<br />');
$productsList .= '<tr style="background-color: '.($key % 2 ? '#DDE2E6' : '#EBECEE').';text-align: center;">
<td style="padding: 0.6em 0.4em;width: 15%;">'.$product['product_reference'].'</td>
<td style="padding: 0.6em 0.4em;width: 30%;"><strong>'.$product['product_name'].' - '.$this->l('Customized').(!empty($customizationText) ? ' - '.$customizationText : '').'</strong></td>
<td style="padding: 0.6em 0.4em; width: 20%;">'.Tools::displayPrice(Product::getTaxCalculationMethod() == PS_TAX_EXC ?Tools::ps_round($product['unit_price_tax_excl'], 2) : $product['unit_price_tax_incl'], $currency, false).'</td>
<td style="padding: 0.6em 0.4em; width: 15%;">'.$customizationQuantity.'</td>
<td style="padding: 0.6em 0.4em; width: 20%;">'.Tools::displayPrice($customizationQuantity * (Product::getTaxCalculationMethod() == PS_TAX_EXC ? Tools::ps_round($product['unit_price_tax_excl'], 2) : $product['unit_price_tax_incl']), $currency, false).'</td>
</tr>';
}
if (!$customizationQuantity || (int)$product['product_quantity'] > $customizationQuantity) {
$productsList .= '<tr style="background-color: '.($key % 2 ? '#DDE2E6' : '#EBECEE').';text-align: center;">
<td style="padding: 0.6em 0.4em;width: 15%;">'.$product['product_reference'].'</td>
<td style="padding: 0.6em 0.4em;width: 30%;"><strong>'.$product['product_name'].'</strong></td>
<td style="padding: 0.6em 0.4em; width: 20%;">'.Tools::displayPrice(Product::getTaxCalculationMethod() == PS_TAX_EXC ? Tools::ps_round($product['unit_price_tax_excl'], 2) : $product['unit_price_tax_incl'], $currency, false).'</td>
<td style="padding: 0.6em 0.4em; width: 15%;">'.((int)$product['product_quantity'] - $customizationQuantity).'</td>
<td style="padding: 0.6em 0.4em; width: 20%;">'.Tools::displayPrice(((int)$product['product_quantity'] - $customizationQuantity) * (Product::getTaxCalculationMethod() == PS_TAX_EXC ? Tools::ps_round($product['unit_price_tax_excl'], 2) : $product['unit_price_tax_incl']), $currency, false).'</td>
</tr>';
}
if ($product['download_hash'] == '') {
$virtualProduct &= false;
}
}
}
if ($discounts && count($discounts)) {
foreach ($discounts as $cartRule) {
$cartRulesList .= '<tr>
<td colspan="4" style="padding:0.6em 0.4em;text-align:right">'.$this->l('Voucher name:').' '.$cartRule['name'].'</td>
<td style="padding:0.6em 0.4em;text-align:right">'.($cartRule['value'] != 0.00 ? '-' : '').Tools::displayPrice($cartRule['value'], $currency, false).'</td>
</tr>';
}
}
}
$data = array(
'{firstname}' => $customer->firstname,
'{lastname}' => $customer->lastname,
'{email}' => $customer->email,
'{delivery_block_txt}' => AddressFormat::generateAddress($deliveryAddress, array('avoid' => array()), "\n", ' '),
'{invoice_block_txt}' => AddressFormat::generateAddress($invoiceAddress, array('avoid' => array()), "\n", ' '),
'{delivery_block_html}' => AddressFormat::generateAddress($deliveryAddress, array('avoid' => array()), "\n", ' ', array(
'firstname' => '<span style="font-weight:bold;">%s</span>',
'lastname' => '<span style="font-weight:bold;">%s</span>'
)),
'{invoice_block_html}' => AddressFormat::generateAddress($invoiceAddress, array('avoid' => array()), "\n", ' ', array(
'firstname' => '<span style="font-weight:bold;">%s</span>',
'lastname' => '<span style="font-weight:bold;">%s</span>'
)),
'{delivery_company}' => $deliveryAddress->company,
'{delivery_firstname}' => $deliveryAddress->firstname,
'{delivery_lastname}' => $deliveryAddress->lastname,
'{delivery_address1}' => $deliveryAddress->address1,
'{delivery_address2}' => $deliveryAddress->address2,
'{delivery_city}' => $deliveryAddress->city,
'{delivery_postal_code}' => $deliveryAddress->postcode,
'{delivery_country}' => $deliveryAddress->country,
'{delivery_state}' => $deliveryAddress->id_state ?'' : '',
'{delivery_phone}' => ($deliveryAddress->phone) ? $deliveryAddress->phone : $deliveryAddress->phone_mobile,
'{delivery_other}' => $deliveryAddress->other,
'{invoice_company}' => $invoiceAddress->company,
'{invoice_vat_number}' => $invoiceAddress->vat_number,
'{invoice_firstname}' => $invoiceAddress->firstname,
'{invoice_lastname}' => $invoiceAddress->lastname,
'{invoice_address2}' => $invoiceAddress->address2,
'{invoice_address1}' => $invoiceAddress->address1,
'{invoice_city}' => $invoiceAddress->city,
'{invoice_postal_code}' => $invoiceAddress->postcode,
'{invoice_country}' => $invoiceAddress->country,
'{invoice_state}' => $invoiceAddress->id_state ? /*$invoice_state->name*/'' : '',
'{invoice_phone}' => ($invoiceAddress->phone) ? $invoiceAddress->phone : $invoiceAddress->phone_mobile,
'{invoice_other}' => $invoiceAddress->other,
'{order_name}' => $order->getUniqReference(),
'{date}' => Tools::displayDate(date('Y-m-d H:i:s'), null, 1),
'{carrier}' => $virtualProduct ? $this->l('No carrier') : $carrierObj->name,
'{payment}' => Tools::substr($order->payment, 0, 32),
'{products}' => $productsList,
'{discounts}' => $cartRulesList,
'{total_paid}' => Tools::displayPrice($order->total_paid, $currency, false),
'{total_products}' => Tools::displayPrice($order->total_paid - $order->total_shipping - $order->total_wrapping + $order->total_discounts, $currency, false),
'{total_discounts}' => Tools::displayPrice($order->total_discounts, $currency, false),
'{total_shipping}' => Tools::displayPrice($order->total_shipping, $currency, false),
'{total_wrapping}' => Tools::displayPrice($order->total_wrapping, $currency, false)
);
if (Validate::isEmail($customer->email)) {
if (Mail::Send(
(int)Context::getContext()->language->id,
'order_change',
Mail::l('Order changed', (int)$order->id_lang),
$data,
$customer->email,
$customer->firstname.' '.$customer->lastname,
null,
null,
null,
null,
_PS_MODULE_DIR_.'modrefchange/mails/',
false,
(int)$order->id_shop
))
die(json_encode(array('errors' => false, 'result' => $this->l('Mail has been sended to customer'))));
}
die(json_encode(array(
'result' => $this->l('Mail can not be send'),
'errors' => true
)));
}
public function l($string, $class = NULL, $addslashes = false, $htmlentities = true) {
return Translate::getModuleTranslation('modrefchange', $string, 'admineditordercontroller');
}
//STATIC
// funkcia na preratanie celkovej hodnoty shippingu na objednavke a zaroven preratanie celkovej sumy objednavky
// ma vyznam zavolat len pokial objednavka obsahuje viac ako jeden shipping
public static function recalculateShippingCostAndTotalPaid($idOrder) {
$order = new Order((int)$idOrder);
if (!Validate::isLoadedObject($order))
die(json_encode(array(
'result' => Translate::getModuleTranslation('modrefchange', 'Order cannot be loaded', 'admineditordercontroller'),
'errors' => true
)));
$shippings = $order->getShipping();
if (count($shippings) > 0) {
$order_total_shipping_tax_incl = 0;
$order_total_shipping_tax_excl = 0;
foreach ($shippings as $key => $value) {
$order_total_shipping_tax_incl += $value['shipping_cost_tax_incl'];
$order_total_shipping_tax_excl += $value['shipping_cost_tax_excl'];
}
$order->total_shipping = (float)$order_total_shipping_tax_incl;
$order->total_shipping_tax_incl = (float)$order_total_shipping_tax_incl;
$order->total_shipping_tax_excl = (float)$order_total_shipping_tax_excl;
//vypocet dane na zaklade sumy s danou a sumy bez dane -> nepouzivam, pouzivam zadanu dan uzivatelom
//$order->carrier_tax_rate = ((float)$order_total_shipping_tax_excl <= 0 ? 0 : Tools::ps_round((($order_total_shipping_tax_incl - $order_total_shipping_tax_excl) / $order_total_shipping_tax_excl) * 100, 3));
$order->total_paid = (float)$order->total_products_wt + $order->total_shipping_tax_incl + $order->total_wrapping_tax_incl - $order->total_discounts_tax_incl;
$order->total_paid_tax_excl = (float)$order->total_products + $order->total_shipping_tax_excl + $order->total_wrapping_tax_excl - $order->total_discounts_tax_excl;
$order->total_paid_tax_incl = (float)$order->total_paid;
if(!$order->update())
die(json_encode(array(
'errors' => true,
'result' => Translate::getModuleTranslation('modrefchange', 'Can not be stored', 'admineditordercontroller')
)));
}
return $order;
}
public static function getOrderInvoiceNumbers($idOrder, $selectedField) {
$sql = 'SELECT '.pSQL($selectedField).' FROM '._DB_PREFIX_.'order_invoice WHERE id_order = '.(int)$idOrder;
return Db::getInstance()->ExecuteS($sql);
}
public static function getNextDocumentField($idOrder, $documentNumber, $fieldName, $oldNumberName) {
$sql = 'SELECT '.pSQL($fieldName).' FROM '._DB_PREFIX_.'order_invoice WHERE id_order = '.(int)$idOrder.' AND '.pSQL($oldNumberName).' != '.(int)$documentNumber.' ORDER BY date_add ASC';
return Db::getInstance()->getValue($sql);
}
}
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,304 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Zpráva z obchodu {shop_name}</title>
<style> @media only screen and (max-width: 300px){
body {
width:218px !important;
margin:auto !important;
}
thead, tbody{width: 100%}
.table {width:195px !important;margin:auto !important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}
span.title{font-size:20px !important;line-height: 23px !important}
span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}
td.box p{font-size: 12px !important;font-weight: bold !important;}
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
display: block !important;
}
.table-recap{width: 200px!important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
@media only screen and (min-width: 301px) and (max-width: 500px) {
body {width:425px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px !important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.table-recap tr th{font-size: 10px !important}
}
@media only screen and (min-width: 501px) and (max-width: 768px) {
body {width:478px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
}
@media only screen and (max-device-width: 480px) {
body {width:340px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px!important;}
.table-recap tr td, .conf_body td{text-align:center!important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
</style>
</head>
<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
<table class="table table-mail" style="width: 100%; margin-top: 10px; -moz-box-shadow: 0 0 5px #afafaf; -webkit-box-shadow: 0 0 5px #afafaf; -o-box-shadow: 0 0 5px #afafaf; box-shadow: 0 0 5px #afafaf; filter: progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5);">
<tbody>
<tr>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
<td style="padding: 7px 0;" align="center">
<table class="table" style="width: 100%;" bgcolor="#ffffff">
<tbody>
<tr>
<td class="logo" style="border-bottom: 4px solid #333333; padding: 7px 0;" align="center"><a title="{shop_name}" href="{shop_url}" style="color: #337ff1;"> <img src="{shop_logo}" alt="{shop_name}" /> </a></td>
</tr>
<tr>
<td class="titleblock" style="padding: 7px 0;" align="center"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span class="title" style="font-weight: 500; font-size: 28px; text-transform: uppercase; line-height: 33px;">Dobr&yacute; den {firstname} {lastname},</span><br />&nbsp; <span class="subtitle" style="font-weight: 500; font-size: 16px; text-transform: uppercase; line-height: 25px;"><span id="result_box" class="short_text" lang="cs"><span>Přepos&iacute;l&aacute;me</span> <span>v&aacute;m</span> <span>detail</span> <span>va&scaron;&iacute;</span> <span>objedn&aacute;vky</span></span> {order_name}</span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Detaily objedn&aacute;vky</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Objedn&aacute;vka:</strong></span> {order_name} Vytvořen&aacute; {date}<br /><br /> <span style="color: #333;"><strong>Platba:</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table table-recap" style="width: 100%; border-collapse: collapse;" bgcolor="#ffffff"><!-- Title -->
<tbody>
<tr><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">K&oacute;d</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Produkt</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">Jedn. cena</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Počet</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">Celkov&aacute; cena</th></tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{products}</td>
</tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{discounts}</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Produkty</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8" align="right">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_products} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Sleva</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_discounts} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>D&aacute;rkov&eacute; balen&iacute;</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_wrapping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Doručen&iacute;</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_shipping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Celkem zaplaceno</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: large;" size="4" face="Open-sans, sans-serif"> {total_paid} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Doručen&iacute;</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Dopravce:</strong></span> {carrier}<br /><br /> <span style="color: #333;"><strong>Platba:</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Dodac&iacute; adresa</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {delivery_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td class="space_address" style="padding: 7px 0;" width="20">&nbsp;</td>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Fakturačn&iacute; adresa</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {invoice_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span> Objedn&aacute;vku a doklad ke stažen&iacute; naleznete na na&scaron;ich str&aacute;nk&aacute;ch v sekci <a href="{history_url}" style="color: #337ff1;">"Historie objedn&aacute;vek"</a>, kterou naleznete po přihl&aacute;&scaron;en&iacute; do Va&scaron;eho &uacute;čtu kliknut&iacute;m na <a href="{my_account_url}" style="color: #337ff1;">"Můj &uacute;čet"</a>. </span> </span></td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span> Pokud m&aacute;te &uacute;čet n&aacute;v&scaron;těvn&iacute;ka, můžete sledovat sv&eacute; objedn&aacute;vky po kliknut&iacute; na odkaz <a href="{guest_tracking_url}?id_order={order_name}" style="color: #337ff1;">Sledov&aacute;n&iacute; pro n&aacute;v&scaron;těvn&iacute;ky</a>. </span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="footer" style="border-top: 4px solid #333333; padding: 7px 0;"><span>Obchod <a href="{shop_url}" style="color: #337ff1;">{shop_name}</a> funguje v syst&eacute;mu <a href="http://www.prestashop.com/" style="color: #337ff1;">PrestaShop&trade;</a></span></td>
</tr>
</tbody>
</table>
</td>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
</tr>
</tbody>
</table>
<p></p>
</body>
</html>
@@ -0,0 +1,64 @@
[{shop_url}]
Dobrý den {firstname} {lastname},
Přeposíláme vám detail vaší objednávky {order_name}
OBJEDNÁVKA: {order_name} Vytvořená {date}
PLATBA: {payment}
KÓD
PRODUKT
JEDN. CENA
POČET
CELKOVÁ CENA
{products_txt}
{discounts}
PRODUKTY
{total_products}
SLEVA
{total_discounts}
DÁRKOVÉ BALENÍ
{total_wrapping}
DORUČENÍ
{total_shipping}
CELKEM ZAPLACENO
{total_paid}
DOPRAVCE: {carrier}
PLATBA: {payment}
{delivery_block_txt}
{invoice_block_txt}
Objednávku a doklad ke stažení naleznete na našich stránkách
v sekci "Historie objednávek" [{history_url}],
kterou naleznete po přihlášení do Vašeho účtu kliknutím na
"Můj účet" [{my_account_url}].
Pokud máte účet návštěvníka, můžete sledovat své
objednávky po kliknutí na odkaz Sledování pro návštěvníky
[{guest_tracking_url}?id_order={order_name}].
Obchod {shop_name} [{shop_url}] funguje v
systému PrestaShop(tm) [http://www.prestashop.com/]
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,301 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Nachricht von {shop_name}</title>
<style> @media only screen and (max-width: 300px){
body {
width:218px !important;
margin:auto !important;
}
thead, tbody{width: 100%}
.table {width:195px !important;margin:auto !important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}
span.title{font-size:20px !important;line-height: 23px !important}
span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}
td.box p{font-size: 12px !important;font-weight: bold !important;}
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
display: block !important;
}
.table-recap{width: 200px!important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
@media only screen and (min-width: 301px) and (max-width: 500px) {
body {width:425px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px !important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.table-recap tr th{font-size: 10px !important}
}
@media only screen and (min-width: 501px) and (max-width: 768px) {
body {width:478px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
}
@media only screen and (max-device-width: 480px) {
body {width:340px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px!important;}
.table-recap tr td, .conf_body td{text-align:center!important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
</style>
</head>
<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
<table class="table table-mail" style="width: 100%; margin-top: 10px; -moz-box-shadow: 0 0 5px #afafaf; -webkit-box-shadow: 0 0 5px #afafaf; -o-box-shadow: 0 0 5px #afafaf; box-shadow: 0 0 5px #afafaf; filter: progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5);">
<tbody>
<tr>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
<td style="padding: 7px 0;" align="center">
<table class="table" style="width: 100%;" bgcolor="#ffffff">
<tbody>
<tr>
<td class="logo" style="border-bottom: 4px solid #333333; padding: 7px 0;" align="center"><a title="{shop_name}" href="{shop_url}" style="color: #337ff1;"> <img src="{shop_logo}" alt="{shop_name}" /> </a></td>
</tr>
<tr>
<td class="titleblock" style="padding: 7px 0;" align="center"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span class="title" style="font-weight: 500; font-size: 28px; text-transform: uppercase; line-height: 33px;">Hallo {firstname} {lastname},</span><br />&nbsp; <span class="subtitle" style="font-weight: 500; font-size: 16px; text-transform: uppercase; line-height: 25px;"><span id="result_box" lang="de"><span>Wir schicken Ihnen die Bestellinformationen aus der Bestellung </span></span>{order_name}</span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Details zu Ihrer Bestellung</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Bestellung:</strong></span> {order_name} vom {date}<br /><br /> <span style="color: #333;"><strong>Zahlung:</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table table-recap" style="width: 100%; border-collapse: collapse;" bgcolor="#ffffff"><!-- Title -->
<tbody>
<tr><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Artikel-Nr.</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Artikel</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">St&uuml;ckpreis</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Menge</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">Gesamtpreis</th></tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{products}</td>
</tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{discounts}</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Artikel</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8" align="right">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_products} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Rabatt</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_discounts} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Geschenkverpackung</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_wrapping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Versand</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_shipping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Gesamt</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: large;" size="4" face="Open-sans, sans-serif"> {total_paid} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Versand</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Versanddienst:</strong></span> {carrier}<br /><br /> <span style="color: #333;"><strong>Zahlung:</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Lieferadresse:</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {delivery_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td class="space_address" style="padding: 7px 0;" width="20">&nbsp;</td>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Rechnungsadresse</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {invoice_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span> Sie k&ouml;nnen diese Bestellung ansehen und Ihre Rechnung aus dem <a href="{history_url}" style="color: #337ff1;">"Bestellverlauf"</a> Ihres Kontos downloaden, indem Sie auf unserer Webseite auf <a href="{my_account_url}" style="color: #337ff1;">"Mein Konto"</a> klicken. </span> </span></td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span> Wenn Sie ein Gast-Konto haben, k&ouml;nnen Sie Ihre Bestellung im Abschnitt <a href="{guest_tracking_url}?id_order={order_name}" style="color: #337ff1;">"Bestellverfolgung Gast"</a> auf unserer Webseite verfolgen. </span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
</tr>
</tbody>
</table>
<p></p>
</body>
</html>
@@ -0,0 +1,61 @@
[{shop_url}]
Hallo {firstname} {lastname},
Wir schicken Ihnen die Bestellinformationen aus der Bestellung {order_name}
BESTELLUNG: {order_name} vom {date}
ZAHLUNG: {payment}
ARTIKEL-NR.
ARTIKEL
STÜCKPREIS
MENGE
GESAMTPREIS
{products_txt}
{discounts}
ARTIKEL
{total_products}
RABATT
{total_discounts}
GESCHENKVERPACKUNG
{total_wrapping}
VERSAND
{total_shipping}
GESAMT
{total_paid}
VERSANDDIENST: {carrier}
ZAHLUNG: {payment}
{delivery_block_txt}
{invoice_block_txt}
Sie können diese Bestellung ansehen und Ihre Rechnung aus dem
"Bestellverlauf" [{history_url}] Ihres Kontos
downloaden, indem Sie auf unserer Webseite auf "Mein Konto"
[{my_account_url}] klicken.
Wenn Sie ein Gast-Konto haben, können Sie Ihre Bestellung im
Abschnitt "Bestellverfolgung Gast"
[{guest_tracking_url}?id_order={order_name}] auf
unserer Webseite verfolgen.
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,371 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Message from {shop_name}</title>
<style> @media only screen and (max-width: 300px){
body {
width:218px !important;
margin:auto !important;
}
thead, tbody{width: 100%}
.table {width:195px !important;margin:auto !important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}
span.title{font-size:20px !important;line-height: 23px !important}
span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}
td.box p{font-size: 12px !important;font-weight: bold !important;}
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
display: block !important;
}
.table-recap{width: 200px!important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
@media only screen and (min-width: 301px) and (max-width: 500px) {
body {width:425px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px !important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.table-recap tr th{font-size: 10px !important}
}
@media only screen and (min-width: 501px) and (max-width: 768px) {
body {width:478px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
}
@media only screen and (max-device-width: 480px) {
body {width:340px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px!important;}
.table-recap tr td, .conf_body td{text-align:center!important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
</style>
</head>
<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
<table class="table table-mail" style="width:100%;margin-top:10px;-moz-box-shadow:0 0 5px #afafaf;-webkit-box-shadow:0 0 5px #afafaf;-o-box-shadow:0 0 5px #afafaf;box-shadow:0 0 5px #afafaf;filter:progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5)">
<tr>
<td class="space" style="width:20px;padding:7px 0">&nbsp;</td>
<td align="center" style="padding:7px 0">
<table class="table" bgcolor="#ffffff" style="width:100%">
<tr>
<td align="center" class="logo" style="border-bottom:4px solid #333333;padding:7px 0">
<a title="{shop_name}" href="{shop_url}" style="color:#337ff1">
<img src="{shop_logo}" alt="{shop_name}" />
</a>
</td>
</tr>
<tr>
<td align="center" class="titleblock" style="padding:7px 0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi {firstname} {lastname},</span><br/>
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">We are resending you order information from order {order_name}<br/> Below you can find order informations.</span>
</font>
</td>
</tr>
<tr>
<td class="space_footer" style="padding:0!important">&nbsp;</td>
</tr>
<tr>
<td class="box" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0">
<table class="table" style="width:100%">
<tr>
<td width="10" style="padding:7px 0">&nbsp;</td>
<td style="padding:7px 0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
Order details </p>
<span style="color:#777">
<span style="color:#333"><strong>Order:</strong></span> {order_name} Placed on {date}<br /><br />
<span style="color:#333"><strong>Payment:</strong></span> {payment}
</span>
</font>
</td>
<td width="10" style="padding:7px 0">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding:7px 0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<table class="table table-recap" bgcolor="#ffffff" style="width:100%;border-collapse:collapse"><!-- Title -->
<tr>
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Reference</th>
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Product</th>
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;" width="17%">Unit price</th>
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Quantity</th>
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;" width="17%">Total price</th>
</tr>
<tr>
<td colspan="5" style="border:1px solid #D6D4D4;text-align:center;color:#777;padding:7px 0">
&nbsp;&nbsp;{products}
</td>
</tr>
<tr>
<td colspan="5" style="border:1px solid #D6D4D4;text-align:center;color:#777;padding:7px 0">
&nbsp;&nbsp;{discounts}
</td>
</tr>
<tr class="conf_body">
<td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<strong>Products</strong>
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
<td bgcolor="#f8f8f8" align="right" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
{total_products}
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr class="conf_body">
<td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<strong>Discounts</strong>
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
<td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
{total_discounts}
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr class="conf_body">
<td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<strong>Gift-wrapping</strong>
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
<td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
{total_wrapping}
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr class="conf_body">
<td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<strong>Shipping</strong>
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
<td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
{total_shipping}
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr class="conf_body">
<td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<strong>Total paid</strong>
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
<td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="4" face="Open-sans, sans-serif" color="#555454">
{total_paid}
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</font>
</td>
</tr>
<tr>
<td class="box" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0">
<table class="table" style="width:100%">
<tr>
<td width="10" style="padding:7px 0">&nbsp;</td>
<td style="padding:7px 0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
Shipping </p>
<span style="color:#777">
<span style="color:#333"><strong>Carrier:</strong></span> {carrier}<br /><br />
<span style="color:#333"><strong>Payment:</strong></span> {payment}
</span>
</font>
</td>
<td width="10" style="padding:7px 0">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding:0!important">&nbsp;</td>
</tr>
<tr>
<td style="padding:7px 0">
<table class="table" style="width:100%">
<tr>
<td class="box address" width="310" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0">
<table class="table" style="width:100%">
<tr>
<td width="10" style="padding:7px 0">&nbsp;</td>
<td style="padding:7px 0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
Delivery address </p>
<span data-html-only="1" style="color:#777">
{delivery_block_html}
</span>
</font>
</td>
<td width="10" style="padding:7px 0">&nbsp;</td>
</tr>
</table>
</td>
<td width="20" class="space_address" style="padding:7px 0">&nbsp;</td>
<td class="box address" width="310" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0">
<table class="table" style="width:100%">
<tr>
<td width="10" style="padding:7px 0">&nbsp;</td>
<td style="padding:7px 0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
Billing address </p>
<span data-html-only="1" style="color:#777">
{invoice_block_html}
</span>
</font>
</td>
<td width="10" style="padding:7px 0">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding:0!important">&nbsp;</td>
</tr>
<tr>
<td class="linkbelow" style="padding:7px 0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<span>
You can review your order and download your invoice from the <a href="{history_url}" style="color:#337ff1">"Order history"</a> section of your customer account by clicking <a href="{my_account_url}" style="color:#337ff1">"My account"</a> on our shop. </span>
</font>
</td>
</tr>
<tr>
<td class="linkbelow" style="padding:7px 0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<span>
If you have a guest account, you can follow your order via the <a href="{guest_tracking_url}?id_order={order_name}" style="color:#337ff1">"Guest Tracking"</a> section on our shop. </span>
</font>
</td>
</tr>
<tr>
<td class="space_footer" style="padding:0!important">&nbsp;</td>
</tr>
<tr>
<td class="footer" style="border-top:4px solid #333333;padding:7px 0">
<span><a href="{shop_url}" style="color:#337ff1">{shop_name}</a> powered by <a href="http://www.prestashop.com/" style="color:#337ff1">PrestaShop&trade;</a></span>
</td>
</tr>
</table>
</td>
<td class="space" style="width:20px;padding:7px 0">&nbsp;</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,70 @@
[{shop_url}]
Hi {firstname} {lastname},
We are resending you order information from order {order_name} on {shop_name}. Below you can find order informations.
ORDER: {order_name} Placed on {date}
PAYMENT: {payment}
REFERENCE
PRODUCT
UNIT PRICE
QUANTITY
TOTAL PRICE
{products_txt}
{discounts}
PRODUCTS
{total_products}
DISCOUNTS
{total_discounts}
GIFT-WRAPPING
{total_wrapping}
SHIPPING
{total_shipping}
TOTAL TAX PAID
{total_tax_paid}
TOTAL PAID
{total_paid}
CARRIER: {carrier}
PAYMENT: {payment}
{delivery_block_txt}
{invoice_block_txt}
You can review your order and download your invoice from the
"Order history" [{history_url}] section of your
customer account by clicking "My account"
[{my_account_url}] on our shop.
If you have a guest account, you can follow your order via the
"Guest Tracking"
[{guest_tracking_url}?id_order={order_name}] section
on our shop.
{shop_name} [{shop_url}] powered by
PrestaShop(tm) [http://www.prestashop.com/]
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,304 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Mensaje desde {shop_name}</title>
<style> @media only screen and (max-width: 300px){
body {
width:218px !important;
margin:auto !important;
}
thead, tbody{width: 100%}
.table {width:195px !important;margin:auto !important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}
span.title{font-size:20px !important;line-height: 23px !important}
span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}
td.box p{font-size: 12px !important;font-weight: bold !important;}
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
display: block !important;
}
.table-recap{width: 200px!important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
@media only screen and (min-width: 301px) and (max-width: 500px) {
body {width:425px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px !important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.table-recap tr th{font-size: 10px !important}
}
@media only screen and (min-width: 501px) and (max-width: 768px) {
body {width:478px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
}
@media only screen and (max-device-width: 480px) {
body {width:340px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px!important;}
.table-recap tr td, .conf_body td{text-align:center!important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
</style>
</head>
<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
<table class="table table-mail" style="width: 100%; margin-top: 10px; -moz-box-shadow: 0 0 5px #afafaf; -webkit-box-shadow: 0 0 5px #afafaf; -o-box-shadow: 0 0 5px #afafaf; box-shadow: 0 0 5px #afafaf; filter: progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5);">
<tbody>
<tr>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
<td style="padding: 7px 0;" align="center">
<table class="table" style="width: 100%;" bgcolor="#ffffff">
<tbody>
<tr>
<td class="logo" style="border-bottom: 4px solid #333333; padding: 7px 0;" align="center"><a title="{shop_name}" href="{shop_url}" style="color: #337ff1;"> <img src="{shop_logo}" alt="{shop_name}" /> </a></td>
</tr>
<tr>
<td class="titleblock" style="padding: 7px 0;" align="center"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span class="title" style="font-weight: 500; font-size: 28px; text-transform: uppercase; line-height: 33px;">Hola {firstname} {lastname},</span><br />&nbsp; <span class="subtitle" style="font-weight: 500; font-size: 16px; text-transform: uppercase; line-height: 25px;"><span id="result_box" class="short_text" lang="es"><span class="alt-edited">Estamos enviando pide informaci&oacute;n de orden </span></span>{order_name}</span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Detalles del pedido</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Pedido:</strong></span> {order_name} Situado en {date}<br /><br /> <span style="color: #333;"><strong>Pago:</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table table-recap" style="width: 100%; border-collapse: collapse;" bgcolor="#ffffff"><!-- Title -->
<tbody>
<tr><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Referencia</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">producto</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">Precio unitario</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Cantidad</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">Precio total</th></tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{products}</td>
</tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{discounts}</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Productos</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8" align="right">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_products} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Descuentos</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_discounts} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Papel de regalo</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_wrapping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Transporte</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_shipping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Pago total</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: large;" size="4" face="Open-sans, sans-serif"> {total_paid} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Transporte</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Transportista:</strong></span> {carrier}<br /><br /> <span style="color: #333;"><strong>Pago:</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Direcci&oacute;n de entrega</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {delivery_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td class="space_address" style="padding: 7px 0;" width="20">&nbsp;</td>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Direcci&oacute;n de facturaci&oacute;n</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {invoice_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span> Usted puede revisar su pedido y descargar la factura desde <a href="{history_url}" style="color: #337ff1;">"Historial de pedidos"</a> de su cuenta de cliente, haga clic en <a href="{history_url}" style="color: #337ff1;"> nuestra tienda</a>. </span> </span></td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span> Si tiene una cuenta de invitado, puede seguir su pedido desde la secci&oacute;n: <a href="{guest_tracking_url}?id_order={order_name}" style="color: #337ff1;">"Seguimiento de invitado"</a> en nuestra tienda. </span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="footer" style="border-top: 4px solid #333333; padding: 7px 0;"><span><a href="{shop_url}" style="color: #337ff1;">{shop_name}</a> creado por <a href="http://www.prestashop.com/" style="color: #337ff1;">PrestaShop&trade;</a></span></td>
</tr>
</tbody>
</table>
</td>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
</tr>
</tbody>
</table>
<p></p>
</body>
</html>
@@ -0,0 +1,65 @@
[{shop_url}]
Hola {firstname} {lastname},
Estamos enviando pide información de orden {order_name}
PEDIDO: {order_name} Situado en {date}
PAGO: {payment}
REFERENCIA
PRODUCTO
PRECIO UNITARIO
CANTIDAD
PRECIO TOTAL
{products_txt}
{discounts}
PRODUCTOS
{total_products}
DESCUENTOS
{total_discounts}
PAPEL DE REGALO
{total_wrapping}
TRANSPORTE
{total_shipping}
PAGO TOTAL
{total_paid}
TRANSPORTISTA: {carrier}
PAGO: {payment}
{delivery_block_txt}
{invoice_block_txt}
Usted puede revisar su pedido y descargar la factura desde
"Historial de pedidos" [{history_url}] de su cuenta
de cliente, haga clic en [{my_account_url}] en
nuestra tienda.
Si tiene una cuenta de invitado, puede seguir su pedido desde la
sección: "Seguimiento de invitado"
[{guest_tracking_url}?id_order={order_name}] en
nuestra tienda.
{shop_name} [{shop_url}] creado por
PrestaShop(tm) [http://www.prestashop.com/]
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,304 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Message de {shop_name}</title>
<style> @media only screen and (max-width: 300px){
body {
width:218px !important;
margin:auto !important;
}
thead, tbody{width: 100%}
.table {width:195px !important;margin:auto !important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}
span.title{font-size:20px !important;line-height: 23px !important}
span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}
td.box p{font-size: 12px !important;font-weight: bold !important;}
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
display: block !important;
}
.table-recap{width: 200px!important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
@media only screen and (min-width: 301px) and (max-width: 500px) {
body {width:425px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px !important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.table-recap tr th{font-size: 10px !important}
}
@media only screen and (min-width: 501px) and (max-width: 768px) {
body {width:478px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
}
@media only screen and (max-device-width: 480px) {
body {width:340px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px!important;}
.table-recap tr td, .conf_body td{text-align:center!important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
</style>
</head>
<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
<table class="table table-mail" style="width: 100%; margin-top: 10px; -moz-box-shadow: 0 0 5px #afafaf; -webkit-box-shadow: 0 0 5px #afafaf; -o-box-shadow: 0 0 5px #afafaf; box-shadow: 0 0 5px #afafaf; filter: progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5);">
<tbody>
<tr>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
<td style="padding: 7px 0;" align="center">
<table class="table" style="width: 100%;" bgcolor="#ffffff">
<tbody>
<tr>
<td class="logo" style="border-bottom: 4px solid #333333; padding: 7px 0;" align="center"><a title="{shop_name}" href="{shop_url}" style="color: #337ff1;"> <img src="{shop_logo}" alt="{shop_name}" /> </a></td>
</tr>
<tr>
<td class="titleblock" style="padding: 7px 0;" align="center"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span class="title" style="font-weight: 500; font-size: 28px; text-transform: uppercase; line-height: 33px;">Bonjour {firstname} {lastname},</span><br />&nbsp; <span class="subtitle" style="font-weight: 500; font-size: 16px; text-transform: uppercase; line-height: 25px;"><span id="result_box" lang="fr"><span>Nous vous envoyons des informations de commande de la commande </span></span>{order_name}</span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">D&eacute;tails de la commande</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Commande :</strong></span> {order_name} pass&eacute;e le {date}<br /><br /> <span style="color: #333;"><strong>Paiement :</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table table-recap" style="width: 100%; border-collapse: collapse;" bgcolor="#ffffff"><!-- Title -->
<tbody>
<tr><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">R&eacute;f&eacute;rence</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Produit</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">Prix unitaire</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Quantit&eacute;</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">Prix total</th></tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{products}</td>
</tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{discounts}</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Produits</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8" align="right">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_products} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>R&eacute;ductions</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_discounts} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Paquet cadeau</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_wrapping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Livraison</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_shipping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Total pay&eacute;</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: large;" size="4" face="Open-sans, sans-serif"> {total_paid} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Livraison</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Transporteur :</strong></span> {carrier}<br /><br /> <span style="color: #333;"><strong>Paiement :</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Adresse de livraison</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {delivery_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td class="space_address" style="padding: 7px 0;" width="20">&nbsp;</td>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Adresse de facturation</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {invoice_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span> Vous pouvez acc&eacute;der &agrave; tout moment au suivi de votre commande et t&eacute;l&eacute;charger votre facture dans <a href="{history_url}" style="color: #337ff1;">"Historique des commandes"</a> de la rubrique <a href="{my_account_url}" style="color: #337ff1;">"Mon compte"</a> sur notre site. </span> </span></td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span> Si vous avez un compte invit&eacute;, vous pouvez suivre votre commande dans la section <a href="{guest_tracking_url}?id_order={order_name}" style="color: #337ff1;">"Suivi invit&eacute;"</a> de notre site. </span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="footer" style="border-top: 4px solid #333333; padding: 7px 0;"><span><a href="{shop_url}" style="color: #337ff1;">{shop_name}</a> r&eacute;alis&eacute; avec <a href="http://www.prestashop.com/" style="color: #337ff1;">PrestaShop&trade;</a></span></td>
</tr>
</tbody>
</table>
</td>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
</tr>
</tbody>
</table>
<p></p>
</body>
</html>
@@ -0,0 +1,65 @@
[{shop_url}]
Bonjour {firstname} {lastname},
Nous vous envoyons des informations de commande de la commande {order_name}
COMMANDE : {order_name} passée le {date}
PAIEMENT : {payment}
RÉFÉRENCE
PRODUIT
PRIX UNITAIRE
QUANTITÉ
PRIX TOTAL
{products_txt}
{discounts}
PRODUITS
{total_products}
RÉDUCTIONS
{total_discounts}
PAQUET CADEAU
{total_wrapping}
LIVRAISON
{total_shipping}
TOTAL PAYÉ
{total_paid}
TRANSPORTEUR : {carrier}
PAIEMENT : {payment}
{delivery_block_txt}
{invoice_block_txt}
Vous pouvez accéder à tout moment au suivi de votre commande et
télécharger votre facture dans "Historique des commandes"
[{history_url}] de la rubrique "Mon compte"
[{my_account_url}] sur notre site.
Si vous avez un compte invité, vous pouvez suivre votre commande
dans la section "Suivi invité"
[{guest_tracking_url}?id_order={order_name}] de notre
site.
{shop_name} [{shop_url}] réalisé avec
PrestaShop(tm) [http://www.prestashop.com/]
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,301 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Messaggio da {shop_name}</title>
<style> @media only screen and (max-width: 300px){
body {
width:218px !important;
margin:auto !important;
}
thead, tbody{width: 100%}
.table {width:195px !important;margin:auto !important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}
span.title{font-size:20px !important;line-height: 23px !important}
span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}
td.box p{font-size: 12px !important;font-weight: bold !important;}
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
display: block !important;
}
.table-recap{width: 200px!important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
@media only screen and (min-width: 301px) and (max-width: 500px) {
body {width:425px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px !important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.table-recap tr th{font-size: 10px !important}
}
@media only screen and (min-width: 501px) and (max-width: 768px) {
body {width:478px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
}
@media only screen and (max-device-width: 480px) {
body {width:340px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px!important;}
.table-recap tr td, .conf_body td{text-align:center!important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
</style>
</head>
<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
<table class="table table-mail" style="width: 100%; margin-top: 10px; -moz-box-shadow: 0 0 5px #afafaf; -webkit-box-shadow: 0 0 5px #afafaf; -o-box-shadow: 0 0 5px #afafaf; box-shadow: 0 0 5px #afafaf; filter: progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5);">
<tbody>
<tr>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
<td style="padding: 7px 0;" align="center">
<table class="table" style="width: 100%;" bgcolor="#ffffff">
<tbody>
<tr>
<td class="logo" style="border-bottom: 4px solid #333333; padding: 7px 0;" align="center"><a title="{shop_name}" href="{shop_url}" style="color: #337ff1;"> <img src="{shop_logo}" alt="{shop_name}" /> </a></td>
</tr>
<tr>
<td class="titleblock" style="padding: 7px 0;" align="center"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span class="title" style="font-weight: 500; font-size: 28px; text-transform: uppercase; line-height: 33px;">Salve {firstname} {lastname},</span><br />&nbsp; <span class="subtitle" style="font-weight: 500; font-size: 16px; text-transform: uppercase; line-height: 25px;"><span id="result_box" lang="it"><span class="alt-edited">Stiamo inviando ordinate informazioni dall&#039;ordine </span></span>{order_name}</span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Dettagli dell&#039;ordine</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Ordine:</strong></span> {order_name} Effettuato su {date}<br /><br /> <span style="color: #333;"><strong>Pagamento:</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table table-recap" style="width: 100%; border-collapse: collapse;" bgcolor="#ffffff"><!-- Title -->
<tbody>
<tr><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Riferimento</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Prodotto</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">Prezzo unitario</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Quantit&agrave;</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">Prezzo totale</th></tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{products}</td>
</tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{discounts}</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Prodotti</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8" align="right">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_products} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Buoni sconto</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_discounts} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Confezione regalo</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_wrapping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Spedizione</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_shipping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Totale pagato</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: large;" size="4" face="Open-sans, sans-serif"> {total_paid} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Spedizione</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Vettore:</strong></span> {carrier}<br /><br /> <span style="color: #333;"><strong>Pagamento:</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Indirizzo di consegna</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {delivery_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td class="space_address" style="padding: 7px 0;" width="20">&nbsp;</td>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Indirizzo di fatturazione</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {invoice_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span> Puoi visualizzare il tuo ordine e scaricare la eventuale fattura dalla sezione <a href="{history_url}" style="color: #337ff1;">"Cronologia ordini"</a> nel tuo account utente cliccando su <a href="{my_account_url}" style="color: #337ff1;">"Il mio account"</a> all&#039;interno del sito. </span> </span></td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span> Se hai un account ospite, adesso puoi seguire il tuo ordine tramite la sezione <a href="{guest_tracking_url}?id_order={order_name}" style="color: #337ff1;">"Tracking Ospite"</a> sul nostro sito. </span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
</tr>
</tbody>
</table>
<p></p>
</body>
</html>
@@ -0,0 +1,62 @@
[{shop_url}]
Salve {firstname} {lastname},
Stiamo inviando ordinate informazioni dall'ordine {order_name}
ORDINE: {order_name} Effettuato su {date}
PAGAMENTO: {payment}
RIFERIMENTO
PRODOTTO
PREZZO UNITARIO
QUANTITÀ
PREZZO TOTALE
{products_txt}
{discounts}
PRODOTTI
{total_products}
BUONI SCONTO
{total_discounts}
CONFEZIONE REGALO
{total_wrapping}
SPEDIZIONE
{total_shipping}
TOTALE PAGATO
{total_paid}
VETTORE: {carrier}
PAGAMENTO: {payment}
{delivery_block_txt}
{invoice_block_txt}
Puoi visualizzare il tuo ordine e scaricare la eventuale fattura
dalla sezione "Cronologia ordini" [{history_url}] nel
tuo account utente cliccando su "Il mio account"
[{my_account_url}] all'interno del sito.
Se hai un account ospite, adesso puoi seguire il tuo ordine
tramite la sezione "Tracking Ospite"
[{guest_tracking_url}?id_order={order_name}] sul
nostro sito.
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,289 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Message from {shop_name}</title>
<style> @media only screen and (max-width: 300px){
body {
width:218px !important;
margin:auto !important;
}
thead, tbody{width: 100%}
.table {width:195px !important;margin:auto !important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}
span.title{font-size:20px !important;line-height: 23px !important}
span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}
td.box p{font-size: 12px !important;font-weight: bold !important;}
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
display: block !important;
}
.table-recap{width: 200px!important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
@media only screen and (min-width: 301px) and (max-width: 500px) {
body {width:425px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px !important;}
.table-recap tr td, .conf_body td{text-align:center !important;}
.table-recap tr th{font-size: 10px !important}
}
@media only screen and (min-width: 501px) and (max-width: 768px) {
body {width:478px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
}
@media only screen and (max-device-width: 480px) {
body {width:340px!important;margin:auto!important;}
thead, tbody{width: 100%}
.table {margin:auto!important;}
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
.table-recap{width: 295px!important;}
.table-recap tr td, .conf_body td{text-align:center!important;}
.address{display: block !important;margin-bottom: 10px !important;}
.space_address{display: none !important;}
}
</style>
</head>
<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
<table class="table table-mail" style="width: 100%; margin-top: 10px; -moz-box-shadow: 0 0 5px #afafaf; -webkit-box-shadow: 0 0 5px #afafaf; -o-box-shadow: 0 0 5px #afafaf; box-shadow: 0 0 5px #afafaf; filter: progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5);">
<tbody>
<tr>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
<td style="padding: 7px 0;" align="center">
<table class="table" style="width: 100%;" bgcolor="#ffffff">
<tbody>
<tr>
<td class="logo" style="border-bottom: 4px solid #333333; padding: 7px 0;" align="center"><a title="{shop_name}" href="{shop_url}" style="color: #337ff1;"> <img src="{shop_logo}" alt="{shop_name}" /> </a></td>
</tr>
<tr>
<td class="titleblock" style="padding: 7px 0;" align="center"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <span class="title" style="font-weight: 500; font-size: 28px; text-transform: uppercase; line-height: 33px;">Dobr&yacute; deň {firstname} {lastname},</span><br /> <span class="subtitle" style="font-weight: 500; font-size: 16px; text-transform: uppercase; line-height: 25px;">Preposielame v&aacute;m detail va&scaron;ej objedn&aacute;vky {order_name}</span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Detaily objedn&aacute;vky</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Objedn&aacute;vka:</strong></span> {order_name} Vytvoren&aacute; {date}<br /><br /> <span style="color: #333;"><strong>Platba:</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table table-recap" style="width: 100%; border-collapse: collapse;" bgcolor="#ffffff"><!-- Title -->
<tbody>
<tr><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">K&oacute;d</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Produkt</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">Jednotkov&aacute; cena</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" bgcolor="#f8f8f8">Množstvo</th><th style="border: 1px solid #D6D4D4; background-color: #fbfbfb; color: #333; font-family: Arial; font-size: 13px; padding: 10px;" width="17%" bgcolor="#f8f8f8">Cena celkom</th></tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{products}</td>
</tr>
<tr>
<td colspan="5" style="border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 7px 0;">&nbsp;&nbsp;{discounts}</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Produkty</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8" align="right">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_products} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Zľavy</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_discounts} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Darčekov&eacute; balenie</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_wrapping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Po&scaron;tovn&eacute;</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> {total_shipping} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="conf_body">
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"> <strong>Spolu zaplaten&eacute;</strong> </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 7px 0;" bgcolor="#f8f8f8">
<table class="table" style="width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
<td style="color: #333; padding: 0;" align="right"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: large;" size="4" face="Open-sans, sans-serif"> {total_paid} </span></td>
<td style="color: #333; padding: 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Po&scaron;tovn&eacute;</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span style="color: #777;"> <span style="color: #333;"><strong>Sp&ocirc;sob doručenia</strong></span> {carrier}<br /><br /> <span style="color: #333;"><strong>Platba:</strong></span> {payment} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">&nbsp;</td>
</tr>
<tr>
<td style="padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Doručovacia adresa</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {delivery_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td class="space_address" style="padding: 7px 0;" width="20">&nbsp;</td>
<td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
<td style="padding: 7px 0;">
<p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">Fakturačn&aacute; adresa</p>
<span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;" size="2" face="Open-sans, sans-serif"><span data-html-only="1" style="color: #777;"> {invoice_block_html} </span> </span></td>
<td style="padding: 7px 0;" width="10">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<td class="space" style="width: 20px; padding: 7px 0;">&nbsp;</td>
</tr>
</tbody>
</table>
<p></p>
</body>
</html>
@@ -0,0 +1,51 @@
[{shop_url}]
Dobrý deň {firstname} {lastname},
Preposielame Vám detail Vašej objednávky {order_name}
OBJEDNÁVKA: {order_name} Vytvorená {date}
PLATBA: {payment}
KÓD
PRODUKT
JEDNOTKOVÁ CENA
MNOŽSTVO
CENA CELKOM
{products_txt}
{discounts}
PRODUKTY
{total_products}
ZĽAVY
{total_discounts}
DARČEKOVÉ BALENIE
{total_wrapping}
POŠTOVNÉ
{total_shipping}
SPOLU ZAPLATENÉ
{total_paid}
SPÔSOB DORUČENIA {carrier}
PLATBA: {payment}
{delivery_block_txt}
{invoice_block_txt}
@@ -0,0 +1,992 @@
<?php
/**
* Module allow edit existing orders and set rules for automatically generating numbers for orders and other documents
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
if (!defined('_PS_VERSION_'))
exit;
require_once(_PS_MODULE_DIR_.'modrefchange/classes/DocumentReferences.php');
class ModRefChange extends Module
{
public function __construct()
{
$this->name = 'modrefchange';
$this->tab = 'administration';
$this->version = '6.1.12';
$this->author = 'Keshva';
$this->module_key = '37801fb306a536cc9f00aea584c2dcfc';
$this->need_instance = 0;
$this->ps_versions_compliancy = array('min' => '1.6.0.4', 'max' => (version_compare(_PS_VERSION_, '1.6', '<') ? '1.6' : _PS_VERSION_ ));
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('Custom Order Reference Number , Invoice , delivery and credit slips number - Advanced');
$this->description = $this->l('Custom Order Reference Module allow edit existing orders and set rules for automatically generating numbers for orders and other documents');
$this->confirmUninstall = $this->l('Are you sure you want to uninstall?');
if (!Configuration::get($this->name))
$this->warning = $this->l('No name provided');
}
public function install()
{
if (file_exists(_PS_ROOT_DIR_.'/cache/class_index.php'))
unlink(_PS_ROOT_DIR_.'/cache/class_index.php');
$referenceNumbersData = $this->initReferenceNumbersData();
$employeesData = $this->initEmployeesData();
$counterNumberData = $this->initCounterNumberData();
$tab = new Tab();
$tab->active = 1;
$tab->class_name = 'AdminEditOrder';
$tab->name = array();
foreach (Language::getLanguages(true) as $lang)
$tab->name[$lang['id_lang']] = 'EditOrder';
$tab->id_parent = -1;
$tab->module = $this->name;
return $tab->add()
&& parent::install()
&& $this->registerHook('displayBackOfficeHeader')
&& $this->registerHook('displayAdminOrderMain')
&& $this->registerHook('actionObjectOrderSlipAddAfter')
&& $this->registerHook('actionObjectOrderInvoiceAddAfter')
&& $this->registerHook('actionAdminControllerSetMedia')
&& Configuration::updateGlobalValue($this->name, json_encode($referenceNumbersData))
&& Configuration::updateGlobalValue('counterNumberData', json_encode($counterNumberData))
&& Configuration::updateGlobalValue('employeesData', json_encode($employeesData))
&& $this->modifyTables(true);
}
public function uninstall()
{
if (file_exists(_PS_ROOT_DIR_.'/cache/class_index.php'))
unlink(_PS_ROOT_DIR_.'/cache/class_index.php');
$id_tab = (int)Tab::getIdFromClassName('AdminEditOrder');
if ($id_tab) {
$tab = new Tab($id_tab);
$tab->delete();
}
return parent::uninstall()
&& $this->unregisterHook('displayBackOfficeHeader')
&& $this->unregisterHook('displayAdminOrderMain')
&& $this->unregisterHook('actionObjectOrderSlipAddAfter')
&& $this->unregisterHook('actionObjectOrderInvoiceAddAfter')
&& $this->unregisterHook('actionAdminControllerSetMedia')
&& Configuration::deleteByName($this->name)
&& Configuration::deleteByName('counterNumberData')
&& Configuration::deleteByName('employeesData')
&& $this->modifyTables(false);
}
public function modifyTables($isInstall) {
if ($isInstall) {
if (!Db::getInstance()->execute("CREATE TABLE IF NOT EXISTS `"._DB_PREFIX_."document_references` (
`id_document_reference` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_document` int(10) unsigned NOT NULL,
`document_type` varchar(32) NOT NULL,
`reference` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id_document_reference`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;") ||
!Db::getInstance()->execute("CREATE TABLE IF NOT EXISTS `"._DB_PREFIX_."order_note` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_order` int(10) UNSIGNED NOT NULL,
`note` text,
`show_on_invoice` tinyint(1) NOT NULL DEFAULT '0',
`date_add` datetime NOT NULL,
`date_upd` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;"))
return false;
DocumentReferences::addMissingReferences();
return true;
}
else
return Db::getInstance()->execute('DROP TABLE IF EXISTS `'._DB_PREFIX_.'document_references`') && Db::getInstance()->execute('DROP TABLE IF EXISTS `'._DB_PREFIX_.'order_note`');
}
public function getContent() {
DocumentReferences::checkForCounterReset(0);
DocumentReferences::checkForCounterReset(1);
DocumentReferences::checkForCounterReset(2);
DocumentReferences::checkForCounterReset(3);
$getAllCounterData = json_decode(Configuration::getGlobalValue('counterNumberData'), true);
if (Tools::isSubmit('submitCustomReferenceNumber')) {
$settingsUpdated = '';
$settingsUpdated .= $this->displayConfirmation($this->l('Settings updated'));
$this->storeReferenceNumbers();
return $settingsUpdated . $this->displayList() . $this->getAssetsList() . $this->displayEmployees();
}
else if (Tools::isSubmit('update' . $this->name)) {
return ((int)Tools::getValue('id_reference_number') == 1 ? $this->displayWarning($this->l('Make sure your final reference number is no longer than 9 characters, because it is database limit for storing.')) : '').$this->displayForm() . $this->getAssetsForm() . $this->getHowToUse();
}
else if (Tools::isSubmit('status' . $this->name)) {
$settingsUpdated = '';
$settingsUpdated .= $this->displayConfirmation($this->l('Settings updated'));
$this->setReferenceNumberStatus();
return $settingsUpdated . $this->displayList() . $this->getAssetsList() . $this->displayEmployees();
}
else if (Tools::isSubmit('submitEmployees')) {
$settingsUpdated = '';
$settingsUpdated .= $this->displayConfirmation($this->l('Settings updated'));
$this->storeEmployees();
return $settingsUpdated . $this->displayList() . $this->getAssetsList() . $this->displayEmployees();
}
else
return $this->displayList() . $this->getAssetsList() . $this->displayEmployees();
}
protected function displayList()
{
$this->fields_list = array();
$this->fields_list['id_reference_number'] = array(
'title' => $this->l('#'),
'type' => 'hidden',
'search' => false,
'orderby' => false,
);
$this->fields_list['reference_number_name'] = array(
'title' => $this->l('Reference number type'),
'type' => 'text',
'search' => false,
'orderby' => false
);
if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP)
$this->fields_list['reference_number_name'] = array(
'title' => $this->l('Reference number of'),
'type' => 'text',
'search' => false,
'orderby' => false
);
$this->fields_list['reference_number_format'] = array(
'title' => $this->l('Reference number format'),
'type' => 'text',
'search' => false,
'orderby' => false
);
$this->fields_list['activate_reference_number'] = array(
'title' => $this->l('Status'),
'active' => 'status',
'type' => 'bool',
'filter' => false,
'search' => false
);
$helper = new HelperList();
$helper->shopLinkType = '';
$helper->simple_header = false;
$helper->identifier = 'id_reference_number';
$helper->actions = array('edit');
$helper->show_toolbar = false;
$helper->title = $this->l('Set automatically generated reference numbers for orders, invoices, delivery slips and credit slips');
$helper->table = $this->name;
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->currentIndex = AdminController::$currentIndex.'&configure='.$this->name;
return $helper->generateList(json_decode(Configuration::get($this->name), true), $this->fields_list);
}
public function displayForm()
{
$default_lang = (int)Configuration::get('PS_LANG_DEFAULT');
$helper = new Helper();
$selectRandomLength = array(
array(
'id_option' => '1',
'name' => 1
),
array(
'id_option' => '2',
'name' => 2
),
array(
'id_option' => '3',
'name' => 3
),
array(
'id_option' => '4',
'name' => 4
),
array(
'id_option' => '5',
'name' => 5
),
array(
'id_option' => '6',
'name' => 6
),
array(
'id_option' => '7',
'name' => 7
),
array(
'id_option' => '8',
'name' => 8
),
array(
'id_option' => '9',
'name' => 9
),
);
$selectCounterLength = array(
array(
'id_option' => '2',
'name' => 2
),
array(
'id_option' => '3',
'name' => 3
),
array(
'id_option' => '4',
'name' => 4
),
array(
'id_option' => '5',
'name' => 5
),
array(
'id_option' => '6',
'name' => 6
),
array(
'id_option' => '7',
'name' => 7
),
array(
'id_option' => '8',
'name' => 8
),
array(
'id_option' => '9',
'name' => 9
)
);
$fields_form = array();
$fields_form[0]['form'] = array(
'legend' => array(
'title' => $this->l('Settings'),
),
'input' => array(
array(
'type'=>'radio',
'label' => $this->l('Activate this reference number:'),
'name' => 'activate_reference_number',
'required' => false,
'class' => 'activateReferenceNumber',
'is_bool' => true,
'values' => array(
array(
'id' => 'activate_reference_number_on',
'value' => true,
'label' => $this->l('Active')
),
array(
'id' => 'activate_reference_number_off',
'value' => false,
'label' => $this->l('Inactive')
)
),
),
array(
'type' => 'text',
'label' => $this->l('Reference number format'),
'name' => 'reference_number_format',
'class' => 'referenceNumberFormat',
'required' => false,
'desc' => $this->l('Enter the format of the reference number (e.g. : INV-{COUNTER}/{WEEK}). All available tags are display in "DESCRIPTION OF THE AVAILABLE TAGS" table.')
),
array(
'type' => 'select',
'label' => $this->l('Random number length:'),
'desc' => $this->l('Length of random number reference'),
'name' => 'random_number_length',
'required' => false,
'options' => array(
'query' => $selectRandomLength,
'id' => 'id_option',
'name' => 'name'
)
),
array(
'type' => 'select',
'label' => $this->l('Random alphabetic length:'),
'desc' => $this->l('Length of random alphabetic reference'),
'name' => 'random_alphabetic_length',
'required' => false,
'options' => array(
'query' => $selectRandomLength,
'id' => 'id_option',
'name' => 'name'
)
),
array(
'type' => 'select',
'label' => $this->l('Random alphanumeric length:'),
'desc' => $this->l('Length of random alphanumeric reference'),
'name' => 'random_alphanumeric_length',
'required' => false,
'options' => array(
'query' => $selectRandomLength,
'id' => 'id_option',
'name' => 'name'
)
),
array(
'type' => 'text',
'label' => $this->l('Counter number start at:'),
'desc' => $this->l('Starting value of counter reference. Each time you set this value to another, counter will be reset to retype value.'),
'class' => 'counterStartAt',
'name' => 'counter_start_at',
'required' => false
),
array(
'type' => 'text',
'label' => $this->l('Counter step by:'),
'desc' => $this->l('This field represent counter value rising. For example if you starting value is 10 and step by value is 5, the counter will generate this reference: 10, 15, 20, 25, ...'),
'class' => 'CounterIncrementBy',
'name' => 'counter_increment_by',
'required' => false
),
array(
'type'=>'radio',
'label' => $this->l('Intervals of reseting counter:'),
'desc' => $this->l('You can set how often will reset your counter automatically. Everytime after reset, counter value will set to number from "Counter number start at" field. If you choose 3rd or 4th option (reached selected number or reach selected date), system will automatically display field for entering the number or entering the date.'),
'name' => 'counter_reset_interval',
'required' => false,
'class' => 'ResetCounterInterval',
'values' => array(
array(
'id' => 'counter_reset_interval_week',
'value' => 0,
'label' => $this->l('Each week')
),
array(
'id' => 'counter_reset_interval_month',
'value' => 1,
'label' => $this->l('Each month')
),
array(
'id' => 'counter_reset_interval_year',
'value' => 2,
'label' => $this->l('Each year')
),
array(
'id' => 'counter_reset_interval_number',
'value' => 3,
'label' => $this->l('If counter value will reach selected number')
),
array(
'id' => 'counter_reset_interval_date',
'value' => 4,
'label' => $this->l('If date will reach selected date')
),
array(
'id' => 'counter_reset_interval_never',
'value' => 5,
'label' => $this->l('Never')
)
)
),
array(
'type' => 'text',
'label' => $this->l('Reset counter if value will reach number:'),
'desc' => $this->l('If counter will reach bigger number as you set in this field, counter value will automatically reset to value from "Counter number start at" field.'),
'class' => 'CounterResetNumber',
'name' => 'counter_reset_number',
'required' => false
),
array(
'type' => 'text',
'label' => $this->l('Reset counter if date will reach date:'),
'desc' => $this->l('If current date will reach this date, or later date as you set in this field, counter value will automatically reset to value from "Counter number start at" field. Format of date is "YYYY-MM-DD" (YEAR-MONTH-DAY).'),
'class' => 'CounterResetDate',
'name' => 'counter_reset_date',
'required' => false
),
array(
'type'=>'radio',
'label' => $this->l('Reset counter now:'),
'desc' => $this->l('You can reset actual counter value to value, which is set in "Counter number start at" field.'),
'name' => 'counter_reset_now',
'required' => false,
'class' => 'CounterResetNow',
'is_bool' => true,
'values' => array(
array(
'id' => 'counter_reset_now_on',
'value' => 1,
'label' => $this->l('Yes')
),
array(
'id' => 'counter_reset_now_off',
'value' => 0,
'label' => $this->l('No')
)
)
),
array(
'type'=>'radio',
'label' => $this->l('Set counter reference length:'),
'desc' => $this->l('If you want to get static length of counter value you can set counter reference length. If you set this field to "active", system will display options to set counter reference length. For example if you set this value to "5" and your current counter value will be "10", final counter value will look like this: 00010. For current counter value = "100", it will be 00100. For current counter value = "1000", it will be 01000. After save, you can see live preview on the top in "next counter value" info field.'),
'name' => 'counter_reference_length_in_use',
'required' => false,
'class' => 'CounterReferenceLength',
'is_bool' => true,
'values' => array(
array(
'id' => 'counter_reference_length_in_use_on',
'value' => 1,
'label' => $this->l('Active')
),
array(
'id' => 'counter_reference_length_in_use_off',
'value' => 0,
'label' => $this->l('Inactive')
)
)
),
array(
'type' => 'select',
'label' => $this->l('Counter length:'),
'desc' => $this->l('You can set length of final counter reference. If counter value length will be shorter as counter length, system automatically add zeros as prefix of counter value.'),
'name' => 'counter_reference_length',
'required' => false,
'options' => array(
'query' => $selectCounterLength,
'id' => 'id_option',
'name' => 'name'
)
),
array(
'type' => 'hidden',
'class' => 'counterActualValue',
'name' => 'counter_actual_value',
'required' => false
),
array(
'type' => 'hidden',
'class' => 'idReferenceNumber',
'name' => 'id_reference_number',
'required' => true
),
),
'submit' => array(
'title' => $this->l('Save'),
'name' => 'submitCustomReferenceNumber',
)
);
$id_reference_number = (int)Tools::getValue('id_reference_number');
$referenceNumbersData = json_decode(Configuration::get($this->name), true);
$getAllCounterData = json_decode(Configuration::getGlobalValue('counterNumberData'), true);
$helper = new HelperForm();
$helper->module = $this;
$helper->name_controller = $this->name;
$helper->identifier = $this->identifier;
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->currentIndex = AdminController::$currentIndex.'&configure='.$this->name;
$helper->default_form_language = $default_lang;
$helper->allow_employee_form_lang = $default_lang;
$helper->title = $this->displayName;
$helper->show_toolbar = false;
$helper->toolbar_scroll = false;
$helper->submit_action = 'submit'.$this->name;
$helper->tpl_vars = array(
'fields_value' => array_merge($referenceNumbersData[$id_reference_number - 1], $getAllCounterData[$id_reference_number - 1]),
'languages' => $this->context->controller->getLanguages(),
'id_language' => $this->context->language->id
);
return $helper->generateForm($fields_form);
}
private function displayEmployees() {
$fields_form = array();
$fields_form[0]['form'] = array(
'legend' => array(
'title' => $this->l('All Superadmins can edit existing order'),
),
'input' => array(),
'submit' => array(
'title' => $this->l('Save'),
'name' => 'submitEmployees',
)
);
$employees = $this->getEmployeesWithEmails();
if (count($employees) > 0) {
foreach ($employees as $key => $value) {
array_push($fields_form[0]['form']['input'], array(
'type' =>'checkbox',
'label' => '',
'name' => 'employee_'.$value['id_employee'],
'required' => false,
'class' => 'employees',
'values' => array(
'query' => array(
array(
'id_option' => '1',
'name' => $value['firstname']." ".$value['lastname'].' ('.$value['email'].')'
)
),
'id' => 'id_option',
'name' => 'name'
),
));
}
}
$helper = new HelperForm();
$helper->module = $this;
$helper->name_controller = $this->name;
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->currentIndex = AdminController::$currentIndex.'&configure='.$this->name;
$helper->default_form_language = (int)Configuration::get('PS_LANG_DEFAULT');
$helper->allow_employee_form_lang = true;
$helper->title = $this->displayName;
$helper->show_toolbar = false;
$helper->toolbar_scroll = false;
$helper->submit_action = 'submit'.$this->name;
$helper->tpl_vars = array(
'fields_value' => json_decode(Configuration::get('employeesData'), true),
'languages' => $this->context->controller->getLanguages(),
'id_language' => $this->context->language->id
);
return $helper->generateForm($fields_form);
}
public function hookDisplayBackOfficeHeader($params)
{
if ($this->context->controller instanceof AdminOrdersController) {
if (!Tools::getValue('ajax') && (int)Tools::getValue('id_order') > 0) {
DocumentReferences::addMissingReferences((int)Tools::getValue('id_order'));
$order = new Order((int)Tools::getValue('id_order'));
$invoice_collection = $order->getInvoicesCollection();
$invoices = array();
foreach ($invoice_collection as $invoice) {
$invoice->name = $invoice->getInvoiceNumberFormatted(Context::getContext()->language->id, (int)$order->id_shop);
$invoices[] = $invoice;
}
$iso = $this->context->language->iso_code;
$this->smarty->assign(
array(
'editOrderAjaxLink' => $this->context->link->getAdminLink('AdminEditOrder'),
'adminThemeDir' => _PS_BO_ALL_THEMES_DIR_,
'documents' => json_encode(DocumentReferences::getAllDocuments()),
'invoices' => json_encode($invoices),
'carriers' => json_encode(Carrier::getCarriers($this->context->language->id, true, false, false, null, Carrier::PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE)),
'shipping' => '{"values" : '.json_encode($order->getShipping()).', "tax" : '.$order->carrier_tax_rate.'}',
'hasBeenDelivered' => $order->hasBeenDelivered(),
'orderNote' => json_encode($this->getOrderNote($order->id)),
'psVersionLess1607' => (version_compare(_PS_VERSION_, '1.6.0.7', '<') ? 1 : 0),
'psVersion17' => (version_compare(_PS_VERSION_, '1.7', '>') ? 1 : 0),
'trans' => json_encode($this->orderEditTrans()),
'iso' => file_exists(_PS_CORE_DIR_.'/js/tiny_mce/langs/'.$iso.'.js') ? $iso : 'en',
'path_css' => _THEME_CSS_DIR_,
'ad' => __PS_BASE_URI__.basename(_PS_ADMIN_DIR_),
'idOrder' => (int)Tools::getValue('id_order')
)
);
return $this->display(__FILE__, 'hookDisplayBackOfficeHeader.tpl');
}
}
}
public function hookDisplayAdminOrderMain($params) {
if (!Tools::getValue('ajax') && version_compare(_PS_VERSION_, '1.7.7', '>=')) {
DocumentReferences::addMissingReferences((int)Tools::getValue('id_order'));
$order = new Order((int)Tools::getValue('id_order'));
$invoice_collection = $order->getInvoicesCollection();
$invoices = array();
foreach ($invoice_collection as $invoice) {
$invoice->name = $invoice->getInvoiceNumberFormatted(Context::getContext()->language->id, (int)$order->id_shop);
$invoices[] = $invoice;
}
$iso = $this->context->language->iso_code;
$this->smarty->assign(
array(
'editOrderAjaxLink' => $this->context->link->getAdminLink('AdminEditOrder'),
'adminThemeDir' => _PS_BO_ALL_THEMES_DIR_,
'documents' => json_encode(DocumentReferences::getAllDocuments()),
'invoices' => json_encode($invoices),
'carriers' => json_encode(Carrier::getCarriers($this->context->language->id, true, false, false, null, Carrier::PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE)),
'shipping' => '{"values" : '.json_encode($order->getShipping()).', "tax" : '.$order->carrier_tax_rate.'}',
'hasBeenDelivered' => $order->hasBeenDelivered(),
'orderNote' => json_encode($this->getOrderNote($order->id)),
'psVersionLess1607' => (version_compare(_PS_VERSION_, '1.6.0.7', '<') ? 1 : 0),
'psVersion17' => (version_compare(_PS_VERSION_, '1.7', '>') ? 1 : 0),
'trans' => json_encode($this->orderEditTrans()),
'iso' => file_exists(_PS_CORE_DIR_.'/js/tiny_mce/langs/'.$iso.'.js') ? $iso : 'en',
'path_css' => _THEME_CSS_DIR_,
'ad' => __PS_BASE_URI__.basename(_PS_ADMIN_DIR_),
'idOrder' => (int)$params['id_order']
)
);
return $this->display(__FILE__, 'hookDisplayBackOfficeHeader.tpl');
}
}
public function hookActionAdminControllerSetMedia()
{
if ($this->context->controller instanceof AdminOrdersController) {
if (!Tools::getValue('ajax') && (int)Tools::getValue('id_order') > 0) {
$this->context->controller->addCSS($this->_path.'/views/css/orderDetail.css');
if (!$this->employeeHasAccess($this->context->employee->id)) {
$this->context->controller->addCSS($this->_path.'/views/css/orderDetailNoPermission.css');
}
$this->context->controller->addJS(_PS_JS_DIR_.'tiny_mce/tiny_mce.js');
$this->context->controller->addJS(_PS_JS_DIR_.(version_compare(_PS_VERSION_, '1.6.0.11', '>') ? 'admin/' : '').'tinymce.inc.js');
$this->context->controller->addJS($this->_path.'views/js/orderDetail.js');
}
} else if (version_compare(_PS_VERSION_, '1.7.7', '>=') && Tools::getValue('controller') == 'AdminOrders' && !Tools::getValue('ajax')) {
$this->context->controller->addCSS($this->_path.'/views/css/orderDetail177X.css');
if (!$this->employeeHasAccess($this->context->employee->id)) {
$this->context->controller->addCSS($this->_path.'/views/css/orderDetailNoPermission.css');
}
$this->context->controller->addJS(_PS_JS_DIR_.'tiny_mce/tiny_mce.js');
$this->context->controller->addJS(_PS_JS_DIR_.(version_compare(_PS_VERSION_, '1.6.0.11', '>') ? 'admin/' : '').'tinymce.inc.js');
//$this->context->controller->addJquery();
$this->context->controller->addJqueryUI([
'ui.core',
'ui.widget',
]);
$this->context->controller->addJS([
_PS_JS_DIR_ . 'jquery/plugins/timepicker/jquery-ui-timepicker-addon.js',
]);
$this->context->controller->addJs($this->_path.'views/js/orderDetailGET177X.js');
$this->context->controller->addCSS([
_PS_JS_DIR_ . 'jquery/plugins/timepicker/jquery-ui-timepicker-addon.css',
]);
}
}
public function hookActionObjectOrderSlipAddAfter($params)
{
// generovanie cisla credit slip
DocumentReferences::storeReference('credit_slip', $params['object']->id_order, $params['object']->id);
}
public function hookActionObjectOrderInvoiceAddAfter($params)
{
// pokial sa pridava na objednavku viac ako jedna faktura tak sa generuje cislo faktury z tadeto
// tato situacia sa moze stat ked sa pridava novy produkt do objednavky a vybere sa ze ho treba dat na novu fakturu
// prva faktura sa vzdy genereuje cez pretazenu metodu Order->setInvoice()
if (DocumentReferences::orderInvoiceRecordsCountByOrderID($params['object']->id_order) > 1) {
DocumentReferences::storeReference('invoice', $params['object']->id_order, $params['object']->id);
}
}
private function storeReferenceNumbers()
{
$customReferenceNumbersArray = array();
$counterNumbersArray = array();
$id_reference_number = (int)Tools::getValue('id_reference_number');
$getAllReferenceNumberData = json_decode(Configuration::get($this->name), true);
$getAllCounterData = json_decode(Configuration::getGlobalValue('counterNumberData'), true);
$currentCustomOrderReferenceArray = $getAllReferenceNumberData[$id_reference_number - 1];
$currentCounterData = $getAllCounterData[$id_reference_number - 1];
$customReferenceNumbersArray['id_reference_number'] = $currentCustomOrderReferenceArray['id_reference_number'];
$customReferenceNumbersArray['activate_reference_number'] = Tools::getValue('activate_reference_number');
$customReferenceNumbersArray['reference_number_name'] = $currentCustomOrderReferenceArray['reference_number_name'];
$customReferenceNumbersArray['reference_number_format'] = Tools::getValue('reference_number_format');
$customReferenceNumbersArray['random_number_length'] = (int)Tools::getValue('random_number_length');
$customReferenceNumbersArray['random_alphabetic_length'] = (int)Tools::getValue('random_alphabetic_length');
$customReferenceNumbersArray['random_alphanumeric_length'] = (int)Tools::getValue('random_alphanumeric_length');
if ((int)Tools::getValue('counter_reset_now') || (int)Tools::getValue('counter_start_at') != $currentCounterData['counter_start_at'])
$counterNumbersArray['counter_actual_value'] = (int)Tools::getValue('counter_start_at');
else
$counterNumbersArray['counter_actual_value'] = (int)$currentCounterData['counter_actual_value'];
$counterNumbersArray['counter_reset_now'] = '0';
$counterNumbersArray['counter_start_at'] = (int)Tools::getValue('counter_start_at');
$counterNumbersArray['counter_increment_by'] = (int)Tools::getValue('counter_increment_by');
$counterNumbersArray['counter_reset_interval'] = (int)Tools::getValue('counter_reset_interval');
$counterNumbersArray['counter_reset_number'] = (int)Tools::getValue('counter_reset_number');
$counterNumbersArray['counter_reset_date'] = Tools::getValue('counter_reset_date');
$counterNumbersArray['counter_reference_length_in_use'] = (int)Tools::getValue('counter_reference_length_in_use');
$counterNumbersArray['counter_reference_length'] = (int)Tools::getValue('counter_reference_length');
$counterNumbersArray['counter_last_set_date'] = $currentCounterData['counter_last_set_date'];
$getAllReferenceNumberData[$id_reference_number - 1] = $customReferenceNumbersArray;
$getAllCounterData[$id_reference_number - 1] = $counterNumbersArray;
Configuration::updateValue($this->name, json_encode($getAllReferenceNumberData));
Configuration::updateGlobalValue('counterNumberData', json_encode($getAllCounterData));
}
private function storeEmployees()
{
$employees = Employee::getEmployees();
$employeesArray = array();
if (count($employees) > 0)
{
foreach ($employees as $key => $value)
{
$employee = new Employee($value['id_employee']);
if(!$employee->isSuperAdmin())
$employeesArray['employee_'.$value['id_employee'].'_1'] = Tools::getValue('employee_'.$value['id_employee'].'_1');
}
}
Configuration::updateValue('employeesData', json_encode($employeesArray));
}
private function setReferenceNumberStatus()
{
$id_reference_number = (int)Tools::getValue('id_reference_number');
$getAllReferenceNumberData = json_decode(Configuration::get($this->name), true);
if ($getAllReferenceNumberData[$id_reference_number - 1]['activate_reference_number'])
$getAllReferenceNumberData[$id_reference_number - 1]['activate_reference_number'] = false;
else
$getAllReferenceNumberData[$id_reference_number - 1]['activate_reference_number'] = true;
Configuration::updateValue($this->name, json_encode($getAllReferenceNumberData));
}
private function getAssetsForm()
{
$id_reference_number = (int)Tools::getValue('id_reference_number');
$getAllCounterData = json_decode(Configuration::getGlobalValue('counterNumberData'), true);
$currentCounterData = $getAllCounterData[$id_reference_number - 1];
$this->smarty->assign(
array(
'counterActualValue' => (int)$currentCounterData['counter_actual_value'],
'translate' => json_encode($this->orderEditTrans()),
'psLT1606' => version_compare(_PS_VERSION_, '1.6.0.6', '<'),
'modulePath' => $this->_path
)
);
return $this->display(__FILE__, 'assetsForm.tpl');
}
private function getAssetsList()
{
$this->smarty->assign(
array(
'translate' => json_encode($this->orderEditTrans()),
'modulePath' => $this->_path
)
);
return $this->display(__FILE__, 'assetsList.tpl');
}
private function getHowToUse()
{
$this->smarty->assign(
array(
'translate' => $this->orderEditTrans(),
)
);
return $this->display(__FILE__, 'howToUse.tpl');
}
private function initReferenceNumbersData()
{
$referenceNumbersData = array();
$referenceNumbersData[0] = array(
'id_reference_number' => 1,
'activate_reference_number' => true,
'reference_number_name' => 'Orders',
'reference_number_format' => 'ORD-{RANDOM_ALPHABETIC}',
'random_number_length' => '5',
'random_alphabetic_length' => '5',
'random_alphanumeric_length' => '5'
);
$referenceNumbersData[1] = array(
'id_reference_number' => 2,
'activate_reference_number' => true,
'reference_number_name' => 'Invoices',
'reference_number_format' => 'INV-{RANDOM_ALPHABETIC}',
'random_number_length' => '9',
'random_alphabetic_length' => '6',
'random_alphanumeric_length' => '6'
);
$referenceNumbersData[2] = array(
'id_reference_number' => 3,
'activate_reference_number' => true,
'reference_number_name' => 'Delivery slips',
'reference_number_format' => 'DEL-{RANDOM_ALPHABETIC}',
'random_number_length' => '9',
'random_alphabetic_length' => '6',
'random_alphanumeric_length' => '6'
);
$referenceNumbersData[3] = array(
'id_reference_number' => 4,
'activate_reference_number' => true,
'reference_number_name' => 'Credit slips',
'reference_number_format' => 'SLIP-{RANDOM_ALPHABETIC}',
'random_number_length' => '9',
'random_alphabetic_length' => '6',
'random_alphanumeric_length' => '6'
);
return $referenceNumbersData;
}
private function initCounterNumberData()
{
$counterNumberData = array();
$counterNumberData[0] = array(
'counter_start_at' => '',
'counter_increment_by' => '',
'counter_actual_value' => '',
'counter_reset_interval' => '5',
'counter_reset_number' => '',
'counter_reset_date' => '',
'counter_reset_now' => '0',
'counter_reference_length_in_use' => '0',
'counter_reference_length' => '4',
'counter_last_set_date' => date("Y-m-d")
);
$counterNumberData[1] = array(
'counter_start_at' => '',
'counter_increment_by' => '',
'counter_actual_value' => '',
'counter_reset_interval' => '5',
'counter_reset_number' => '',
'counter_reset_date' => '',
'counter_reset_now' => '0',
'counter_reference_length_in_use' => '0',
'counter_reference_length' => '4',
'counter_last_set_date' => date("Y-m-d")
);
$counterNumberData[2] = array(
'counter_start_at' => '',
'counter_increment_by' => '',
'counter_actual_value' => '',
'counter_reset_interval' => '5',
'counter_reset_number' => '',
'counter_reset_date' => '',
'counter_reset_now' => '0',
'counter_reference_length_in_use' => '0',
'counter_reference_length' => '4',
'counter_last_set_date' => date("Y-m-d")
);
$counterNumberData[3] = array(
'counter_start_at' => '',
'counter_increment_by' => '',
'counter_actual_value' => '',
'counter_reset_interval' => '5',
'counter_reset_number' => '',
'counter_reset_date' => '',
'counter_reset_now' => '0',
'counter_reference_length_in_use' => '0',
'counter_reference_length' => '4',
'counter_last_set_date' => date("Y-m-d")
);
return $counterNumberData;
}
private function initEmployeesData()
{
$employeesData = array();
$employees = Employee::getEmployees();
if (count($employees) > 0) {
foreach ($employees as $key => $value) {
$employee = new Employee($value['id_employee']);
if(!$employee->isSuperAdmin()) {
$employeesData['employee_'.$value['id_employee'].'_1'] = 'on';
}
}
}
return $employeesData;
}
private function getOrderNote($idOrder) {
$orderNote = array(
'note' => '',
'show_on_invoice' => 0
);
if ($row = Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'order_note WHERE id_order = '.(int)$idOrder)) {
$orderNote = array(
'note' => $row['note'],
'show_on_invoice' => $row['show_on_invoice']
);
}
return $orderNote;
}
private function getEmployeesWithEmails()
{
return Db::getInstance()->executeS('
SELECT `id_employee`, `firstname`, `lastname`, `email`
FROM `'._DB_PREFIX_.'employee`
WHERE `active` = 1 AND `id_profile` <> '.(int)_PS_ADMIN_PROFILE_.'
ORDER BY `lastname` ASC
');
}
private function employeeHasAccess($employeeId)
{
$editOrderProData = json_decode(Configuration::get('employeesData'), true);
$employees = Employee::getEmployees();
if (count($employees) > 0)
foreach ($employees as $key => $value)
{
$employee = new Employee((int)$value['id_employee']);
if((int)$value['id_employee'] == (int)$employeeId) {
if ($employee->isSuperAdmin()) {
return true;
}
if (array_key_exists('employee_'.$value['id_employee'].'_1', $editOrderProData)) {
if ($editOrderProData['employee_'.$value['id_employee'].'_1'] == 'on') {
return true;
}
}
}
}
return false;
}
private function orderEditTrans()
{
$trans = array();
$trans['cancel'] = $this->l('Cancel');
$trans['update'] = $this->l('Update');
$trans['remove'] = $this->l('Delete');
$trans['edit'] = $this->l('Edit');
$trans['add_product'] = $this->l('Add a product');
$trans['resend_email'] = $this->l('Resend email');
$trans['can_not_be_stored'] = $this->l('Can not be stored, maybe login session expired');
$trans['order_status_removed'] = $this->l('Order status can not be removed');
$trans['payment_removed'] = $this->l('Payment can not be removed');
$trans['document_removed'] = $this->l('Document can not be removed');
$trans['mail_can_not_be_send'] = $this->l('Mail can not be send');
$trans['tax_excl_price'] = $this->l('Tax Excl price');
$trans['tax_incl_price'] = $this->l('Tax Incl price');
$trans['tax'] = $this->l('Tax');
$trans['tax_excl'] = $this->l('Tax excl');
$trans['tax_incl'] = $this->l('Tax incl');
$trans['missing_employees'] = $this->l('You have to add one or more employees with no superadmin profile, to work with this section');
$trans['config_title'] = $this->l('Allow edit existing order functionality of this module also for these employees');
$trans['numberReferenceFormatError'] = $this->l('Counter number start at field or Counter step by field can not be empty and have to be a positive number');
$trans['counterResetNumberError'] = $this->l('Reached number can not be empty and have to be a positive number');
$trans['counterResetDateError'] = $this->l('Reached date can not be empty and date have to start from tomorrow');
$trans['numberReferenceFormatEmptyError'] = $this->l('Reference number format field can not be empty');
$trans['descOfAvailableTags'] = $this->l('DESCRIPTION OF THE AVAILABLE TAGS');
$trans['tagDescription'] = $this->l('Tag description');
$trans['tagRandomNumber'] = $this->l('This tag generate random number. If you use this tag, system automaticaly display field "Random number length" to select length of random number.');
$trans['tagAlphabeticRef'] = $this->l('This tag generate alphabetic reference. If you use this tag, system automaticaly display field "Random alphabetic length" to select length of random alphabetic reference.');
$trans['tagAlphanumericRef'] = $this->l('This tag generate alphanumeric (numbers and alphabetical characters together) reference. If you use this tag, system automaticaly display field "Random alphanumeric length" to select length of random alphanumeric reference.');
$trans['tagCounterValue'] = $this->l('This tag generated automatically counted values. You can choose starting value of counter and a step, which represent counter value rising. You can reset counter every time you want when you set "Counter number start at" field to another value.');
$trans['tagOrderID'] = $this->l('This tag generate order ID number.');
$trans['tagShopID'] = $this->l('This tag generate shop ID number.');
$trans['tagYearNumber'] = $this->l('This tag generate actual year number.');
$trans['tagYearNumberShort'] = $this->l('This tag generate shortcut of actual year, for example 15,16,17.');
$trans['tagMonthNumber'] = $this->l('This tag generate actual month number.');
$trans['tagWeekNumber'] = $this->l('This tag generate actual week number.');
$trans['tagDayInWeekNumber'] = $this->l('This tag generate actual day in week number.');
$trans['tagDayInMonthNumber'] = $this->l('This tag generate actual day in month number.');
$trans['orderNoteTitle'] = $this->l('Order Note');
$trans['orderNoteInInvoice'] = $this->l('Show this order note on invoice');
$trans['orderNoteStored'] = $this->l('Order note stored');
$trans['orderNoteNotStored'] = $this->l('Order note can not be stored');
$trans['save'] = $this->l('Save');
return $trans;
}
}
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,72 @@
<?php
/**
* Module allow edit existing orders and set rules for automatically generating numbers for orders and other documents
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
if (!defined('_PS_VERSION_'))
exit;
}
require_once(_PS_MODULE_DIR_.'modrefchange/classes/DocumentReferences.php');
class Order extends OrderCore
{
public function setInvoice($use_existing_payment = false)
{
if (!$this->hasInvoice()) {
parent::setInvoice($use_existing_payment);
DocumentReferences::storeReference('invoice', $this->id);
}
}
public function setDelivery()
{
$order_invoice_collection = $this->getInvoicesCollection();
foreach ($order_invoice_collection as $order_invoice) {
if ($order_invoice->delivery_number) {
continue;
}
DocumentReferences::storeReference('delivery_slip', $this->id, $order_invoice->id);
}
parent::setDelivery();
}
public static function generateReference()
{
return DocumentReferences::storeReference('order');
}
public function hasBeenDelivered()
{
if (version_compare(_PS_VERSION_, '1.7.7', '>=')) {
if (Context::getContext()->controller->controller_name == 'Admin') {
return false;
}
parent::hasBeenDelivered();
} else {
if (Tools::getIsset('action'))
if (Tools::getValue('action') == 'editProductOnOrder' || Tools::getValue('action') == 'deleteProductLine')
return false;
return parent::hasBeenDelivered();
}
}
public function hasBeenShipped()
{
if (version_compare(_PS_VERSION_, '1.7.7', '>=')) {
if (Context::getContext()->controller->controller_name == 'Admin') {
return false;
}
return parent::hasBeenShipped();
} else {
if (Tools::getIsset('action'))
if (Tools::getValue('action') == 'addProductOnOrder')
return false;
return parent::hasBeenShipped();
}
}
}
@@ -0,0 +1,26 @@
<?php
/**
* Module allow edit existing orders and set rules for automatically generating numbers for orders and other documents
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
if (!defined('_PS_VERSION_'))
exit;
}
require_once(_PS_MODULE_DIR_.'modrefchange/classes/DocumentReferences.php');
class OrderInvoice extends OrderInvoiceCore
{
public function getInvoiceNumberFormatted($id_lang, $id_shop = null, $oldFormat = false)
{
$invoiceNumber = DocumentReferences::getReference($this->id, 'invoice')['reference'];
if ($oldFormat || $invoiceNumber == NULL) {
return parent::getInvoiceNumberFormatted($id_lang, $id_shop);
}
return $invoiceNumber;
}
}
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,96 @@
<?php
/**
* Module allow edit existing orders and set rules for automatically generating numbers for orders and other documents
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
if (!defined('_PS_VERSION_'))
exit;
}
require_once(_PS_MODULE_DIR_.'modrefchange/classes/DocumentReferences.php');
class PDF extends PDFCore
{
public function render($display = true)
{
$render = false;
$this->pdf_renderer->setFontForLang(Context::getContext()->language->iso_code);
foreach ($this->objects as $object) {
if (version_compare(_PS_VERSION_, '1.6.1.4', '>'))
$this->pdf_renderer->startPageGroup();
$template = $this->getTemplateObject($object);
if (!$template) {
continue;
}
if (empty($this->filename)) {
$this->filename = $template->getFilename();
if ($template instanceof HTMLTemplateInvoice && $object instanceof OrderInvoice) {
if ($result = DocumentReferences::getReference($object->id, 'invoice')) {
$template->title = $result['reference'];
$this->filename = $result['reference'].'.pdf';
$orderNote = $this->getOrderNote($object->id_order);
$template->order_invoice->note .= ($orderNote['show_on_invoice'] ? $orderNote['note'] : '');
}
} else if ($template instanceof HTMLTemplateDeliverySlip && $object instanceof OrderInvoice) {
if ($result = DocumentReferences::getReference($object->id, 'delivery_slip')) {
$template->title = $result['reference'];
$this->filename = $result['reference'].'.pdf';
}
} else if ($object instanceof OrderSlip) {
if ($result = DocumentReferences::getReference($object->id, 'credit_slip')) {
$template->title = $result['reference'];
$this->filename = $result['reference'].'.pdf';
}
}
if (count($this->objects) > 1) {
$this->filename = $template->getBulkFilename();
}
}
if ($result = DocumentReferences::getReference($object->id, 'credit_slip')) {
$template->title = $result['reference'];
$this->filename = $result['reference'].'.pdf';
}
$template->assignHookData($object);
$this->pdf_renderer->createHeader($template->getHeader());
$this->pdf_renderer->createFooter($template->getFooter());
if (version_compare(_PS_VERSION_, '1.6.1.4', '>'))
$this->pdf_renderer->createPagination($template->getPagination());
$this->pdf_renderer->createContent($template->getContent());
$this->pdf_renderer->writePage();
$render = true;
unset($template);
}
if ($render) {
// clean the output buffer
if (ob_get_level() && ob_get_length() > 0) {
ob_clean();
}
return $this->pdf_renderer->render($this->filename, $display);
}
}
private function getOrderNote($idOrder) {
$orderNote = array(
'note' => '',
'show_on_invoice' => false
);
if ($row = Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'order_note WHERE id_order = '.(int)$idOrder)) {
$orderNote = array(
'note' => $row['note'],
'show_on_invoice' => ((int)$row['show_on_invoice'] == 1)
);
}
return $orderNote;
}
}
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,133 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{modrefchange}prestashop>editorderpro_dce878c5197f13a373554f5b936c6752'] = 'Pokročilý manažment objednávek';
$_MODULE['<{modrefchange}prestashop>editorderpro_97b58db6391c2279f62f7205fdc42c1a'] = 'Modul pro editaci stávajících objednávek a nastavování pravidel pro generování čísel objednávek, faktur, dodacích listů a dobropisů';
$_MODULE['<{modrefchange}prestashop>editorderpro_876f23178c29dc2552c0b48bf23cd9bd'] = 'Opravdu si přejete modul odinstalovat?';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f40e8817b005044250943f57a21c5e7'] = 'Nebyl zadán název';
$_MODULE['<{modrefchange}prestashop>editorderpro_c888438d14855d7d96a2724ee9c306bd'] = 'Nastavení byly upraveny';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6633ccfc9cb21a6028cb59123decac5'] = 'Ujistěte se, že finální referenční číslo objednávky nebude déle než 9 znaků, protože 9 znaků je databázový limit pro jeho uložení.';
$_MODULE['<{modrefchange}prestashop>editorderpro_01abfc750a0c942167651c40d088531d'] = '#';
$_MODULE['<{modrefchange}prestashop>editorderpro_a9c9fd8e8f271415162b090768e01237'] = 'Typ referenčního císla';
$_MODULE['<{modrefchange}prestashop>editorderpro_510429e4d9f015901d1f0816610209d5'] = 'Typ referenčního císla';
$_MODULE['<{modrefchange}prestashop>editorderpro_03ea72abb0a6e072b32271a4f7555c90'] = 'Formát referenčního čísla';
$_MODULE['<{modrefchange}prestashop>editorderpro_ec53a8c4f07baed5d8825072c89799be'] = 'Stav';
$_MODULE['<{modrefchange}prestashop>editorderpro_f9b81d667afe0f915668a54f6dac0793'] = 'Nastavení automatického generování referenčních čísel pro objednávky, faktrúry, dodací listy a dobropisy';
$_MODULE['<{modrefchange}prestashop>editorderpro_f4f70727dc34561dfde1a3c529b6205c'] = 'Nastavení';
$_MODULE['<{modrefchange}prestashop>editorderpro_638806528306bb6e6bc140386738a16b'] = 'Aktivovat toto referenční číslo';
$_MODULE['<{modrefchange}prestashop>editorderpro_4d3d769b812b6faa6b76e1a8abaece2d'] = 'Aktivní';
$_MODULE['<{modrefchange}prestashop>editorderpro_3cab03c00dbd11bc3569afa0748013f0'] = 'Neaktivní';
$_MODULE['<{modrefchange}prestashop>editorderpro_f5d39226a5c2d63eeff2862f51d4536b'] = 'Prostřednictvím tohoto pole si můžete zvolit formát generování referenčního čísla. Např. \"ORD- {COUNTER} / {WEEK}\". Pro jeho zadání můžete vpisovat libovolné znaky (i čísla) a také využívat \"tagy\", které budou systémem automaticky nahrazovány za potřebné údaje. Všechny dostupné tagy jsou definovány v tabulce \"POPIS VŠECH DOSTUPNÝCH tagů\".';
$_MODULE['<{modrefchange}prestashop>editorderpro_45a054d27bff3a52752d3804fbf65749'] = 'Délka náhodného čísla:';
$_MODULE['<{modrefchange}prestashop>editorderpro_fe08aabd97579e99588b96319c368e8f'] = 'Pole pro zvolení délky náhodného čísla';
$_MODULE['<{modrefchange}prestashop>editorderpro_227a7a3871604bfa72bff6d771292cb7'] = 'Délka náhodných znaků:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d2cef9592c4cafc1c4a4cc96f72b0e9'] = 'Pole pro zvolení délky náhodných znaků';
$_MODULE['<{modrefchange}prestashop>editorderpro_0c6692ca68dbbc5e196ea4b33e88dac4'] = 'Délka náhodných znaků ve spojení s náhodnými čísly:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c39207813ae1fdfa916356698ef1edb'] = 'Pole pro zvolení délky náhodných znaků ve spojení s náhodnými čísly';
$_MODULE['<{modrefchange}prestashop>editorderpro_ad1c7e7bab746d345a6a522ac91b9d9d'] = 'Počáteční číslo počítadla:';
$_MODULE['<{modrefchange}prestashop>editorderpro_edb55b9df368131a7ad56018611eb05f'] = 'Pole sloužící pro zadání počáteční hodnoty počítadla.';
$_MODULE['<{modrefchange}prestashop>editorderpro_697a15dd3150695a44e4994933858c9e'] = 'Vytvářet novou hodnotu počítadla přičtením čísla:';
$_MODULE['<{modrefchange}prestashop>editorderpro_3d92aa88d77ef381def20c601ca2a934'] = 'Pole sloužící pro zadání po jakých číslech bude vždy narůstat hodnota počítadla. Například můžete zadat do pole \"Počáteční číslo počítadla\" hodnotu 10 a do pole \"Vytvářet novou hodnotu počítadla přičtením čísla\" hodnotu 5. Po uložení takového nastavení BÚ pro počítadlo generované hodnoty: 10, 15, 20, 25, ...';
$_MODULE['<{modrefchange}prestashop>editorderpro_5584869d05b2d6773f18cd80555ab601'] = 'Interval resetování počítadla:';
$_MODULE['<{modrefchange}prestashop>editorderpro_83f5ba31a9bd4725f54c7b4c1370f7d7'] = 'Můžete si zvolit jak často bude automaticky resetováno vaše počítadlo. Po každém resetu bude počáteční hodnota počítadla nastavena na hodnotu z pole \"Počáteční číslo počítadla\". Pokud zvolíte možnost \"Pokud počítadlo dosáhne zvolené číslo\" nebo \"Pokud počítadlo dosáhne zvolený datum\", systém automatický zvolí pole pro zadání čísla nebo data.';
$_MODULE['<{modrefchange}prestashop>editorderpro_491373bd08ccbb9206533cd0b50cb670'] = 'Každý týden';
$_MODULE['<{modrefchange}prestashop>editorderpro_f311060064137e750ef3787c0619c1ee'] = 'Každý měsíc';
$_MODULE['<{modrefchange}prestashop>editorderpro_e3bc3b398894b8962590c2b84135dfeb'] = 'Každý rok';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d71cf381cdfc09960ee84eb82a7d9a5'] = 'Pokud počítadlo dosáhne zvolené číslo';
$_MODULE['<{modrefchange}prestashop>editorderpro_0ff7382405ebb494b79bc66cff1b4c1a'] = 'Pokud počítadlo dosáhne zvolený datum';
$_MODULE['<{modrefchange}prestashop>editorderpro_6e7b34fa59e1bd229b207892956dc41c'] = 'Nikdy';
$_MODULE['<{modrefchange}prestashop>editorderpro_9c1fe22b1f4907afd8f004510af64f5d'] = 'Resetovat počítadlo po dosažení zvoleného čísla';
$_MODULE['<{modrefchange}prestashop>editorderpro_cbd6e0d4c23b82544a92adce52ef82c9'] = 'Pokud hodnota čítače dosáhne větší číslo než je zadané v tomto poli, počítadlo bude automaticky resetovány na hodnotu z pole \"Počáteční číslo počítadla\".';
$_MODULE['<{modrefchange}prestashop>editorderpro_3da7adc2add629515c6ad06b99c0f311'] = 'Resetovat počítadlo po dosažení zvoleného data:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8681517e53a92632161699c8819c8e79'] = 'Pokud aktuální datum dosáhne nebo přesáhne zadaný datum, počítadlo bude automaticky resetovány na hodnotu z pole \"Počáteční číslo počítadla\". Formát data je \"YYYY-MM-DD\" (ROK-MĚSÍC-DEN).';
$_MODULE['<{modrefchange}prestashop>editorderpro_9360dc2a54ab9dcb22291f672fc05990'] = 'Resetovat počítadlo teď:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b78ac580b6302e71353be485781743cd'] = 'Můžete resetovat aktuální hodnotu počítadla na hodnotu z pole \"Počáteční číslo počítadla\".';
$_MODULE['<{modrefchange}prestashop>editorderpro_93cba07454f06a4a960172bbd6e2a435'] = 'Ano';
$_MODULE['<{modrefchange}prestashop>editorderpro_bafd7322c6e97d25b6299b5d6fe8920b'] = 'Ne';
$_MODULE['<{modrefchange}prestashop>editorderpro_1d518edad420fbb2aaba0e3e7958a6f6'] = 'Nastavit délku znaků v počítadle:';
$_MODULE['<{modrefchange}prestashop>editorderpro_ffb70d888876f75e4ca7035974b5b50d'] = 'Pokud potřebujete dosáhnout pevnou délku hodnoty počítadla, nastavte toto pole na hodnotu \"Aktivní\". Poté co nastavíte hodnotu na \"Aktivní\", systém automatický zobrazí výběrové pole pro zadání pevné délky znaků počítadla. Pokud v poli \"Pevná délka znaků počítadla\" zvolíte například hodnotu 5 a aktuální hodnota počítadla bude 10, finální hodnota počítadla v čísle faktury bude 00010. Pro hodnotu počítadla 100 to bude 00100. Po uložení hodnoty v poli \"Pevná délka znaků počítadla\", budete moci sledovat jakou ma aktuální hodnotu vaše počítadlo prostřednictvím pole \"Následující hodnota počítadla\".';
$_MODULE['<{modrefchange}prestashop>editorderpro_458ad6405b03126a90f4cd863d988402'] = 'Pevná délka znaků počítadla';
$_MODULE['<{modrefchange}prestashop>editorderpro_b6d6dbf41f68919a077264b2ab3c5ee3'] = 'Můžete nastavit statickou délku znaků počítadla. Pokud bude délka znaků počítadla nižší než pevná délka znaků počítadla, systém automaticky přidá nuly jako prefix před hodnotu počítadla.';
$_MODULE['<{modrefchange}prestashop>editorderpro_c9cc8cce247e49bae79f15173ce97354'] = 'Uložit';
$_MODULE['<{modrefchange}prestashop>editorderpro_e8c74439116885ac629e30866885587e'] = 'Všichni superadmini mohou editovat existující objednávku';
$_MODULE['<{modrefchange}prestashop>editorderpro_ea4788705e6873b424c65e91c2846b19'] = 'Zrušit';
$_MODULE['<{modrefchange}prestashop>editorderpro_06933067aafd48425d67bcb01bba5cb6'] = 'Upravit';
$_MODULE['<{modrefchange}prestashop>editorderpro_f2a6c498fb90ee345d997f888fce3b18'] = 'Smazat';
$_MODULE['<{modrefchange}prestashop>editorderpro_7dce122004969d56ae2e0245cb754d35'] = 'Editovat';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b6c6cda10a23d1bdc920f2e47e5f46f'] = 'Přidat produkt';
$_MODULE['<{modrefchange}prestashop>editorderpro_d71940f24ee38ee09f6e06b908480bcf'] = 'Přeposlat email';
$_MODULE['<{modrefchange}prestashop>editorderpro_86ae2b18dd51950f3a67d666de29780b'] = 'Hodnota se nezdařila uložit, zkuste prosím tvrdý refresh a případné opětovné přihlášení';
$_MODULE['<{modrefchange}prestashop>editorderpro_cc4f6f712649b87c1de37098c2e1eb25'] = 'Stav objednávky se nepodařilo odstranit';
$_MODULE['<{modrefchange}prestashop>editorderpro_0b03bb44fad2e902e15da5a33839bbad'] = 'Platba se nezdařila odstranit';
$_MODULE['<{modrefchange}prestashop>editorderpro_53a4b494f358210d077e013ade93da09'] = 'Dokument se nezdařil odstranit';
$_MODULE['<{modrefchange}prestashop>editorderpro_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'Email se nezdařil odstranit';
$_MODULE['<{modrefchange}prestashop>editorderpro_9917818785619ad58f6f18e893a23714'] = 'Cena bez DPH';
$_MODULE['<{modrefchange}prestashop>editorderpro_bbf9599605a9a9514178a8a4818c6b6e'] = 'Cena s DPH';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b78ac8eb158840e9638a3aeb26c4a9d'] = 'Daň';
$_MODULE['<{modrefchange}prestashop>editorderpro_edf33b78b2369be0801998238d9e4efd'] = 'bez DPH';
$_MODULE['<{modrefchange}prestashop>editorderpro_35c3a29e75a241b7a51593153d72cf2c'] = 's DPH';
$_MODULE['<{modrefchange}prestashop>editorderpro_e903d893c25e39ebda48806decd39330'] = 'Je třeba přidat jednoho nebo více zaměstnanců, kteří nemají status Superadmin pro práci s touto sekcí';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c979847c5a79bd3ab07a725e5c9ca65'] = 'Povolit funkcionalitu tohoto modulu pro editaci existující objednávky také pro tyto zaměstnance';
$_MODULE['<{modrefchange}prestashop>editorderpro_a3a4e466d73223cd9535a338fd4abfb7'] = 'Pole \"Počáteční číslo počítadla\" a \"Vytvářet novou hodnotu počítadla přičtením čísla\" nemohou zůstat nezadané a musí být celé reálná čísla';
$_MODULE['<{modrefchange}prestashop>editorderpro_05db6d4d3b440ef0f50d50275665d94b'] = 'Pole \"Resetovat počítadlo po dosažení zvoleného čísla\" nemůže zůstat nevyplněné a musí být reálné číslo';
$_MODULE['<{modrefchange}prestashop>editorderpro_10559dd5d89ee610e8eacf352e404ca9'] = 'Pole \"Resetovat počítadlo po dosažení zvoleného data\" nemůže zůstat nevyplněné a nejdřívější datum musí být zítřejší den';
$_MODULE['<{modrefchange}prestashop>editorderpro_d360969024d0aab340dfff2132334286'] = 'Formát čísla nemůže zůstat nevyplněný';
$_MODULE['<{modrefchange}prestashop>editorderpro_326e646d24dfc2b7630e279a70cc8769'] = 'POPIS VŠECH DOSTUPNÝCH tagů';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f82f9e287af0edc228b6bf3569246be'] = 'Popis tagu';
$_MODULE['<{modrefchange}prestashop>editorderpro_8bdc99b9308a02ca766251be15ecef2f'] = 'Tento tag generuje náhodné číslo. Pokud tento tag použijete, systém automaticky zobrazí pole \"Délka náhodného čísla\", pro zvolení délky náhodného čísla.';
$_MODULE['<{modrefchange}prestashop>editorderpro_09469f5387789c3ec5d742a2fef0b303'] = 'Tento tag generuje náhodné znaky. Pokud tento tag použijete, systém automaticky zobrazí pole \"Délka náhodných znaků\", pro zvolení délky náhodných znaků.';
$_MODULE['<{modrefchange}prestashop>editorderpro_c48fedaed1d0a7f6b761079b382af89d'] = 'Tento tag generuje náhodné znaky ve spojení s náhodnými čísly. Pokud tento tag použijete, systém automaticky zobrazí pole \"Délka náhodných znaků ve spojení s náhodnými čísly\", pro zvolení délky náhodných znaků ve spojení s náhodnými čísly.';
$_MODULE['<{modrefchange}prestashop>editorderpro_86aa4239e84ea2a4b018dbac2eec42e2'] = 'Tento tag generuje hodnotu počítadla. Počítadlo slouží jako rostoucí hodnota pro každé nové referenční číslo a například může nabývat hodnoty 1, 2, 3, 4, ... Pokud tento tag použijete, bude nutné zadat hodnotu pole \"Počáteční číslo počítadla\", pro zvolení počáteční hodnoty počítadla a hodnotu pole \"Vytvářet novou hodnotu počítadla přičtením čísla\", pro zadání po jakých číslech bude vždy narůstat hodnota počítadla.';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6aa3edc6ab7d36a9443c115e479737f'] = 'Tento tag generuje ID objednávky.';
$_MODULE['<{modrefchange}prestashop>editorderpro_86067b860051b7697253ee19fc7076b2'] = 'Tento tag generuje ID obchodu.';
$_MODULE['<{modrefchange}prestashop>editorderpro_219bd8ccddadbab95fc82fcec8189fd8'] = 'Tento tag generuje číslo aktuálního kalendářního roku.';
$_MODULE['<{modrefchange}prestashop>editorderpro_d47554725168b79c3c6b59ac99d42c41'] = 'Tento tag generuje zkratku čísla aktuálního kalendářního roku, například 15, 16, 17.';
$_MODULE['<{modrefchange}prestashop>editorderpro_1bb43cb86029d716010b4e7527da0db9'] = 'Tento tag generuje aktuální číslo měsíce.';
$_MODULE['<{modrefchange}prestashop>editorderpro_90b95b808818529ac04815c33d4f1476'] = 'Tento tag generuje aktuální číslo týdne v roce.';
$_MODULE['<{modrefchange}prestashop>editorderpro_27d6c76f72531a121371ee600e7f1901'] = 'Tento tag generuje aktuální číslo dne v týdnu.';
$_MODULE['<{modrefchange}prestashop>editorderpro_b3a81f8e103086c3b7d6c3cd0ff396ff'] = 'Tento tag generuje aktuální číslo dne v měsíci.';
$_MODULE['<{modrefchange}prestashop>editorderpro_91759b9f56ac9e3a92e21c7a6443aa77'] = 'Poznámka k objednávce';
$_MODULE['<{modrefchange}prestashop>editorderpro_56baadbd0e7bf71944fce65d4a21a180'] = 'Zobrazit tuto poznámku ve faktuře';
$_MODULE['<{modrefchange}prestashop>editorderpro_b90d9c0670c835799bb3f1dfa643ad46'] = 'Poznámka k objednávce byla uložena';
$_MODULE['<{modrefchange}prestashop>editorderpro_bda74d25f53aa0e9e505c9876a99bdcd'] = 'Poznámku k objednávce se nepodařilo uložit';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_8de966ad9f10d322cbf563d1ee9aee72'] = 'Objednávku se nepodařilo načíst';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7d85d64b37241f459f6d2c165ef533fe'] = 'Datum objednávky byl uložen';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_fe691cdc7b20a4e13d55399ea5e1f818'] = 'Hodnotu se nepodařilo uložit';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_738f17e1338cfb32672cdfef9a91a424'] = 'Číslo objednávky ma více než 9 znaků';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_aa4955ee788e9781589d85219dff905d'] = 'Stejné číslo objednávky již existuje';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c5deffe5fc37511c10d6a9316185ce13'] = 'Číslo objednávky bylo uloženo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_3e8167b90161f37c63a258741d38f985'] = 'Fakturu se nepodařilo načíst';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a3b172048fe4028472cbe3093c7e4476'] = 'Datum faktury byl uložen';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_745c3e34d4d4678199f8354ccfe761c6'] = 'Číslo faktury bylo uloženo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a2a42aaaa3108afcc43b00d1de281bd8'] = 'Datum dodání byl uložen';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_22607e70c00e0ad786f70fa6c70fad8e'] = 'Dodací číslo bylo uloženo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c360174185ff982e1613005c9b03c83e'] = 'Dobropis se nepodařilo načíst';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a70e98cb7160fab1c5b822da4c42c9b7'] = 'Dobropis byl uložen';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_6378eaaa4dd3eca0baa019dcd24ed2c3'] = 'Číslo dobropisu bylo uloženo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_be9bd4226d451ce0f6f91a5a6b7e2d08'] = 'Faktura byla vymazána';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_5619436626d4887922d6e71bda4927ea'] = 'Dodací list byl vymazán';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_99d5fd555e562ea371967371d57b1a99'] = 'Dobropis se nepodařilo načíst';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_64b720693953fd4d97b600401eca2159'] = 'Dobropis byl vymazán';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_b90d9c0670c835799bb3f1dfa643ad46'] = 'Poznámka k objednávce byla uložena';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_691d11a8ab14443c6ae18cad21f5d71a'] = 'Stav objednávky byl odstraněn';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_59c65b90bf83027d31300f3ec155ed5f'] = 'Odstranění se nepodařilo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_28fc7abd913b2aac32767442eeda8594'] = 'Přepravce se nepodařilo načíst';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_949909feacf42cd551e8b006cbec533e'] = 'Datum odeslání byl uložen';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d404787bd0dfafc976fb88482c127ed4'] = 'Dopravce byl uložen';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_31d342c033cf1751151a6ee53eb7dff7'] = 'Sledovací číslo bylo uloženo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_36db203440bfe960bb1daea51d1632a9'] = 'Cena dopravy byla uložena';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a5023ce5501398fc5570231ffa417979'] = 'Datum platby byl uložen';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_61cb392d835ed073242c3f10a88da726'] = 'Metoda platby byla uložena';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_cf1f9b61d9395e36975687e7fc49c44f'] = 'Transakční ID platby bylo uloženo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7ce03e1c4929e09a1bc48e4c8055b891'] = 'Cena platby byla uložena';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ab8ccc15c68adb4e29e659d882eefbed'] = 'Platba byla odstraněna';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e344ccefaf1f8505b231f3f974bed0b0'] = 'Objekt detailu objednávky se nepodařilo načíst';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_daa9fe00f2c5ddc8f1d3213e0c840b54'] = 'Název produktu byl změněn';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e51cb027a793524f243942d03e3ea69e'] = 'Hodnotu se nepodařilo změnit';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_26beb437d3323bd4bfb0811b3e891315'] = '%d obrázek (ky)';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c2808546f3e14d267d798f4e0e6f102e'] = 'Přizpůsobení';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_f3566b62fb3dddee617860e949c692f9'] = 'Název voucheru:';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ed13b3693357ebed3751cb71cb639e65'] = 'Žádný dopravce';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d489ae1c5db6ffbc1a1d3ddaf66f228f'] = 'Mail byl úspěšně odeslán zákazníkovi';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'Mail se nepodařilo odeslat';
@@ -0,0 +1,133 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{modrefchange}prestashop>editorderpro_dce878c5197f13a373554f5b936c6752'] = 'Fortgeschrittener Management der Bestellungen ';
$_MODULE['<{modrefchange}prestashop>editorderpro_97b58db6391c2279f62f7205fdc42c1a'] = 'Modul zum Editieren von existierenden Bestellungen und Einstellung von Regeln für die Generierung der Bestellungsnummern, Fakturen, Lieferscheinen und Gutschreiben ';
$_MODULE['<{modrefchange}prestashop>editorderpro_876f23178c29dc2552c0b48bf23cd9bd'] = 'Wünschen sie sich wirklich das Modul zu Deinstallieren? ';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f40e8817b005044250943f57a21c5e7'] = 'Name wurde nicht angegeben';
$_MODULE['<{modrefchange}prestashop>editorderpro_c888438d14855d7d96a2724ee9c306bd'] = 'Einstellungen wurden geändert ';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6633ccfc9cb21a6028cb59123decac5'] = 'Stellen Sie sicher, dass Ihre endgültige Referenznummer nicht länger als 9 Zeichen ist, da es sich um eine Datenbankgrenze für das Speichern handelt.';
$_MODULE['<{modrefchange}prestashop>editorderpro_01abfc750a0c942167651c40d088531d'] = '#';
$_MODULE['<{modrefchange}prestashop>editorderpro_a9c9fd8e8f271415162b090768e01237'] = 'Typ der Referenznummer';
$_MODULE['<{modrefchange}prestashop>editorderpro_510429e4d9f015901d1f0816610209d5'] = 'Typ der Referenznummer';
$_MODULE['<{modrefchange}prestashop>editorderpro_03ea72abb0a6e072b32271a4f7555c90'] = 'Format der Referenznummer';
$_MODULE['<{modrefchange}prestashop>editorderpro_ec53a8c4f07baed5d8825072c89799be'] = 'Der Stand';
$_MODULE['<{modrefchange}prestashop>editorderpro_f9b81d667afe0f915668a54f6dac0793'] = 'Einstellung automatischer Generierung von Referenzzahlen für Bestellungen, Fakturen, Lieferscheinen und Gutschreiben ';
$_MODULE['<{modrefchange}prestashop>editorderpro_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen ';
$_MODULE['<{modrefchange}prestashop>editorderpro_638806528306bb6e6bc140386738a16b'] = 'Diese Referenznummer aktivieren';
$_MODULE['<{modrefchange}prestashop>editorderpro_4d3d769b812b6faa6b76e1a8abaece2d'] = 'Aktiv';
$_MODULE['<{modrefchange}prestashop>editorderpro_3cab03c00dbd11bc3569afa0748013f0'] = 'Inaktiv';
$_MODULE['<{modrefchange}prestashop>editorderpro_f5d39226a5c2d63eeff2862f51d4536b'] = 'Durch dieses Feld können Sie das Format der generierten Referenznummer wählen. Z.B. “ ORD-{COUNTER}/{WEEK}“. Um es einzugeben können Sie beliebige Zeichen reinschreiben (auch Zahlen) und auch “tags“ nutzen, die das System automatisch für nötige Daten umtauscht. Alle verfügbaren tags sind definiert in der Tabelle “Beschreibung aller verfügbaren tags“. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_45a054d27bff3a52752d3804fbf65749'] = 'Länge der zufälligen Zahl:';
$_MODULE['<{modrefchange}prestashop>editorderpro_fe08aabd97579e99588b96319c368e8f'] = 'Feld für die Wahl der Länge der zufälligen Zahl';
$_MODULE['<{modrefchange}prestashop>editorderpro_227a7a3871604bfa72bff6d771292cb7'] = 'Länge der zufälligen Zeichen:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d2cef9592c4cafc1c4a4cc96f72b0e9'] = 'Feld für die Wahl der Länge der zufälligen Zeichen';
$_MODULE['<{modrefchange}prestashop>editorderpro_0c6692ca68dbbc5e196ea4b33e88dac4'] = 'Länge der zufälligen Zeichen in Verbindung mit zufälligen Zahlen:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c39207813ae1fdfa916356698ef1edb'] = 'Feld für die Wahl der Länge der zufälligen Zeichen in Verbindung mit zufälligen Zahlen';
$_MODULE['<{modrefchange}prestashop>editorderpro_ad1c7e7bab746d345a6a522ac91b9d9d'] = 'Neuen Wert des Rechners erzeugen durch Zuzählung der Nummer:';
$_MODULE['<{modrefchange}prestashop>editorderpro_edb55b9df368131a7ad56018611eb05f'] = 'Feld für die Eingabe des Anfangswertes des Rechners. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_697a15dd3150695a44e4994933858c9e'] = 'Neuen Wert des Rechners erzeugen durch Zuzählung der Nummer:';
$_MODULE['<{modrefchange}prestashop>editorderpro_3d92aa88d77ef381def20c601ca2a934'] = 'Das Feld für die Eingabe der Zahl, um die der Wert des Rechners immer steigern wird. Sie können z.B. in das Feld “Anfangswert des Rechners“ den Wert 10 und in das Feld “ Neuer Wert des Rechners durch Zuzählung der Nummer“ den Wert 5 eingeben. Nach Speicherung so einer Einstellung werden die Werte für den Rechner so generiert: 10, 15, 20, 25, … ';
$_MODULE['<{modrefchange}prestashop>editorderpro_5584869d05b2d6773f18cd80555ab601'] = 'Intervall des Rechner resett:';
$_MODULE['<{modrefchange}prestashop>editorderpro_83f5ba31a9bd4725f54c7b4c1370f7d7'] = 'Sie können wählen, wie oft Ihr Rechner automatisch resetten wird. Nach jedem Resett wird der Anfangswert auf den Wert der im Feld “Anfangswert des Rechners“ eingestellt. Wenn Sie “Wenn der Rechner die gewählte Zahl erreicht“ oder “Wenn der Rechner das gewählte Datum“ erreicht wählen, wird das System automatisch das Feld für die Eingabe der Zahl oder des Datums wählen. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_491373bd08ccbb9206533cd0b50cb670'] = 'Jede Woche';
$_MODULE['<{modrefchange}prestashop>editorderpro_f311060064137e750ef3787c0619c1ee'] = 'Jeden Monat';
$_MODULE['<{modrefchange}prestashop>editorderpro_e3bc3b398894b8962590c2b84135dfeb'] = 'Jedes Jahr';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d71cf381cdfc09960ee84eb82a7d9a5'] = 'Wenn der Rechner die gewählte Zahl erreicht ';
$_MODULE['<{modrefchange}prestashop>editorderpro_0ff7382405ebb494b79bc66cff1b4c1a'] = 'Wenn der Rechner das gewählte Datum erreicht ';
$_MODULE['<{modrefchange}prestashop>editorderpro_6e7b34fa59e1bd229b207892956dc41c'] = 'Nie';
$_MODULE['<{modrefchange}prestashop>editorderpro_9c1fe22b1f4907afd8f004510af64f5d'] = 'Rechner nach Erreichung gewählter Zahl Resetten:';
$_MODULE['<{modrefchange}prestashop>editorderpro_cbd6e0d4c23b82544a92adce52ef82c9'] = 'Wenn der Wert des Rechners eine höhere Zahl erreicht als die die in diesem Feld Eingegeben ist, wird Rechner automatisch auf den Wert Resettet, der im Feld “Anfangswert des Rechners“ eingegeben ist. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_3da7adc2add629515c6ad06b99c0f311'] = 'Rechner nach Erreichung des gewählter Datums Resetten:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8681517e53a92632161699c8819c8e79'] = 'Wenn das aktuelle Datum, das eingegebene Datum erreicht, oder überschreitet, wird der Rechner automatisch resettet auf den Wert im Feld “Anfangswert des Rechners“. Das Format des Datums ist \"YYYY-MM-DD\" (JAHR-MONAT-TAG). ';
$_MODULE['<{modrefchange}prestashop>editorderpro_9360dc2a54ab9dcb22291f672fc05990'] = 'Den Rechner jetzt Resetten:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b78ac580b6302e71353be485781743cd'] = 'Sie können den aktuellen Wert des Rechners auf den Wert im Feld “Anfangswert des Rechners“ resetten.';
$_MODULE['<{modrefchange}prestashop>editorderpro_93cba07454f06a4a960172bbd6e2a435'] = 'Ja';
$_MODULE['<{modrefchange}prestashop>editorderpro_bafd7322c6e97d25b6299b5d6fe8920b'] = 'Nein';
$_MODULE['<{modrefchange}prestashop>editorderpro_1d518edad420fbb2aaba0e3e7958a6f6'] = 'Die Zeichenlänge des Rechners einstellen:';
$_MODULE['<{modrefchange}prestashop>editorderpro_ffb70d888876f75e4ca7035974b5b50d'] = 'Wenn Sie es brauchen, eine feste Länge der Werte des Rechners zu erreichen, stellen Sie dieses Feld auf den Wert “Aktiv“. Nachdem Sie den Wert auf “Aktiv“ stellen, zeigt das System automatisch ein Auswahlfeld für die Eingabe einer festen Länge der Zeichen des Rechners. Wenn Sie im Feld “Feste Zeichenlänge des Rechners“ z.B. den Wert 5 wählen und der aktuelle Wert 10 ist, wird der finale Wert des Rechners in der Bestellnummer 00010 sein. Für einen Wert des Rechners von 100, wird es 00100 sein. Nach dem speichern des Werts im Feld “Feste Zeichenlänge des Rechners“, werden Sie den aktuellen Wert Ihres Rechners durch das Feld “Folgender Wert des Rechners“ beobachten können. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_458ad6405b03126a90f4cd863d988402'] = 'Feste Zeichenlänge des Rechners:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b6d6dbf41f68919a077264b2ab3c5ee3'] = 'Sie können eine statische Länge der Zeichen im Rechner einstellen. Wenn die Länge der Rechnerzeichen kurzer sein wird als die Feste Länge der Rechnerzeichen, wird das System Nullen als Präfix vor den Wert des Rechners zutun. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_c9cc8cce247e49bae79f15173ce97354'] = 'Speichern';
$_MODULE['<{modrefchange}prestashop>editorderpro_e8c74439116885ac629e30866885587e'] = 'Alle Super Admins können die existierende Bestellung editieren ';
$_MODULE['<{modrefchange}prestashop>editorderpro_ea4788705e6873b424c65e91c2846b19'] = 'Abbrechen';
$_MODULE['<{modrefchange}prestashop>editorderpro_06933067aafd48425d67bcb01bba5cb6'] = 'Bearbeiten';
$_MODULE['<{modrefchange}prestashop>editorderpro_f2a6c498fb90ee345d997f888fce3b18'] = 'Löschen';
$_MODULE['<{modrefchange}prestashop>editorderpro_7dce122004969d56ae2e0245cb754d35'] = 'Editieren';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b6c6cda10a23d1bdc920f2e47e5f46f'] = 'Produkt hinzufügen';
$_MODULE['<{modrefchange}prestashop>editorderpro_d71940f24ee38ee09f6e06b908480bcf'] = 'Mail senden';
$_MODULE['<{modrefchange}prestashop>editorderpro_86ae2b18dd51950f3a67d666de29780b'] = 'Der Wert konnte nicht gespeichert werden, versuchen Sie bitte einen harten Restart und neues Einloggen ';
$_MODULE['<{modrefchange}prestashop>editorderpro_cc4f6f712649b87c1de37098c2e1eb25'] = 'Stand der Bestellung konnte nicht entfernt werden';
$_MODULE['<{modrefchange}prestashop>editorderpro_0b03bb44fad2e902e15da5a33839bbad'] = 'Zahlung konnte nicht entfernt werden';
$_MODULE['<{modrefchange}prestashop>editorderpro_53a4b494f358210d077e013ade93da09'] = 'Dokument konnte nicht entfernt werden';
$_MODULE['<{modrefchange}prestashop>editorderpro_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'Mail konnte nicht gesendet werden';
$_MODULE['<{modrefchange}prestashop>editorderpro_9917818785619ad58f6f18e893a23714'] = 'Preis ohne MwSt.';
$_MODULE['<{modrefchange}prestashop>editorderpro_bbf9599605a9a9514178a8a4818c6b6e'] = 'Preis mit MwSt.';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b78ac8eb158840e9638a3aeb26c4a9d'] = 'Steuer (MwSt.)';
$_MODULE['<{modrefchange}prestashop>editorderpro_edf33b78b2369be0801998238d9e4efd'] = 'ohne MwSt.';
$_MODULE['<{modrefchange}prestashop>editorderpro_35c3a29e75a241b7a51593153d72cf2c'] = 'mit MwSt.';
$_MODULE['<{modrefchange}prestashop>editorderpro_e903d893c25e39ebda48806decd39330'] = 'Es ist nötig einen oder mehrere Angestellte hinzufügen, die nicht den Status Super Admins für die Arbeit mit dieser Sektion haben ';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c979847c5a79bd3ab07a725e5c9ca65'] = 'Die Funktionalität dieses Moduls zum editieren existierender Bestellungen auch für diese Angestellten freigeben ';
$_MODULE['<{modrefchange}prestashop>editorderpro_a3a4e466d73223cd9535a338fd4abfb7'] = 'Die Felder “Anfangswert des Rechners“ und “ Neuer Wert des Rechners durch Zuzählung der Nummer“ können nicht unausgefüllt bleiben und müssen ganze, reale Zahlen beinhalten. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_05db6d4d3b440ef0f50d50275665d94b'] = 'Das Feld “Rechner nach Erreichung der gewählten Zahl resetten“ darf nicht unausgefüllt bleiben und muss eine ganze, reale Zahl beinhalten.';
$_MODULE['<{modrefchange}prestashop>editorderpro_10559dd5d89ee610e8eacf352e404ca9'] = 'Das Feld “Rechner nach Erreichung des gewählten Datums resetten“ darf nicht unausgefüllt bleiben und das früheste Datum muss der nächste Tag sein.';
$_MODULE['<{modrefchange}prestashop>editorderpro_d360969024d0aab340dfff2132334286'] = 'Das Format der Faktur Nummer darf nicht unausgefüllt bleiben';
$_MODULE['<{modrefchange}prestashop>editorderpro_326e646d24dfc2b7630e279a70cc8769'] = 'BESCHREIBUNG ALLER VERFÜGBAREN TAGS';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f82f9e287af0edc228b6bf3569246be'] = 'Beschreibung des tags';
$_MODULE['<{modrefchange}prestashop>editorderpro_8bdc99b9308a02ca766251be15ecef2f'] = 'Dieser tag generiert zufällige Zahlen. Wenn Sie diesen tag nutzen, wird das System automatisch das Feld “Länge der zufälligen Zahl“ für die Wahl der Länge der zufälligen Zahl abbilden. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_09469f5387789c3ec5d742a2fef0b303'] = 'Dieser tag generiert zufällige Zeichen. Wenn Sie diesen tag nutzen, wird das System automatisch das Feld “Länge der zufälligen Zeichen“ für die Wahl der Länge der zufälligen Zeichen abbilden. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_c48fedaed1d0a7f6b761079b382af89d'] = 'Dieser tag generiert zufällige Zeichen in Verbindung mit zufälligen Zahlen. Wenn Sie diesen tag nutzen, wird das System automatisch das Feld “Länge der zufälligen Zeichen in Verbindung mit zufälligen Zahlen“ für die Wahl der Länge der zufälligen Zeichen in Verbindung mit Länge der zufälligen Zahlen abbilden. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_86aa4239e84ea2a4b018dbac2eec42e2'] = 'Dieser tag generiert den Wert des Rechners. Der Rechner dient als wachsender Wert für jede neue Referenznummer und kann z.B. Werte annehmen wie 1, 2, 3, 4, … Wenn Sie diesen tag nutzen, wird es nötig sein den Wert des Feldes “Anfangswert des Rechners“ einzugeben, für die Wahl des Anfangswertes des Rechners und dann den Wert des Feldes “Neuer Wert des Rechners durch Zuzählung der Nummer“ für die Eingabe der Zahl, mit der der Wert Steigern wird. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6aa3edc6ab7d36a9443c115e479737f'] = 'Dieser tag generiert die ID der Bestellung.';
$_MODULE['<{modrefchange}prestashop>editorderpro_86067b860051b7697253ee19fc7076b2'] = 'Dieser tag generiert die ID des Geschäfts.';
$_MODULE['<{modrefchange}prestashop>editorderpro_219bd8ccddadbab95fc82fcec8189fd8'] = 'Dieser tag generiert die Zahl des aktuellen Kalenderjahres.';
$_MODULE['<{modrefchange}prestashop>editorderpro_d47554725168b79c3c6b59ac99d42c41'] = 'Dieser tag generiert die Abkürzung des aktuellen Kalenderjahres, z.B. 15, 16, 17';
$_MODULE['<{modrefchange}prestashop>editorderpro_1bb43cb86029d716010b4e7527da0db9'] = 'Dieser tag generiert die aktuelle Zahl des Monats.';
$_MODULE['<{modrefchange}prestashop>editorderpro_90b95b808818529ac04815c33d4f1476'] = 'Dieser tag generiert die aktuelle Zahl der Woche im Jahr.';
$_MODULE['<{modrefchange}prestashop>editorderpro_27d6c76f72531a121371ee600e7f1901'] = 'Dieser tag generiert die aktuelle Zahl des Tages der Woche.';
$_MODULE['<{modrefchange}prestashop>editorderpro_b3a81f8e103086c3b7d6c3cd0ff396ff'] = 'Dieser tag generiert die aktuelle Zahl des Tages im Monat.';
$_MODULE['<{modrefchange}prestashop>editorderpro_91759b9f56ac9e3a92e21c7a6443aa77'] = 'bestellen Hinweis';
$_MODULE['<{modrefchange}prestashop>editorderpro_56baadbd0e7bf71944fce65d4a21a180'] = 'Zeigen Sie diesen Bestellschein auf der Rechnung an';
$_MODULE['<{modrefchange}prestashop>editorderpro_b90d9c0670c835799bb3f1dfa643ad46'] = 'Bestellschein gespeichert';
$_MODULE['<{modrefchange}prestashop>editorderpro_bda74d25f53aa0e9e505c9876a99bdcd'] = 'Bestellschein kann nicht gespeichert werden';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_8de966ad9f10d322cbf563d1ee9aee72'] = 'Bestellung konnte nicht geladen werden';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7d85d64b37241f459f6d2c165ef533fe'] = 'Datum der Bestellung wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_fe691cdc7b20a4e13d55399ea5e1f818'] = 'Das speichern ist fehlgeschlagen';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_738f17e1338cfb32672cdfef9a91a424'] = 'Die Nummer der Bestellung darf nicht mehr als 9 Zeichen haben';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_aa4955ee788e9781589d85219dff905d'] = 'Eigegebene Bestellung Nummer existiert nicht mehr';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c5deffe5fc37511c10d6a9316185ce13'] = 'Nummer der Bestellung wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_3e8167b90161f37c63a258741d38f985'] = 'Faktur konnte nicht geladen werden';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a3b172048fe4028472cbe3093c7e4476'] = 'Datum der Faktur wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_745c3e34d4d4678199f8354ccfe761c6'] = 'Nummer der Faktur wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a2a42aaaa3108afcc43b00d1de281bd8'] = 'Datum der Lieferung wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_22607e70c00e0ad786f70fa6c70fad8e'] = 'Nummer des Lieferscheins wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c360174185ff982e1613005c9b03c83e'] = 'Gutschreiben konnte nicht geladen werden';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a70e98cb7160fab1c5b822da4c42c9b7'] = 'Einzahlungsschein gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_6378eaaa4dd3eca0baa019dcd24ed2c3'] = 'Kreditscheinnummer gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_be9bd4226d451ce0f6f91a5a6b7e2d08'] = 'Rechnung erfolgreich gelöscht';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_5619436626d4887922d6e71bda4927ea'] = 'Lieferschein erfolgreich gelöscht';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_99d5fd555e562ea371967371d57b1a99'] = 'Bestellschein kann nicht geladen werden';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_64b720693953fd4d97b600401eca2159'] = 'Bestellschein erfolgreich gelöscht';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_b90d9c0670c835799bb3f1dfa643ad46'] = 'Bestellschein gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_691d11a8ab14443c6ae18cad21f5d71a'] = 'Statut der Bestellung wurde erfolgreich entfernt';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_59c65b90bf83027d31300f3ec155ed5f'] = 'Das entfernen ist fehlgeschlagen';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_28fc7abd913b2aac32767442eeda8594'] = 'Lieferung konnte nicht geladen werden';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_949909feacf42cd551e8b006cbec533e'] = 'Lieferdatum wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d404787bd0dfafc976fb88482c127ed4'] = 'Versandträger gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_31d342c033cf1751151a6ee53eb7dff7'] = 'Die Trecker Nummer der Lieferung wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_36db203440bfe960bb1daea51d1632a9'] = 'Preis der Lieferung wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a5023ce5501398fc5570231ffa417979'] = 'Datum der Zahlung wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_61cb392d835ed073242c3f10a88da726'] = 'Die Methode der Zahlung wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_cf1f9b61d9395e36975687e7fc49c44f'] = 'ID der Zahlungstransaktion wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7ce03e1c4929e09a1bc48e4c8055b891'] = 'Preis der Zahlung wurde gespeichert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ab8ccc15c68adb4e29e659d882eefbed'] = 'Zahlung wurde erfolgreich entfernt';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e344ccefaf1f8505b231f3f974bed0b0'] = 'Bestellung konnte nicht geladen werden';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_daa9fe00f2c5ddc8f1d3213e0c840b54'] = 'Name des Produkts wurde geändert';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e51cb027a793524f243942d03e3ea69e'] = 'Der Wert konnte nicht gespeichert werden, versuchen Sie bitte einen harten Restart und neues Einloggen';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_26beb437d3323bd4bfb0811b3e891315'] = '%d Bilder';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c2808546f3e14d267d798f4e0e6f102e'] = 'Anpassung';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_f3566b62fb3dddee617860e949c692f9'] = 'Name des Rabatt Gutschein:';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ed13b3693357ebed3751cb71cb639e65'] = 'Kein Spediteur';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d489ae1c5db6ffbc1a1d3ddaf66f228f'] = 'Mail wurde dem Kunden gesendet';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'Mail konnte nicht gesendet werden';
@@ -0,0 +1,133 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{modrefchange}prestashop>editorderpro_dce878c5197f13a373554f5b936c6752'] = 'Order Management PRO';
$_MODULE['<{modrefchange}prestashop>editorderpro_97b58db6391c2279f62f7205fdc42c1a'] = 'Module allow edit existing orders and set rules for automatically generating numbers for orders and other documents';
$_MODULE['<{modrefchange}prestashop>editorderpro_876f23178c29dc2552c0b48bf23cd9bd'] = 'Are you sure you want to uninstall?';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f40e8817b005044250943f57a21c5e7'] = 'No name provided';
$_MODULE['<{modrefchange}prestashop>editorderpro_c888438d14855d7d96a2724ee9c306bd'] = 'Settings updated';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6633ccfc9cb21a6028cb59123decac5'] = 'Make sure your final reference number is no longer than 9 characters, because it is database limit for storing.';
$_MODULE['<{modrefchange}prestashop>editorderpro_01abfc750a0c942167651c40d088531d'] = '#';
$_MODULE['<{modrefchange}prestashop>editorderpro_a9c9fd8e8f271415162b090768e01237'] = 'Reference number type';
$_MODULE['<{modrefchange}prestashop>editorderpro_510429e4d9f015901d1f0816610209d5'] = 'Reference number of';
$_MODULE['<{modrefchange}prestashop>editorderpro_03ea72abb0a6e072b32271a4f7555c90'] = 'Reference number format';
$_MODULE['<{modrefchange}prestashop>editorderpro_ec53a8c4f07baed5d8825072c89799be'] = 'Status';
$_MODULE['<{modrefchange}prestashop>editorderpro_f9b81d667afe0f915668a54f6dac0793'] = 'Set automatically generated reference numbers for orders, invoices, delivery slips and credit slips';
$_MODULE['<{modrefchange}prestashop>editorderpro_f4f70727dc34561dfde1a3c529b6205c'] = 'Settings';
$_MODULE['<{modrefchange}prestashop>editorderpro_638806528306bb6e6bc140386738a16b'] = 'Activate this reference number:';
$_MODULE['<{modrefchange}prestashop>editorderpro_4d3d769b812b6faa6b76e1a8abaece2d'] = 'Active';
$_MODULE['<{modrefchange}prestashop>editorderpro_3cab03c00dbd11bc3569afa0748013f0'] = 'Inactive';
$_MODULE['<{modrefchange}prestashop>editorderpro_f5d39226a5c2d63eeff2862f51d4536b'] = 'Enter the format of the reference number (e.g. : INV-{COUNTER}/{WEEK}). All available tags are display in \"DESCRIPTION OF THE AVAILABLE TAGS\" table.';
$_MODULE['<{modrefchange}prestashop>editorderpro_45a054d27bff3a52752d3804fbf65749'] = 'Random number length:';
$_MODULE['<{modrefchange}prestashop>editorderpro_fe08aabd97579e99588b96319c368e8f'] = 'Length of random number reference';
$_MODULE['<{modrefchange}prestashop>editorderpro_227a7a3871604bfa72bff6d771292cb7'] = 'Random alphabetic length:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d2cef9592c4cafc1c4a4cc96f72b0e9'] = 'Length of random alphabetic reference';
$_MODULE['<{modrefchange}prestashop>editorderpro_0c6692ca68dbbc5e196ea4b33e88dac4'] = 'Random alphanumeric length:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c39207813ae1fdfa916356698ef1edb'] = 'Length of random alphanumeric reference';
$_MODULE['<{modrefchange}prestashop>editorderpro_ad1c7e7bab746d345a6a522ac91b9d9d'] = 'Counter number start at:';
$_MODULE['<{modrefchange}prestashop>editorderpro_edb55b9df368131a7ad56018611eb05f'] = 'Starting value of counter reference. Each time you set this value to another, counter will be reset to retype value.';
$_MODULE['<{modrefchange}prestashop>editorderpro_697a15dd3150695a44e4994933858c9e'] = 'Counter step by:';
$_MODULE['<{modrefchange}prestashop>editorderpro_3d92aa88d77ef381def20c601ca2a934'] = 'This field represent counter value rising. For example if you starting value is 10 and step by value is 5, the counter will generate this reference: 10, 15, 20, 25, ...';
$_MODULE['<{modrefchange}prestashop>editorderpro_5584869d05b2d6773f18cd80555ab601'] = 'Intervals of reseting counter:';
$_MODULE['<{modrefchange}prestashop>editorderpro_83f5ba31a9bd4725f54c7b4c1370f7d7'] = 'You can set how often will reset your counter automatically. Everytime after reset, counter value will set to number from \"Counter number start at\" field. If you choose 3rd or 4th option (reached selected number or reach selected date), system will automatically display field for entering the number or entering the date.';
$_MODULE['<{modrefchange}prestashop>editorderpro_491373bd08ccbb9206533cd0b50cb670'] = 'Each week';
$_MODULE['<{modrefchange}prestashop>editorderpro_f311060064137e750ef3787c0619c1ee'] = 'Each month';
$_MODULE['<{modrefchange}prestashop>editorderpro_e3bc3b398894b8962590c2b84135dfeb'] = 'Each year';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d71cf381cdfc09960ee84eb82a7d9a5'] = 'If counter value will reach selected number';
$_MODULE['<{modrefchange}prestashop>editorderpro_0ff7382405ebb494b79bc66cff1b4c1a'] = 'If date will reach selected date';
$_MODULE['<{modrefchange}prestashop>editorderpro_6e7b34fa59e1bd229b207892956dc41c'] = 'Never';
$_MODULE['<{modrefchange}prestashop>editorderpro_9c1fe22b1f4907afd8f004510af64f5d'] = 'Reset counter if value will reach number:';
$_MODULE['<{modrefchange}prestashop>editorderpro_cbd6e0d4c23b82544a92adce52ef82c9'] = 'If counter will reach bigger number as you set in this field, counter value will automatically reset to value from \"Counter number start at\" field.';
$_MODULE['<{modrefchange}prestashop>editorderpro_3da7adc2add629515c6ad06b99c0f311'] = 'Reset counter if date will reach date:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8681517e53a92632161699c8819c8e79'] = 'If current date will reach this date, or later date as you set in this field, counter value will automatically reset to value from \"Counter number start at\" field. Format of date is \"YYYY-MM-DD\" (YEAR-MONTH-DAY).';
$_MODULE['<{modrefchange}prestashop>editorderpro_9360dc2a54ab9dcb22291f672fc05990'] = 'Reset counter now:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b78ac580b6302e71353be485781743cd'] = 'You can reset actual counter value to value, which is set in \"Counter number start at\" field.';
$_MODULE['<{modrefchange}prestashop>editorderpro_93cba07454f06a4a960172bbd6e2a435'] = 'Yes';
$_MODULE['<{modrefchange}prestashop>editorderpro_bafd7322c6e97d25b6299b5d6fe8920b'] = 'No';
$_MODULE['<{modrefchange}prestashop>editorderpro_1d518edad420fbb2aaba0e3e7958a6f6'] = 'Set counter reference length:';
$_MODULE['<{modrefchange}prestashop>editorderpro_ffb70d888876f75e4ca7035974b5b50d'] = 'If you want to get static length of counter value you can set counter reference length. If you set this field to \"active\", system will display options to set counter reference length. For example if you set this value to \"5\" and your current counter value will be \"10\", final counter value will look like this: 00010. For current counter value = \"100\", it will be 00100. For current counter value = \"1000\", it will be 01000. After save, you can see live preview on the top in \"next counter value\" info field.';
$_MODULE['<{modrefchange}prestashop>editorderpro_458ad6405b03126a90f4cd863d988402'] = 'Counter length:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b6d6dbf41f68919a077264b2ab3c5ee3'] = 'You can set length of final counter reference. If counter value length will be shorter as counter length, system automatically add zeros as prefix of counter value.';
$_MODULE['<{modrefchange}prestashop>editorderpro_c9cc8cce247e49bae79f15173ce97354'] = 'Save';
$_MODULE['<{modrefchange}prestashop>editorderpro_e8c74439116885ac629e30866885587e'] = 'All Superadmins can edit existing order';
$_MODULE['<{modrefchange}prestashop>editorderpro_ea4788705e6873b424c65e91c2846b19'] = 'Cancel';
$_MODULE['<{modrefchange}prestashop>editorderpro_06933067aafd48425d67bcb01bba5cb6'] = 'Update';
$_MODULE['<{modrefchange}prestashop>editorderpro_f2a6c498fb90ee345d997f888fce3b18'] = 'Delete';
$_MODULE['<{modrefchange}prestashop>editorderpro_7dce122004969d56ae2e0245cb754d35'] = 'Edit';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b6c6cda10a23d1bdc920f2e47e5f46f'] = 'Add a product';
$_MODULE['<{modrefchange}prestashop>editorderpro_d71940f24ee38ee09f6e06b908480bcf'] = 'Resend email';
$_MODULE['<{modrefchange}prestashop>editorderpro_86ae2b18dd51950f3a67d666de29780b'] = 'Can not be stored, maybe login session expired';
$_MODULE['<{modrefchange}prestashop>editorderpro_cc4f6f712649b87c1de37098c2e1eb25'] = 'Order status can not be removed';
$_MODULE['<{modrefchange}prestashop>editorderpro_0b03bb44fad2e902e15da5a33839bbad'] = 'Payment can not be removed';
$_MODULE['<{modrefchange}prestashop>editorderpro_53a4b494f358210d077e013ade93da09'] = 'Document can not be removed';
$_MODULE['<{modrefchange}prestashop>editorderpro_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'Mail can not be send';
$_MODULE['<{modrefchange}prestashop>editorderpro_9917818785619ad58f6f18e893a23714'] = 'Tax Excl price';
$_MODULE['<{modrefchange}prestashop>editorderpro_bbf9599605a9a9514178a8a4818c6b6e'] = 'Tax Incl price';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b78ac8eb158840e9638a3aeb26c4a9d'] = 'Tax';
$_MODULE['<{modrefchange}prestashop>editorderpro_edf33b78b2369be0801998238d9e4efd'] = 'Tax excl';
$_MODULE['<{modrefchange}prestashop>editorderpro_35c3a29e75a241b7a51593153d72cf2c'] = 'Tax incl';
$_MODULE['<{modrefchange}prestashop>editorderpro_e903d893c25e39ebda48806decd39330'] = 'You have to add one or more employees with no superadmin profile, to work with this section';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c979847c5a79bd3ab07a725e5c9ca65'] = 'Allow edit existing order functionality of this module also for these employees';
$_MODULE['<{modrefchange}prestashop>editorderpro_a3a4e466d73223cd9535a338fd4abfb7'] = 'Counter number start at field or Counter step by field can not be empty and have to be a positive number';
$_MODULE['<{modrefchange}prestashop>editorderpro_05db6d4d3b440ef0f50d50275665d94b'] = 'Reached number can not be empty and have to be a positive number';
$_MODULE['<{modrefchange}prestashop>editorderpro_10559dd5d89ee610e8eacf352e404ca9'] = 'Reached date can not be empty and date have to start from tomorrow';
$_MODULE['<{modrefchange}prestashop>editorderpro_d360969024d0aab340dfff2132334286'] = 'Reference number format field can not be empty';
$_MODULE['<{modrefchange}prestashop>editorderpro_326e646d24dfc2b7630e279a70cc8769'] = 'DESCRIPTION OF THE AVAILABLE TAGS';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f82f9e287af0edc228b6bf3569246be'] = 'Tag description';
$_MODULE['<{modrefchange}prestashop>editorderpro_8bdc99b9308a02ca766251be15ecef2f'] = 'This tag generate random number. If you use this tag, system automaticaly display field \"Random number length\" to select length of random number.';
$_MODULE['<{modrefchange}prestashop>editorderpro_09469f5387789c3ec5d742a2fef0b303'] = 'This tag generate alphabetic reference. If you use this tag, system automaticaly display field \"Random alphabetic length\" to select length of random alphabetic reference.';
$_MODULE['<{modrefchange}prestashop>editorderpro_c48fedaed1d0a7f6b761079b382af89d'] = 'This tag generate alphanumeric (numbers and alphabetical characters together) reference. If you use this tag, system automaticaly display field \"Random alphanumeric length\" to select length of random alphanumeric reference.';
$_MODULE['<{modrefchange}prestashop>editorderpro_86aa4239e84ea2a4b018dbac2eec42e2'] = 'This tag generated automatically counted values. You can choose starting value of counter and a step, which represent counter value rising. You can reset counter every time you want when you set \"Counter number start at\" field to another value.';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6aa3edc6ab7d36a9443c115e479737f'] = 'This tag generate order ID number.';
$_MODULE['<{modrefchange}prestashop>editorderpro_86067b860051b7697253ee19fc7076b2'] = 'This tag generate shop ID number.';
$_MODULE['<{modrefchange}prestashop>editorderpro_219bd8ccddadbab95fc82fcec8189fd8'] = 'This tag generate actual year number.';
$_MODULE['<{modrefchange}prestashop>editorderpro_d47554725168b79c3c6b59ac99d42c41'] = 'This tag generate shortcut of actual year, for example 15,16,17.';
$_MODULE['<{modrefchange}prestashop>editorderpro_1bb43cb86029d716010b4e7527da0db9'] = 'This tag generate actual month number.';
$_MODULE['<{modrefchange}prestashop>editorderpro_90b95b808818529ac04815c33d4f1476'] = 'This tag generate actual week number.';
$_MODULE['<{modrefchange}prestashop>editorderpro_27d6c76f72531a121371ee600e7f1901'] = 'This tag generate actual day in week number.';
$_MODULE['<{modrefchange}prestashop>editorderpro_b3a81f8e103086c3b7d6c3cd0ff396ff'] = 'This tag generate actual day in month number.';
$_MODULE['<{modrefchange}prestashop>editorderpro_91759b9f56ac9e3a92e21c7a6443aa77'] = 'Order Note';
$_MODULE['<{modrefchange}prestashop>editorderpro_56baadbd0e7bf71944fce65d4a21a180'] = 'Show this order note on invoice';
$_MODULE['<{modrefchange}prestashop>editorderpro_b90d9c0670c835799bb3f1dfa643ad46'] = 'Order note stored';
$_MODULE['<{modrefchange}prestashop>editorderpro_bda74d25f53aa0e9e505c9876a99bdcd'] = 'Order note can not be stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_8de966ad9f10d322cbf563d1ee9aee72'] = 'Order cannot be loaded';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7d85d64b37241f459f6d2c165ef533fe'] = 'Order date stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_fe691cdc7b20a4e13d55399ea5e1f818'] = 'Can not be stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_738f17e1338cfb32672cdfef9a91a424'] = 'Order number has more than 9 characters';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_aa4955ee788e9781589d85219dff905d'] = 'Order number already exist';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c5deffe5fc37511c10d6a9316185ce13'] = 'Order number stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_3e8167b90161f37c63a258741d38f985'] = 'Order invoice cannot be loaded';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a3b172048fe4028472cbe3093c7e4476'] = 'Invoice date stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_745c3e34d4d4678199f8354ccfe761c6'] = 'Invoice number stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a2a42aaaa3108afcc43b00d1de281bd8'] = 'Delivery date stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_22607e70c00e0ad786f70fa6c70fad8e'] = 'Delivery number stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c360174185ff982e1613005c9b03c83e'] = 'Credit slip cannot be loaded';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a70e98cb7160fab1c5b822da4c42c9b7'] = 'Credit slip stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_6378eaaa4dd3eca0baa019dcd24ed2c3'] = 'Credit slip number stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_be9bd4226d451ce0f6f91a5a6b7e2d08'] = 'Invoice successfully deleted';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_5619436626d4887922d6e71bda4927ea'] = 'Delivery slip successfully deleted';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_99d5fd555e562ea371967371d57b1a99'] = 'Order slip cannot be loaded';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_64b720693953fd4d97b600401eca2159'] = 'Order slip successfully deleted';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_b90d9c0670c835799bb3f1dfa643ad46'] = 'Order note stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_691d11a8ab14443c6ae18cad21f5d71a'] = 'Order status removed';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_59c65b90bf83027d31300f3ec155ed5f'] = 'Can not be removed';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_28fc7abd913b2aac32767442eeda8594'] = 'Order carrier cannot be loaded';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_949909feacf42cd551e8b006cbec533e'] = 'Shipping date stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d404787bd0dfafc976fb88482c127ed4'] = 'Shipping carrier stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_31d342c033cf1751151a6ee53eb7dff7'] = 'Shipping tracking number stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_36db203440bfe960bb1daea51d1632a9'] = 'Shipping cost stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a5023ce5501398fc5570231ffa417979'] = 'Payment date stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_61cb392d835ed073242c3f10a88da726'] = 'Payment method stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_cf1f9b61d9395e36975687e7fc49c44f'] = 'Payment transaction ID stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7ce03e1c4929e09a1bc48e4c8055b891'] = 'Payment amount stored';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ab8ccc15c68adb4e29e659d882eefbed'] = 'Order payment removed';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e344ccefaf1f8505b231f3f974bed0b0'] = 'The Order Detail object cannot be loaded';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_daa9fe00f2c5ddc8f1d3213e0c840b54'] = 'Product name changed';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e51cb027a793524f243942d03e3ea69e'] = 'Can not be changed';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_26beb437d3323bd4bfb0811b3e891315'] = '%d image(s)';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c2808546f3e14d267d798f4e0e6f102e'] = 'Customized';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_f3566b62fb3dddee617860e949c692f9'] = 'Voucher name:';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ed13b3693357ebed3751cb71cb639e65'] = 'No carrier';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d489ae1c5db6ffbc1a1d3ddaf66f228f'] = 'Mail has been sended to customer';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'Mail can not be send';
@@ -0,0 +1,133 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{modrefchange}prestashop>editorderpro_dce878c5197f13a373554f5b936c6752'] = ' Gestión de pedidos avanzada';
$_MODULE['<{modrefchange}prestashop>editorderpro_97b58db6391c2279f62f7205fdc42c1a'] = ' Módulo para editar pedidos existentes y configuración de reglas para generar números de pedido, factura, albaranes y notas de crédito ';
$_MODULE['<{modrefchange}prestashop>editorderpro_876f23178c29dc2552c0b48bf23cd9bd'] = '¿Seguro que desea desinstalar el módulo?';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f40e8817b005044250943f57a21c5e7'] = 'El título no ha sido introducido ';
$_MODULE['<{modrefchange}prestashop>editorderpro_c888438d14855d7d96a2724ee9c306bd'] = ' Los ajustes han sido modificados';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6633ccfc9cb21a6028cb59123decac5'] = 'Asegúrese de que su número de referencia final no tenga más de 9 caracteres, ya que es el límite de la base de datos para almacenar.';
$_MODULE['<{modrefchange}prestashop>editorderpro_01abfc750a0c942167651c40d088531d'] = '#';
$_MODULE['<{modrefchange}prestashop>editorderpro_a9c9fd8e8f271415162b090768e01237'] = ' Tipo del número de referencia';
$_MODULE['<{modrefchange}prestashop>editorderpro_510429e4d9f015901d1f0816610209d5'] = ' Tipo del número de referencia';
$_MODULE['<{modrefchange}prestashop>editorderpro_03ea72abb0a6e072b32271a4f7555c90'] = ' Formato del número de referencia';
$_MODULE['<{modrefchange}prestashop>editorderpro_ec53a8c4f07baed5d8825072c89799be'] = ' Estado';
$_MODULE['<{modrefchange}prestashop>editorderpro_f9b81d667afe0f915668a54f6dac0793'] = ' Configuración de la generación de los números de referencia para los pedidos, facturas, albaranes y notas de crédito ';
$_MODULE['<{modrefchange}prestashop>editorderpro_f4f70727dc34561dfde1a3c529b6205c'] = 'Ajustes';
$_MODULE['<{modrefchange}prestashop>editorderpro_638806528306bb6e6bc140386738a16b'] = ' Activar este número de referencia';
$_MODULE['<{modrefchange}prestashop>editorderpro_4d3d769b812b6faa6b76e1a8abaece2d'] = 'Activo';
$_MODULE['<{modrefchange}prestashop>editorderpro_3cab03c00dbd11bc3569afa0748013f0'] = 'Inactivo ';
$_MODULE['<{modrefchange}prestashop>editorderpro_f5d39226a5c2d63eeff2862f51d4536b'] = 'A través de este campo puede seleccionar el formato de la generación del número de referencia. Por ej. \"ORD-{COUNTER}/{WEEK}\". Para su introducción puede escribir cualquier carácter (incluyendo números) y también utilizar los \"tags\" que serán reemplazados por el sistema automáticamente por datos necesarios. Todos los tag disponibles están definidos en la tabla “DESCRIPCIÓN DE LOS TAG DISPONIBLES”. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_45a054d27bff3a52752d3804fbf65749'] = 'Longitud del número aleatorio:';
$_MODULE['<{modrefchange}prestashop>editorderpro_fe08aabd97579e99588b96319c368e8f'] = 'Casilla para fijar la longitud del número aleatorio';
$_MODULE['<{modrefchange}prestashop>editorderpro_227a7a3871604bfa72bff6d771292cb7'] = 'Longitud de los caracteres aleatorios:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d2cef9592c4cafc1c4a4cc96f72b0e9'] = 'Casilla para fijar la longitud de caracteres aleatorios';
$_MODULE['<{modrefchange}prestashop>editorderpro_0c6692ca68dbbc5e196ea4b33e88dac4'] = 'Longitud de los caracteres aleatorios junto con números aleatorios:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c39207813ae1fdfa916356698ef1edb'] = 'Casilla para fijar la longitud de caracteres aleatorios junto con números aleatorios';
$_MODULE['<{modrefchange}prestashop>editorderpro_ad1c7e7bab746d345a6a522ac91b9d9d'] = 'El número inicial del contador:';
$_MODULE['<{modrefchange}prestashop>editorderpro_edb55b9df368131a7ad56018611eb05f'] = 'Casilla para introducir el número inicial del contador. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_697a15dd3150695a44e4994933858c9e'] = 'Crear un nuevo valor del contador por adición de un número:';
$_MODULE['<{modrefchange}prestashop>editorderpro_3d92aa88d77ef381def20c601ca2a934'] = 'Casilla para determinar qué número se va a añadir al valor del contador. Por ejemplo, se puede introducir en la casilla \" El número inicial del contador \" el valor 10, y en la \" Crear un nuevo valor del contador por adición de un número \" el valor 5. Después de guardar estos cambios el contador generará valores: 10, 15, 20, 25, ... ';
$_MODULE['<{modrefchange}prestashop>editorderpro_5584869d05b2d6773f18cd80555ab601'] = 'Intervalo para reiniciar el contador:';
$_MODULE['<{modrefchange}prestashop>editorderpro_83f5ba31a9bd4725f54c7b4c1370f7d7'] = 'Aquí puede elegir con qué frecuencia se reiniciará automáticamente su contador. Después de cada reinicio, el valor inicial del contador se establecerá al valor introducido en la casilla \"El número inicial del contador\". Si selecciona la opción \"Cuando el contador alcanza el número asignado\", o \"Cuando el contador alcanza la fecha asignada \", el sistema muestra automáticamente la casilla para introducir un número o fecha. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_491373bd08ccbb9206533cd0b50cb670'] = 'Cada semana';
$_MODULE['<{modrefchange}prestashop>editorderpro_f311060064137e750ef3787c0619c1ee'] = 'Cada mes';
$_MODULE['<{modrefchange}prestashop>editorderpro_e3bc3b398894b8962590c2b84135dfeb'] = 'Cada año';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d71cf381cdfc09960ee84eb82a7d9a5'] = 'Cuando el contador alcanza el número asignado';
$_MODULE['<{modrefchange}prestashop>editorderpro_0ff7382405ebb494b79bc66cff1b4c1a'] = 'Cuando el contador alcanza la fecha asignada';
$_MODULE['<{modrefchange}prestashop>editorderpro_6e7b34fa59e1bd229b207892956dc41c'] = 'Nunca';
$_MODULE['<{modrefchange}prestashop>editorderpro_9c1fe22b1f4907afd8f004510af64f5d'] = 'Reiniciar el contador al alcanzar el número asignado:';
$_MODULE['<{modrefchange}prestashop>editorderpro_cbd6e0d4c23b82544a92adce52ef82c9'] = 'Si el contador alcanza un número mayor al número introducido en este campo, el contador se reinicia automáticamente al valor del campo “El número inicial del contador”. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_3da7adc2add629515c6ad06b99c0f311'] = 'Reiniciar el contador al alcanzar la fecha seleccionada:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8681517e53a92632161699c8819c8e79'] = 'Si la fecha actual alcanza o supera la fecha especificada, el contador se reinicia automáticamente al valor de la casilla \"El número inicial del contador\". El formato de la fecha es \"AAAA-MM-DD\" (AÑO-MES-DÍA). ';
$_MODULE['<{modrefchange}prestashop>editorderpro_9360dc2a54ab9dcb22291f672fc05990'] = ' Reiniciar el contador ahora:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b78ac580b6302e71353be485781743cd'] = 'Puede reiniciar el valor actual del contador al valor de la casilla \"El número inicial del contador\". ';
$_MODULE['<{modrefchange}prestashop>editorderpro_93cba07454f06a4a960172bbd6e2a435'] = 'Sí';
$_MODULE['<{modrefchange}prestashop>editorderpro_bafd7322c6e97d25b6299b5d6fe8920b'] = 'No';
$_MODULE['<{modrefchange}prestashop>editorderpro_1d518edad420fbb2aaba0e3e7958a6f6'] = 'Fijar la longitud de los caracteres en el contador:';
$_MODULE['<{modrefchange}prestashop>editorderpro_ffb70d888876f75e4ca7035974b5b50d'] = 'Si necesita una longitud fija del valor del contador, hay que elegir el valor de esta casilla a “Activo”. Después el sistema automáticamente muestra un campo de selección para introducir la longitud fija de los caracteres del contador. Si en la casilla “Longitud fija de los caracteres del contador” elige por ej. el valor 5 y el valor actual del contador es 10, el valor final del contador será 00010. Para el valor del contador 100 será 00100. Después de guardar el valor en la casilla “Longitud fija de los caracteres del contador”, se verá el valor actual de su contador a través del campo “El valor siguiente del contador” ';
$_MODULE['<{modrefchange}prestashop>editorderpro_458ad6405b03126a90f4cd863d988402'] = 'Longitud fija de los caracteres del contador:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b6d6dbf41f68919a077264b2ab3c5ee3'] = 'Puede determinar la longitud de los caracteres del contador estática. Si la longitud de caracteres del contador será menor que la longitud fija de los caracteres del contador, el sistema añade automáticamente unos ceros como prefijo antes del valor del contador. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_c9cc8cce247e49bae79f15173ce97354'] = 'Guardar';
$_MODULE['<{modrefchange}prestashop>editorderpro_e8c74439116885ac629e30866885587e'] = 'Todos los super-administradores pueden editar el pedido existente';
$_MODULE['<{modrefchange}prestashop>editorderpro_ea4788705e6873b424c65e91c2846b19'] = 'Cancelar';
$_MODULE['<{modrefchange}prestashop>editorderpro_06933067aafd48425d67bcb01bba5cb6'] = 'Modificar';
$_MODULE['<{modrefchange}prestashop>editorderpro_f2a6c498fb90ee345d997f888fce3b18'] = 'Borrar';
$_MODULE['<{modrefchange}prestashop>editorderpro_7dce122004969d56ae2e0245cb754d35'] = 'Editar';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b6c6cda10a23d1bdc920f2e47e5f46f'] = 'Aňadir producto';
$_MODULE['<{modrefchange}prestashop>editorderpro_d71940f24ee38ee09f6e06b908480bcf'] = 'Reenviar el mensaje';
$_MODULE['<{modrefchange}prestashop>editorderpro_86ae2b18dd51950f3a67d666de29780b'] = 'Este valor no ha sido guardado con éxito, intente, por favor, restablecimiento completo e iniciar la sesión de nuevo';
$_MODULE['<{modrefchange}prestashop>editorderpro_cc4f6f712649b87c1de37098c2e1eb25'] = 'La eliminación del estado de pedido ha fallado';
$_MODULE['<{modrefchange}prestashop>editorderpro_0b03bb44fad2e902e15da5a33839bbad'] = 'La eliminación del pago ha fallado';
$_MODULE['<{modrefchange}prestashop>editorderpro_53a4b494f358210d077e013ade93da09'] = 'La eliminación del documento ha fallado';
$_MODULE['<{modrefchange}prestashop>editorderpro_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'La eliminación del mail ha fallado';
$_MODULE['<{modrefchange}prestashop>editorderpro_9917818785619ad58f6f18e893a23714'] = 'Precio sin IVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_bbf9599605a9a9514178a8a4818c6b6e'] = 'Precio con IVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b78ac8eb158840e9638a3aeb26c4a9d'] = 'Impuesto (IVA)';
$_MODULE['<{modrefchange}prestashop>editorderpro_edf33b78b2369be0801998238d9e4efd'] = 'sin IVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_35c3a29e75a241b7a51593153d72cf2c'] = 'con IVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_e903d893c25e39ebda48806decd39330'] = 'Es necesario añadir uno o varios empleados que no tienen el estatuto de super-administrador para trabajar con esta sección ';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c979847c5a79bd3ab07a725e5c9ca65'] = 'Permitir funcionalidad de este módulo para editar el pedido existente también para estos empleados ';
$_MODULE['<{modrefchange}prestashop>editorderpro_a3a4e466d73223cd9535a338fd4abfb7'] = 'Las casillas \"El número inicial del contador\" y \"Crear un nuevo valor del contador por adición de un número\" no pueden estar en blanco y el número introducido debe ser un número real entero ';
$_MODULE['<{modrefchange}prestashop>editorderpro_05db6d4d3b440ef0f50d50275665d94b'] = 'Las casillas \"El número inicial del contador\" y \"Crear un nuevo valor del contador por adición de un número\" no pueden estar en blanco y el número introducido debe ser un número real entero ';
$_MODULE['<{modrefchange}prestashop>editorderpro_10559dd5d89ee610e8eacf352e404ca9'] = 'La casilla \"Reiniciar el contador al alcanzar la fecha seleccionada\" no puede estar en blanco y la fecha más temprana debe ser la fecha del día siguiente ';
$_MODULE['<{modrefchange}prestashop>editorderpro_d360969024d0aab340dfff2132334286'] = 'Formato del número de referencia no puede quedarse sin rellenar';
$_MODULE['<{modrefchange}prestashop>editorderpro_326e646d24dfc2b7630e279a70cc8769'] = 'DESCRIPCIÓN DE TODOS LOS TAG DISPONIBLES';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f82f9e287af0edc228b6bf3569246be'] = 'Descripción del tag';
$_MODULE['<{modrefchange}prestashop>editorderpro_8bdc99b9308a02ca766251be15ecef2f'] = 'Este tag genera un número aleatorio. Si utiliza este tag, el sistema muestra automáticamente la casilla \"Longitud del número aleatorio\" para introducir la longitud del número aleatorio deseada. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_09469f5387789c3ec5d742a2fef0b303'] = 'Este tag genera caracteres aleatorios. Si utiliza este tag, el sistema muestra automáticamente la casilla \"Longitud de los caracteres aleatorios\" para introducir la longitud de los caracteres aleatorios deseada. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_c48fedaed1d0a7f6b761079b382af89d'] = 'Este tag genera caracteres aleatorios junto con números aleatorios. Si utiliza este tag, el sistema muestra automáticamente la casilla \" Longitud de los caracteres aleatorios junto con números aleatorios\" para introducir la longitud de los caracteres y números aleatorios deseada. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_86aa4239e84ea2a4b018dbac2eec42e2'] = 'Este tag genera el valor del contador. El contador sirve como el valor creciente para cada número de factura nuevo y por ejemplo puede adquirir valores 1, 2, 3, 4, … Si utiliza este tag, sería necesario introducir un valor en la casilla \"El número inicial del contador\" y así seleccionar el valor inicial del contador, y también introducir un valor en la casilla \"Crear un nuevo valor del contador por adición de un número\", para determinar qué número se va a añadir al valor del contador. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6aa3edc6ab7d36a9443c115e479737f'] = 'Este tag genera el ID del pedido.';
$_MODULE['<{modrefchange}prestashop>editorderpro_86067b860051b7697253ee19fc7076b2'] = 'Este tag genera el ID de la tienda.';
$_MODULE['<{modrefchange}prestashop>editorderpro_219bd8ccddadbab95fc82fcec8189fd8'] = 'Este tag genera el número del año actual.';
$_MODULE['<{modrefchange}prestashop>editorderpro_d47554725168b79c3c6b59ac99d42c41'] = 'Este tag genera la abreviatura del número del año actual, p. ej. 15, 16, 17.';
$_MODULE['<{modrefchange}prestashop>editorderpro_1bb43cb86029d716010b4e7527da0db9'] = 'Este tag genera el número del mes actual.';
$_MODULE['<{modrefchange}prestashop>editorderpro_90b95b808818529ac04815c33d4f1476'] = 'Este tag genera el número de la semana actual.';
$_MODULE['<{modrefchange}prestashop>editorderpro_27d6c76f72531a121371ee600e7f1901'] = 'Este tag genera el número del día de la semana.';
$_MODULE['<{modrefchange}prestashop>editorderpro_b3a81f8e103086c3b7d6c3cd0ff396ff'] = 'Este tag genera el número del día del mes.';
$_MODULE['<{modrefchange}prestashop>editorderpro_91759b9f56ac9e3a92e21c7a6443aa77'] = 'Nota de orden';
$_MODULE['<{modrefchange}prestashop>editorderpro_56baadbd0e7bf71944fce65d4a21a180'] = 'Muestre esta nota de pedido en la factura';
$_MODULE['<{modrefchange}prestashop>editorderpro_b90d9c0670c835799bb3f1dfa643ad46'] = 'Nota de orden almacenada';
$_MODULE['<{modrefchange}prestashop>editorderpro_bda74d25f53aa0e9e505c9876a99bdcd'] = 'Nota de orden no puede ser almacenada';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_8de966ad9f10d322cbf563d1ee9aee72'] = 'El pedido no ha sido descargado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7d85d64b37241f459f6d2c165ef533fe'] = 'La fecha del pedido ha sido guardada';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_fe691cdc7b20a4e13d55399ea5e1f818'] = 'La operación de guardar ha fallado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_738f17e1338cfb32672cdfef9a91a424'] = 'El número de pedido no puede tener más de 9 carácteres';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_aa4955ee788e9781589d85219dff905d'] = 'El número de pedido introducido ya existe';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c5deffe5fc37511c10d6a9316185ce13'] = 'El número de pedido ha sido guardado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_3e8167b90161f37c63a258741d38f985'] = 'La factura no ha sido descargado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a3b172048fe4028472cbe3093c7e4476'] = 'La fecha de la factura ha sido guardada';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_745c3e34d4d4678199f8354ccfe761c6'] = 'El número del pedido ha sido guardado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a2a42aaaa3108afcc43b00d1de281bd8'] = 'La fecha de entrega ha sido guardada';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_22607e70c00e0ad786f70fa6c70fad8e'] = 'El número de la nota de la entrega ha sido guardado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c360174185ff982e1613005c9b03c83e'] = 'La nota de crédito no ha sido descargada';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a70e98cb7160fab1c5b822da4c42c9b7'] = 'Deslizamiento de crédito almacenada';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_6378eaaa4dd3eca0baa019dcd24ed2c3'] = 'Número de deslizamiento de crédito almacenada';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_be9bd4226d451ce0f6f91a5a6b7e2d08'] = 'Factura eliminado correctamente';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_5619436626d4887922d6e71bda4927ea'] = 'Albarán de entrega eliminado correctamente';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_99d5fd555e562ea371967371d57b1a99'] = 'Recibo de la orden no se puede cargar';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_64b720693953fd4d97b600401eca2159'] = 'Recibo de la orden eliminado correctamente';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_b90d9c0670c835799bb3f1dfa643ad46'] = 'Nota de orden almacenada';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_691d11a8ab14443c6ae18cad21f5d71a'] = 'El estatuto del pedido ha sido eliminado correctamente';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_59c65b90bf83027d31300f3ec155ed5f'] = 'La eliminación ha fallado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_28fc7abd913b2aac32767442eeda8594'] = 'La entrega no ha sido descargada';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_949909feacf42cd551e8b006cbec533e'] = 'La fecha de entrega ha sido guardada';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d404787bd0dfafc976fb88482c127ed4'] = 'El título de entrega ha sido guardado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_31d342c033cf1751151a6ee53eb7dff7'] = 'El número de rastreo de entrega ha sido guardado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_36db203440bfe960bb1daea51d1632a9'] = 'El precio de entrega ha sido guardado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a5023ce5501398fc5570231ffa417979'] = 'La fecha del pago ha sido guardada';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_61cb392d835ed073242c3f10a88da726'] = 'El método del pago ha sido guardado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_cf1f9b61d9395e36975687e7fc49c44f'] = 'El ID de la transacción del pago ha sido guardado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7ce03e1c4929e09a1bc48e4c8055b891'] = 'El precio del pago ha sido guardado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ab8ccc15c68adb4e29e659d882eefbed'] = 'EL pago ha sido eliminado correctamente';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e344ccefaf1f8505b231f3f974bed0b0'] = 'El pedido no ha sido descargado';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_daa9fe00f2c5ddc8f1d3213e0c840b54'] = 'Se ha cambiado el nombre del producto';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e51cb027a793524f243942d03e3ea69e'] = ' Este valor no ha sido guardado con éxito, intente, por favor, restablecimiento completo e iniciar la sesión de nuevo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_26beb437d3323bd4bfb0811b3e891315'] = '%d imágenes';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c2808546f3e14d267d798f4e0e6f102e'] = 'Ajustes';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_f3566b62fb3dddee617860e949c692f9'] = 'Nombre del cupón de descuento:';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ed13b3693357ebed3751cb71cb639e65'] = 'Ningún transportista';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d489ae1c5db6ffbc1a1d3ddaf66f228f'] = 'El mail ha sido enviado al cliente';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'La eliminación del mail ha fallado';
@@ -0,0 +1,133 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{modrefchange}prestashop>editorderpro_dce878c5197f13a373554f5b936c6752'] = 'Le management avancé des commandes ';
$_MODULE['<{modrefchange}prestashop>editorderpro_97b58db6391c2279f62f7205fdc42c1a'] = 'Le module pour la mise en forme des commandes existantes et en définissant les règles pour générer des nombres de commandes, de factures, de bordereaux de livraison et de notes de crédit ';
$_MODULE['<{modrefchange}prestashop>editorderpro_876f23178c29dc2552c0b48bf23cd9bd'] = 'Souhaitez- vous vraiment désinstaller le modul?';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f40e8817b005044250943f57a21c5e7'] = 'Le nom n´était pas spécifié';
$_MODULE['<{modrefchange}prestashop>editorderpro_c888438d14855d7d96a2724ee9c306bd'] = 'Les paramètres ont été modifiés';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6633ccfc9cb21a6028cb59123decac5'] = 'Assurez-vous que votre numéro de référence final ne dépasse pas 9 caractères, car il s\'agit d\'une limite de base de données pour le stockage.';
$_MODULE['<{modrefchange}prestashop>editorderpro_01abfc750a0c942167651c40d088531d'] = '#';
$_MODULE['<{modrefchange}prestashop>editorderpro_a9c9fd8e8f271415162b090768e01237'] = 'Le type du numéro de référence';
$_MODULE['<{modrefchange}prestashop>editorderpro_510429e4d9f015901d1f0816610209d5'] = 'Le type du numéro de référence';
$_MODULE['<{modrefchange}prestashop>editorderpro_03ea72abb0a6e072b32271a4f7555c90'] = 'Le format du numéro de référence';
$_MODULE['<{modrefchange}prestashop>editorderpro_ec53a8c4f07baed5d8825072c89799be'] = 'L´état';
$_MODULE['<{modrefchange}prestashop>editorderpro_f9b81d667afe0f915668a54f6dac0793'] = 'Régler la génération automatique des numéros de référence pour les commandes, faktrúry, bordereaux de livraison et les notes de crédit ';
$_MODULE['<{modrefchange}prestashop>editorderpro_f4f70727dc34561dfde1a3c529b6205c'] = 'Paramètres';
$_MODULE['<{modrefchange}prestashop>editorderpro_638806528306bb6e6bc140386738a16b'] = 'Activez ce numéro de référence';
$_MODULE['<{modrefchange}prestashop>editorderpro_4d3d769b812b6faa6b76e1a8abaece2d'] = 'Actif';
$_MODULE['<{modrefchange}prestashop>editorderpro_3cab03c00dbd11bc3569afa0748013f0'] = 'Inactif';
$_MODULE['<{modrefchange}prestashop>editorderpro_f5d39226a5c2d63eeff2862f51d4536b'] = 'A travers de ce champ, vous pouvez sélectionner le format du numéro de la commande généré. Par example \"ORD-{COUNTER}/{WEEK}\". Pour y entrer, vous pouvez saisir tous les caractères (compris les numéros) et également utiliser des \"balises\" qui seront remplacés automatiquement par les informations nécessaires. Toutes les balises sont définies dans la partie \"description de tous les balises disponibles.\" ';
$_MODULE['<{modrefchange}prestashop>editorderpro_45a054d27bff3a52752d3804fbf65749'] = 'La longueur du numéro aléatoire:';
$_MODULE['<{modrefchange}prestashop>editorderpro_fe08aabd97579e99588b96319c368e8f'] = 'Le champ pour sélectionner la longueur du nombre aléatoire';
$_MODULE['<{modrefchange}prestashop>editorderpro_227a7a3871604bfa72bff6d771292cb7'] = 'La longueur des caractères aléatoires:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d2cef9592c4cafc1c4a4cc96f72b0e9'] = 'Champ pour sélectionner la longueur des caractères aléatoires';
$_MODULE['<{modrefchange}prestashop>editorderpro_0c6692ca68dbbc5e196ea4b33e88dac4'] = 'La longueur des caractères aléatoires en conjonction avec des numéros aléatoires:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c39207813ae1fdfa916356698ef1edb'] = 'Champ pour sélectionner la longueur de caractères aléatoires en conjonction avec des numéros aléatoires';
$_MODULE['<{modrefchange}prestashop>editorderpro_ad1c7e7bab746d345a6a522ac91b9d9d'] = 'Le numéro initial du compteur:';
$_MODULE['<{modrefchange}prestashop>editorderpro_edb55b9df368131a7ad56018611eb05f'] = 'Le champs servant à la saisie de la valeur initiale du compteur. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_697a15dd3150695a44e4994933858c9e'] = 'Créez une nouvelle valeur du compteur en ajoutant du numéro:';
$_MODULE['<{modrefchange}prestashop>editorderpro_3d92aa88d77ef381def20c601ca2a934'] = 'Champ servant à entrer après quel nombre le compteur va toujours augmenter. Par exemple, vous pouvez entrer dans le champ \"numéro du compteur initial\" la valeur 10 et dans le champ \"Créer une nouvelle valeur du compteur en ajoutant le nombre\" la valeur 5. Après l´enregistrement de ce paramètre pour le compteur seront générées les valeurs: 10, 15, 20, 25, ... ';
$_MODULE['<{modrefchange}prestashop>editorderpro_5584869d05b2d6773f18cd80555ab601'] = 'L´intervalle pour réinitialiser le compteur:';
$_MODULE['<{modrefchange}prestashop>editorderpro_83f5ba31a9bd4725f54c7b4c1370f7d7'] = 'Vous pouvez choisir la fréquence de la réinitialisation automatique pour votre compteur. Après chaque réinitialisation à zéro, la valeur initiale du compteur est réglé à la valeur du champ \"le numéro du compteur initial\". Si vous sélectionnez \"Si le compteur atteint le numéro sélectionné\" ou \"Si le compteur atteint la date sélectionnée\", le système sélectionne automatiquement le champ de saisie d\'un numéro ou la date. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_491373bd08ccbb9206533cd0b50cb670'] = 'Chaque semaine';
$_MODULE['<{modrefchange}prestashop>editorderpro_f311060064137e750ef3787c0619c1ee'] = 'Chaque mois';
$_MODULE['<{modrefchange}prestashop>editorderpro_e3bc3b398894b8962590c2b84135dfeb'] = 'Chaque année';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d71cf381cdfc09960ee84eb82a7d9a5'] = 'Si le compteur atteint le numéro selectioné';
$_MODULE['<{modrefchange}prestashop>editorderpro_0ff7382405ebb494b79bc66cff1b4c1a'] = 'Si le compteur atteint la date sélectionnée';
$_MODULE['<{modrefchange}prestashop>editorderpro_6e7b34fa59e1bd229b207892956dc41c'] = 'Jamais';
$_MODULE['<{modrefchange}prestashop>editorderpro_9c1fe22b1f4907afd8f004510af64f5d'] = 'Réinitialiser le compteur après le numéro sélectionné:';
$_MODULE['<{modrefchange}prestashop>editorderpro_cbd6e0d4c23b82544a92adce52ef82c9'] = 'Lorsque le compteur atteint un numéro plus grand que celui qui est spécifié dans ce champ, le compteur se remet automatiquement à la valeur du champ \"compteur du numéro initial\". ';
$_MODULE['<{modrefchange}prestashop>editorderpro_3da7adc2add629515c6ad06b99c0f311'] = 'Réinitialiser le compteur après la date sélectionnée:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8681517e53a92632161699c8819c8e79'] = 'Si la date courante atteint ou dépasse la date indiquée, le compteur se remet automatiquement à la valeur du champ \"compteur du numéro initial\". Format de la date \"AAAA-MM-JJ \"(année/mois/jour). ';
$_MODULE['<{modrefchange}prestashop>editorderpro_9360dc2a54ab9dcb22291f672fc05990'] = 'Réinitialiser le compteur maintenant:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b78ac580b6302e71353be485781743cd'] = 'Vous pouvez réinitialiser la valeur courante du compteur à la valeur du champ \"compteur du numéro initial\". ';
$_MODULE['<{modrefchange}prestashop>editorderpro_93cba07454f06a4a960172bbd6e2a435'] = 'Oui';
$_MODULE['<{modrefchange}prestashop>editorderpro_bafd7322c6e97d25b6299b5d6fe8920b'] = 'Non';
$_MODULE['<{modrefchange}prestashop>editorderpro_1d518edad420fbb2aaba0e3e7958a6f6'] = 'Définir la longueur des caractères dans le compteur:';
$_MODULE['<{modrefchange}prestashop>editorderpro_ffb70d888876f75e4ca7035974b5b50d'] = 'Si vous avez besoin d´atteindre la longeur fixe pour la longeur fixe de la valeur du compteur, définissez ce champ sur \"Actif\". Après cette action, le système affichera automatiquement le champ de la sélection pour entrer la longeur fixe des caractères du compteur. Si vous séléctionnez dans le champ \"la longeur fixe des caractère du compteur\" la valeur 5 et la valeur courante du compteur sera 10, la valeur finale du compteur dans le numéro de la commande pour la valeur 00010e du compteur 100 sera 00100. Après mémorisation de la valeur dans le champ \"la longeur fixe des caractère du compteur\" vous pouvez suivre la valeur courante de votre compteur à travers le champ \"la valeur suivante du compteur.\" ';
$_MODULE['<{modrefchange}prestashop>editorderpro_458ad6405b03126a90f4cd863d988402'] = 'La longueur fixe des caractères du compteur:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b6d6dbf41f68919a077264b2ab3c5ee3'] = 'Vous pouvez régler la longueur d\'un compteur statique des caractères. Si la longueur des caractères du compteur est inférieure que la longueur fixe du compteur des caractères, le système ajoute automatiquement des zéros comme préfixe devant la valeur du compteur. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_c9cc8cce247e49bae79f15173ce97354'] = 'Sauver';
$_MODULE['<{modrefchange}prestashop>editorderpro_e8c74439116885ac629e30866885587e'] = 'Tous les administrateurs principaux peuvent modifier une commande existante';
$_MODULE['<{modrefchange}prestashop>editorderpro_ea4788705e6873b424c65e91c2846b19'] = 'Annuler';
$_MODULE['<{modrefchange}prestashop>editorderpro_06933067aafd48425d67bcb01bba5cb6'] = 'Modifier';
$_MODULE['<{modrefchange}prestashop>editorderpro_f2a6c498fb90ee345d997f888fce3b18'] = 'Supprimer';
$_MODULE['<{modrefchange}prestashop>editorderpro_7dce122004969d56ae2e0245cb754d35'] = 'Modifier';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b6c6cda10a23d1bdc920f2e47e5f46f'] = 'Ajouter le produit';
$_MODULE['<{modrefchange}prestashop>editorderpro_d71940f24ee38ee09f6e06b908480bcf'] = 'Transférer l´email';
$_MODULE['<{modrefchange}prestashop>editorderpro_86ae2b18dd51950f3a67d666de29780b'] = '\"La valeur n\'a pas réussi à sauver, s\'il vous plaît essayer le rafraîchissement dur et la re-connexion possible\"';
$_MODULE['<{modrefchange}prestashop>editorderpro_cc4f6f712649b87c1de37098c2e1eb25'] = 'L´état de la commande ne peut pas être supprimé';
$_MODULE['<{modrefchange}prestashop>editorderpro_0b03bb44fad2e902e15da5a33839bbad'] = 'Le paiement n\'a pas réussi à enlever';
$_MODULE['<{modrefchange}prestashop>editorderpro_53a4b494f358210d077e013ade93da09'] = 'Le document n\'a pas réussi à enlever';
$_MODULE['<{modrefchange}prestashop>editorderpro_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'L´email n\'a pas pu être envoyé';
$_MODULE['<{modrefchange}prestashop>editorderpro_9917818785619ad58f6f18e893a23714'] = 'Le prix ​​sans la TVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_bbf9599605a9a9514178a8a4818c6b6e'] = 'Le prix ​​';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b78ac8eb158840e9638a3aeb26c4a9d'] = ' La taxe sur la valeur ajoutée (TVA)';
$_MODULE['<{modrefchange}prestashop>editorderpro_edf33b78b2369be0801998238d9e4efd'] = 'sans la TVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_35c3a29e75a241b7a51593153d72cf2c'] = 'avec la TVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_e903d893c25e39ebda48806decd39330'] = 'Vous avez besoin d\'ajouter un ou plusieurs employés qui n\'ont pas le statut de l´administrateur principal pour travailler avec cette section ';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c979847c5a79bd3ab07a725e5c9ca65'] = 'Activez la fonctionnalité du module pour modifier les commandes existantes aussi pour les employés ';
$_MODULE['<{modrefchange}prestashop>editorderpro_a3a4e466d73223cd9535a338fd4abfb7'] = 'Les champs \"le numéro initial du compteur\" et \"Créer une nouvelle valeur en ajoutant le numéro\" ne peuvent pas rester vide et il faut mentionner les numéros entiers et réels ';
$_MODULE['<{modrefchange}prestashop>editorderpro_05db6d4d3b440ef0f50d50275665d94b'] = 'Le champ \"Réinitialiser le compteur après acquérir le numéro sélectionné\" ne peut pas être vide et il faut mentionner les numéros entiers et réels';
$_MODULE['<{modrefchange}prestashop>editorderpro_10559dd5d89ee610e8eacf352e404ca9'] = 'Le champ \"Réinitialiser le compteur après acquérir la date sélectionnée\" ne peut pas être vide et il faut mentionner les numéros entiers et réels';
$_MODULE['<{modrefchange}prestashop>editorderpro_d360969024d0aab340dfff2132334286'] = 'Le format du numéro de référence ne peut pas être vide';
$_MODULE['<{modrefchange}prestashop>editorderpro_326e646d24dfc2b7630e279a70cc8769'] = 'La description de toutes les balises disponibles';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f82f9e287af0edc228b6bf3569246be'] = 'La description de la balise';
$_MODULE['<{modrefchange}prestashop>editorderpro_8bdc99b9308a02ca766251be15ecef2f'] = 'La balise génère un numéro aléatoire. Si vous utilisez cette balise, le système affiche automatiquement la \"longueur aléatoire\" pour l\'élection de la longeur des numéros aléatoires. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_09469f5387789c3ec5d742a2fef0b303'] = 'Cette balise génère des caractères aléatoires. Si vous utilisez cette balise, le système affiche automatiquement la \"longueur de caractères aléatoires\" pour sélectionner la longueur des caractères aléatoires. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_c48fedaed1d0a7f6b761079b382af89d'] = 'Cette balise génère des caractères aléatoires en conjonction avec des numéros aléatoires. Si vous utilisez cette balise, le système affiche automatiquement la \"longueur de caractères aléatoires en conjonction avec des numéros aléatoires\" pour sélectionner la longueur des caractères aléatoires en conjonction avec des nombres aléatoires. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_86aa4239e84ea2a4b018dbac2eec42e2'] = 'Cette balise génère une valeur du compteur. Le compteur est utilisé comme la valeur croissante pour chaque nouveau numéro de la commande et il peut gagner une valeur de 1, 2, 3, 4, ... Si vous utilisez cette balise, vous devez entrer la valeur du champ \"le compteur du numéro initial\" pour sélectionner la valeur initiale du compteur et le champ de la valeur \"Créer une nouvelle valeur en ajoutant du numéro\", pour entrer après quel numéros le compteur va toujours augmenter. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6aa3edc6ab7d36a9443c115e479737f'] = 'La balise génère l´ID de la commande.';
$_MODULE['<{modrefchange}prestashop>editorderpro_86067b860051b7697253ee19fc7076b2'] = 'La balise génère l´ID de la boutique en ligne.';
$_MODULE['<{modrefchange}prestashop>editorderpro_219bd8ccddadbab95fc82fcec8189fd8'] = 'La balise génère le numéro de l\'année courante.';
$_MODULE['<{modrefchange}prestashop>editorderpro_d47554725168b79c3c6b59ac99d42c41'] = 'La balise génère le numéro de l\'année courante par exemple, 15, 16, 17.';
$_MODULE['<{modrefchange}prestashop>editorderpro_1bb43cb86029d716010b4e7527da0db9'] = 'La balise génère le numéro du mois courant';
$_MODULE['<{modrefchange}prestashop>editorderpro_90b95b808818529ac04815c33d4f1476'] = 'La balise génère le numéro courant de semaines dans l´année.';
$_MODULE['<{modrefchange}prestashop>editorderpro_27d6c76f72531a121371ee600e7f1901'] = 'La balise génère le numéro courant du jour de la semaine.';
$_MODULE['<{modrefchange}prestashop>editorderpro_b3a81f8e103086c3b7d6c3cd0ff396ff'] = 'La balise génère le numéro courant du mois.';
$_MODULE['<{modrefchange}prestashop>editorderpro_91759b9f56ac9e3a92e21c7a6443aa77'] = 'Note de commande';
$_MODULE['<{modrefchange}prestashop>editorderpro_56baadbd0e7bf71944fce65d4a21a180'] = 'Afficher cette note de commande sur la facture';
$_MODULE['<{modrefchange}prestashop>editorderpro_b90d9c0670c835799bb3f1dfa643ad46'] = 'La note de commande a été stockée';
$_MODULE['<{modrefchange}prestashop>editorderpro_bda74d25f53aa0e9e505c9876a99bdcd'] = 'La note de commande ne peut pas être stockée';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_8de966ad9f10d322cbf563d1ee9aee72'] = 'La commande n´a pas pu être chargé';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7d85d64b37241f459f6d2c165ef533fe'] = 'Le numéro de commande a été enregistré';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_fe691cdc7b20a4e13d55399ea5e1f818'] = 'L´opération de sauvegarde a échoué';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_738f17e1338cfb32672cdfef9a91a424'] = 'Le numéro de commande ne peut pas avoir plus de 9 caractères';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_aa4955ee788e9781589d85219dff905d'] = 'Le numéro entré dans un ordre existe déjà';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c5deffe5fc37511c10d6a9316185ce13'] = 'Le numéro de commande a été enregistré';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_3e8167b90161f37c63a258741d38f985'] = 'La facture n\'a pas pu être chargé';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a3b172048fe4028472cbe3093c7e4476'] = 'La date de la facture a été enregistrée';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_745c3e34d4d4678199f8354ccfe761c6'] = 'La facture a été sauvé';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a2a42aaaa3108afcc43b00d1de281bd8'] = 'Délai de livraison a été sauvé';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_22607e70c00e0ad786f70fa6c70fad8e'] = 'Le numéro du bordereau de livraison a été enregistré';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c360174185ff982e1613005c9b03c83e'] = 'La note de crédit n\'a pas pu être chargé';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a70e98cb7160fab1c5b822da4c42c9b7'] = 'Note de crédit stocké';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_6378eaaa4dd3eca0baa019dcd24ed2c3'] = 'Numéro de bordereau de crédit stocké';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_be9bd4226d451ce0f6f91a5a6b7e2d08'] = 'Facture avec succès supprimé';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_5619436626d4887922d6e71bda4927ea'] = 'Bordereau de livraison supprimé avec succès';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_99d5fd555e562ea371967371d57b1a99'] = 'Bon de commande ne peut pas être chargé';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_64b720693953fd4d97b600401eca2159'] = 'Bon de commande supprimé avec succès';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_b90d9c0670c835799bb3f1dfa643ad46'] = 'La note de commande a été stockée';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_691d11a8ab14443c6ae18cad21f5d71a'] = 'L ´état de la commande a été supprimé avec succès ';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_59c65b90bf83027d31300f3ec155ed5f'] = 'L´opération de la suppression a échoué';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_28fc7abd913b2aac32767442eeda8594'] = 'La livraison n´a pas pu être chargé';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_949909feacf42cd551e8b006cbec533e'] = 'La date de livraison a été enregistrée';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d404787bd0dfafc976fb88482c127ed4'] = 'Le nom de livraison a été enregistrée';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_31d342c033cf1751151a6ee53eb7dff7'] = 'Le numéro de la livraison de pulvérisation a été enregistré';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_36db203440bfe960bb1daea51d1632a9'] = 'Le prix ​​de livraison a été enregistré';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a5023ce5501398fc5570231ffa417979'] = 'La date de paiement a été enregistré';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_61cb392d835ed073242c3f10a88da726'] = 'Le mode de paiement a été enregistré';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_cf1f9b61d9395e36975687e7fc49c44f'] = 'L´ID de la transaction de paiement a été enregistré';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7ce03e1c4929e09a1bc48e4c8055b891'] = 'Le paiement a été enregistré';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ab8ccc15c68adb4e29e659d882eefbed'] = 'Le paiement a été supprimé';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e344ccefaf1f8505b231f3f974bed0b0'] = 'La commande n´a pas pu être chargé';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_daa9fe00f2c5ddc8f1d3213e0c840b54'] = 'Le nom du produit a été changé';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e51cb027a793524f243942d03e3ea69e'] = 'La valeur n\'a pas réussi à sauver, s\'il vous plaît essayer le rafraîchissement dur et la re-connexion possible';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_26beb437d3323bd4bfb0811b3e891315'] = '%d Les images';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c2808546f3e14d267d798f4e0e6f102e'] = 'L´adaptation';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_f3566b62fb3dddee617860e949c692f9'] = 'Le nom d´un coupon de réduction:';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ed13b3693357ebed3751cb71cb639e65'] = 'Aucun transporteur';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d489ae1c5db6ffbc1a1d3ddaf66f228f'] = 'L´email a été envoyé au client';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'L´email n\'a pas pu être envoyé';
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,133 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{modrefchange}prestashop>editorderpro_dce878c5197f13a373554f5b936c6752'] = 'Gestione avanzata degli ordini';
$_MODULE['<{modrefchange}prestashop>editorderpro_97b58db6391c2279f62f7205fdc42c1a'] = 'Modulo per modificare gli ordini già esistenti e per impostare le regole della numerazione automatica degli ordini, delle fatture, delle bolle di consegna e dei buoni regalo. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_876f23178c29dc2552c0b48bf23cd9bd'] = 'Sicuro di voler procedere alla disinstallazione del modulo?';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f40e8817b005044250943f57a21c5e7'] = 'Non è stato inserito il titolo';
$_MODULE['<{modrefchange}prestashop>editorderpro_c888438d14855d7d96a2724ee9c306bd'] = 'Le impostazioni sono state aggiornate';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6633ccfc9cb21a6028cb59123decac5'] = 'Assicurati che il tuo numero di riferimento finale non sia più lungo di 9 caratteri, perché è il limite del database per la memorizzazione.';
$_MODULE['<{modrefchange}prestashop>editorderpro_01abfc750a0c942167651c40d088531d'] = '#';
$_MODULE['<{modrefchange}prestashop>editorderpro_a9c9fd8e8f271415162b090768e01237'] = 'Tipo numero di riferimento';
$_MODULE['<{modrefchange}prestashop>editorderpro_510429e4d9f015901d1f0816610209d5'] = 'Tipo numero di riferimento';
$_MODULE['<{modrefchange}prestashop>editorderpro_03ea72abb0a6e072b32271a4f7555c90'] = 'Formato del numero di riferimento';
$_MODULE['<{modrefchange}prestashop>editorderpro_ec53a8c4f07baed5d8825072c89799be'] = 'Stato';
$_MODULE['<{modrefchange}prestashop>editorderpro_f9b81d667afe0f915668a54f6dac0793'] = 'Impostazione della funzione per generare automaticamente i nuovi numeri di riferimento degli ordini, delle fatture, delle bolle di consegna e dei buoni regalo. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_f4f70727dc34561dfde1a3c529b6205c'] = 'Configurazioni';
$_MODULE['<{modrefchange}prestashop>editorderpro_638806528306bb6e6bc140386738a16b'] = 'Attivare questo numero di riferimento';
$_MODULE['<{modrefchange}prestashop>editorderpro_4d3d769b812b6faa6b76e1a8abaece2d'] = 'Attiva';
$_MODULE['<{modrefchange}prestashop>editorderpro_3cab03c00dbd11bc3569afa0748013f0'] = 'Non attiva';
$_MODULE['<{modrefchange}prestashop>editorderpro_f5d39226a5c2d63eeff2862f51d4536b'] = 'Finestra per impostare il formato del numero di riferimento, per esempio \"ORD-{COUNTER}/{WEEK}\". Qui puoi inserire caratteri o numeri a piacere oppure si possono usare numerosi tag che saranno poi sostituiti automaticamente dal sistema con dati occorenti. Tutti tag supportati sono descritti nella tabella \"DESCRIZIONE DI TUTTI TAG SUPPORTATI\" ';
$_MODULE['<{modrefchange}prestashop>editorderpro_45a054d27bff3a52752d3804fbf65749'] = 'Lunghezza del numero casuale:';
$_MODULE['<{modrefchange}prestashop>editorderpro_fe08aabd97579e99588b96319c368e8f'] = 'La casella per impostare la lunghezza del numero casuale.';
$_MODULE['<{modrefchange}prestashop>editorderpro_227a7a3871604bfa72bff6d771292cb7'] = 'Lunghezza dei caratteri casuali:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d2cef9592c4cafc1c4a4cc96f72b0e9'] = 'La casella per impostare la lunghezza dei caratteri casuali.';
$_MODULE['<{modrefchange}prestashop>editorderpro_0c6692ca68dbbc5e196ea4b33e88dac4'] = 'Lunghezza dei caratteri alfanumerici:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c39207813ae1fdfa916356698ef1edb'] = 'La casella per impostare la lunghezza dei caratteri alfanumerici.';
$_MODULE['<{modrefchange}prestashop>editorderpro_ad1c7e7bab746d345a6a522ac91b9d9d'] = 'Numero di partenza del contattore:';
$_MODULE['<{modrefchange}prestashop>editorderpro_edb55b9df368131a7ad56018611eb05f'] = 'La casella per inserire il numero del valore di partenza del contatore. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_697a15dd3150695a44e4994933858c9e'] = 'Numero di incremento del valore del contatore:';
$_MODULE['<{modrefchange}prestashop>editorderpro_3d92aa88d77ef381def20c601ca2a934'] = 'La casella per impostare numero con il quale incrementerà valore del contatore. Per esempio immettete nella casella \"Numero di partenza del contattore\" il numero 10 e nella casella \"Numero di incremento del valore del contatore\" il numero 5. Il contatore inizierà a partire da 10 con un incremento di 5, quindi nuovi numeri generati saranno 10, 15, 20, 25, 30, .... ';
$_MODULE['<{modrefchange}prestashop>editorderpro_5584869d05b2d6773f18cd80555ab601'] = 'Intervallo di azzeramento:';
$_MODULE['<{modrefchange}prestashop>editorderpro_83f5ba31a9bd4725f54c7b4c1370f7d7'] = 'Dopo azzeramento il valore iniziale del contattore sarà di nuovo quello che avete impostato nel campo \"Numero di partenza del contattore\". Se scegliete di impostare \"Quasimodo il contattore raggiunge un numero preimpostato\" oppure \"Quando il contattore raggiunge una data preimpostata\", il sistema vi mostrerà automaticamente la casella dove inserite il numero o la data. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_491373bd08ccbb9206533cd0b50cb670'] = 'Ogni settimana';
$_MODULE['<{modrefchange}prestashop>editorderpro_f311060064137e750ef3787c0619c1ee'] = 'Ogni mese';
$_MODULE['<{modrefchange}prestashop>editorderpro_e3bc3b398894b8962590c2b84135dfeb'] = 'Ogni anno';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d71cf381cdfc09960ee84eb82a7d9a5'] = 'Quando il contattore raggiunge un numero preimpostato';
$_MODULE['<{modrefchange}prestashop>editorderpro_0ff7382405ebb494b79bc66cff1b4c1a'] = 'Quando il contattore raggiunge una data preimpostata';
$_MODULE['<{modrefchange}prestashop>editorderpro_6e7b34fa59e1bd229b207892956dc41c'] = 'Mai';
$_MODULE['<{modrefchange}prestashop>editorderpro_9c1fe22b1f4907afd8f004510af64f5d'] = 'Azzerare il contattore al raggiungimento di un numero preimpostato:';
$_MODULE['<{modrefchange}prestashop>editorderpro_cbd6e0d4c23b82544a92adce52ef82c9'] = 'Quando il contattore supera il numero indicato in questa casella, sarà automaticamente azzerato al valore indicato nella casella \"Valore di partenza del contattore\". ';
$_MODULE['<{modrefchange}prestashop>editorderpro_3da7adc2add629515c6ad06b99c0f311'] = 'Azzerare il contatore al raggiungimento di una data preimpostata:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8681517e53a92632161699c8819c8e79'] = 'Quando la data attuale ha superato la data preimpostata, il contatore sarà azzerato al valore indicato nella casella \"Valore di partenza del contattore\". Il formato della data è \"YYYY-MM-DD\" (ANNO-MESE-GIORNO). ';
$_MODULE['<{modrefchange}prestashop>editorderpro_9360dc2a54ab9dcb22291f672fc05990'] = 'Azzerare il contatore adesso:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b78ac580b6302e71353be485781743cd'] = 'Può azzerare il valore attuale del contatore al valore indicato nella casella \"Valore di partenza del contatore\". ';
$_MODULE['<{modrefchange}prestashop>editorderpro_93cba07454f06a4a960172bbd6e2a435'] = 'Si';
$_MODULE['<{modrefchange}prestashop>editorderpro_bafd7322c6e97d25b6299b5d6fe8920b'] = 'No';
$_MODULE['<{modrefchange}prestashop>editorderpro_1d518edad420fbb2aaba0e3e7958a6f6'] = 'Configurare la lunghezza fissa del formato del contatore:';
$_MODULE['<{modrefchange}prestashop>editorderpro_ffb70d888876f75e4ca7035974b5b50d'] = 'Quando è necessario di avere lunghezza fissa del valore del contatore, impostate questa casella ad \"Attiva\" ed il sistema vi mostrerà automaticamente un\'altra casella per impostare la lunghezza fissa dei caratteri del contatore. Per esempio nel campo \"Lunghezza fissa dei caratteri del contatore\" inserite il 5 mentre il vostro valore attuale del contatore è 10. Il risultato finale sarà numero dell\'ordine 00010. Se il valore del contatore sarà 100, il numero generato sarà 00100. Una volta impostata la \"Lunghezza fissa dei caratteri del contatore\" potrete controllare il valore attuale del vostro contattore cliccando sul \"Valore prossimo del contatore\". ';
$_MODULE['<{modrefchange}prestashop>editorderpro_458ad6405b03126a90f4cd863d988402'] = 'Lunghezza fissa dei caratteri del contatore:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b6d6dbf41f68919a077264b2ab3c5ee3'] = 'Si può configurare la lunghezza fissa dei caratteri del contatore. Se la lunghezza dei caratteri sarà inferiore alla lunghezza predefinita, il sistema aggiungerà automaticamente dei zeri prefissi a valore del contatore. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_c9cc8cce247e49bae79f15173ce97354'] = 'Salvare';
$_MODULE['<{modrefchange}prestashop>editorderpro_e8c74439116885ac629e30866885587e'] = 'Tutti i SuperAdmin possono modificare un ordine esistente';
$_MODULE['<{modrefchange}prestashop>editorderpro_ea4788705e6873b424c65e91c2846b19'] = 'Annullare';
$_MODULE['<{modrefchange}prestashop>editorderpro_06933067aafd48425d67bcb01bba5cb6'] = 'Correggere';
$_MODULE['<{modrefchange}prestashop>editorderpro_f2a6c498fb90ee345d997f888fce3b18'] = 'Eliminare';
$_MODULE['<{modrefchange}prestashop>editorderpro_7dce122004969d56ae2e0245cb754d35'] = 'Modificare';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b6c6cda10a23d1bdc920f2e47e5f46f'] = 'Aggiungere il prodotto';
$_MODULE['<{modrefchange}prestashop>editorderpro_d71940f24ee38ee09f6e06b908480bcf'] = 'Invia di nuovo email';
$_MODULE['<{modrefchange}prestashop>editorderpro_86ae2b18dd51950f3a67d666de29780b'] = 'La richiesta non è stata salvata, prova forzare riavvio ed eventualmente ripetere l\'accesso';
$_MODULE['<{modrefchange}prestashop>editorderpro_cc4f6f712649b87c1de37098c2e1eb25'] = 'Stato dell\'ordine non è stato rimosso';
$_MODULE['<{modrefchange}prestashop>editorderpro_0b03bb44fad2e902e15da5a33839bbad'] = 'Pagamento non è stato rimosso';
$_MODULE['<{modrefchange}prestashop>editorderpro_53a4b494f358210d077e013ade93da09'] = 'Documento non è stato rimosso';
$_MODULE['<{modrefchange}prestashop>editorderpro_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'Email non è stata inviata';
$_MODULE['<{modrefchange}prestashop>editorderpro_9917818785619ad58f6f18e893a23714'] = 'Prezzo senza IVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_bbf9599605a9a9514178a8a4818c6b6e'] = 'Prezzo con IVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b78ac8eb158840e9638a3aeb26c4a9d'] = 'IVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_edf33b78b2369be0801998238d9e4efd'] = 'senza IVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_35c3a29e75a241b7a51593153d72cf2c'] = 'con IVA';
$_MODULE['<{modrefchange}prestashop>editorderpro_e903d893c25e39ebda48806decd39330'] = 'E necessario aggiungere uno o più impiegati che non hanno gli stessi permessi del SuperAdmin per darli permesso di lavorare in questa sezione ';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c979847c5a79bd3ab07a725e5c9ca65'] = 'Attivare questa funzione per dare consenso agli altri impiegati di modificare gli ordini esistenti ';
$_MODULE['<{modrefchange}prestashop>editorderpro_a3a4e466d73223cd9535a338fd4abfb7'] = 'Le caselle \"Numero di partenza del valore del contatore\" e \"Numero di incremento del valore del contatore\" non possono rimanere vuote e dovete inserire solo numeri reali ed interi ';
$_MODULE['<{modrefchange}prestashop>editorderpro_05db6d4d3b440ef0f50d50275665d94b'] = 'La casella \"Azzerare contatore al raggiungimento di un numero preimpostato\" non può rimanere vuota e dovete inserire solo numeri reali ed interi';
$_MODULE['<{modrefchange}prestashop>editorderpro_10559dd5d89ee610e8eacf352e404ca9'] = 'La casella \"Azzerare contatore al raggiungimento di una data preimpostata\" non può rimanere vuota e dovete inserire una data che parte dalla giornata successiva.';
$_MODULE['<{modrefchange}prestashop>editorderpro_d360969024d0aab340dfff2132334286'] = 'Formato del numero riferimento non può rimanere vuoto';
$_MODULE['<{modrefchange}prestashop>editorderpro_326e646d24dfc2b7630e279a70cc8769'] = 'DESCRIZIONE DI TUTTI TAG SUPPORTATI';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f82f9e287af0edc228b6bf3569246be'] = 'Descrizione tag';
$_MODULE['<{modrefchange}prestashop>editorderpro_8bdc99b9308a02ca766251be15ecef2f'] = 'Questo tag genera numeri casuali. Se usate questo tag, il sistema vi mostrerà automaticamente la casella \"Lunghezza del numero casuale\" per impostare la lunghezza del numero casuale. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_09469f5387789c3ec5d742a2fef0b303'] = 'Questo tag genera caratteri casuali. Se usate questo tag, il sistema vi mostrerà automaticamente la casella \"Lunghezza dei caratteri casuali\" per impostare la lunghezza dei caratteri casuali. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_c48fedaed1d0a7f6b761079b382af89d'] = 'Questo tag genera caratteri alfanumerici casuali. Se usate questo tag, il sistema vi mostrerà automaticamente la casella \"Lunghezza dei caratteri alfanumerici casuali\" per impostare la lunghezza dei caratteri alfanumerici casuali. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_86aa4239e84ea2a4b018dbac2eec42e2'] = 'Questo tag genera incremento del valore del contatore. Contatore incrementerà il numero del valore per ogni nuovo ordine creato, es. 1, 2, 3, 4, ... Per poter usare questo tag è necessario impostare valori nelle caselle \"Numero di partenza del contatore\" e \"Numero di incremento del valore del contatore\" grazie ai quali crescerà il valore del contatore per ogni nuovo numero del documento generato. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6aa3edc6ab7d36a9443c115e479737f'] = 'Questo tag genera ID dell\'ordine.';
$_MODULE['<{modrefchange}prestashop>editorderpro_86067b860051b7697253ee19fc7076b2'] = 'Questo tag genera ID del negozio.';
$_MODULE['<{modrefchange}prestashop>editorderpro_219bd8ccddadbab95fc82fcec8189fd8'] = 'Questo tag genera numero dell\'anno in corso.';
$_MODULE['<{modrefchange}prestashop>editorderpro_d47554725168b79c3c6b59ac99d42c41'] = 'Questo tag genera numero dell\'anno in corso in formato breve, es. 16, 17, 18.';
$_MODULE['<{modrefchange}prestashop>editorderpro_1bb43cb86029d716010b4e7527da0db9'] = 'Questo tag genera numero del mese in corso.';
$_MODULE['<{modrefchange}prestashop>editorderpro_90b95b808818529ac04815c33d4f1476'] = 'Questo tag genera numero della settimana dell\'anno in corso.';
$_MODULE['<{modrefchange}prestashop>editorderpro_27d6c76f72531a121371ee600e7f1901'] = 'Questo tag genera numero del giorno della settimana in corso.';
$_MODULE['<{modrefchange}prestashop>editorderpro_b3a81f8e103086c3b7d6c3cd0ff396ff'] = 'Questo tag genera numero del giorno del mese in corso.';
$_MODULE['<{modrefchange}prestashop>editorderpro_91759b9f56ac9e3a92e21c7a6443aa77'] = 'Nota dell\'ordine';
$_MODULE['<{modrefchange}prestashop>editorderpro_56baadbd0e7bf71944fce65d4a21a180'] = 'Mostra questa nota dell\'ordine sulla fattura';
$_MODULE['<{modrefchange}prestashop>editorderpro_b90d9c0670c835799bb3f1dfa643ad46'] = 'Nota dell\'ordine memorizzata';
$_MODULE['<{modrefchange}prestashop>editorderpro_bda74d25f53aa0e9e505c9876a99bdcd'] = 'La nota dell\'ordine non può essere memorizzata';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_8de966ad9f10d322cbf563d1ee9aee72'] = 'Non è stato possibile caricare l\'ordine';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7d85d64b37241f459f6d2c165ef533fe'] = 'La data dell\'ordine è stata salvata';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_fe691cdc7b20a4e13d55399ea5e1f818'] = 'Salvataggio dei dati non è avvenuto con successo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_738f17e1338cfb32672cdfef9a91a424'] = 'Numero dell\'ordine non può avere più di 9 caratteri';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_aa4955ee788e9781589d85219dff905d'] = 'Questo numero dell\'ordine già esiste';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c5deffe5fc37511c10d6a9316185ce13'] = 'Numero dell\'ordine è stato salvato';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_3e8167b90161f37c63a258741d38f985'] = 'Non è stato possibile caricare la fattura';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a3b172048fe4028472cbe3093c7e4476'] = 'La data della fattura è stata salvata';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_745c3e34d4d4678199f8354ccfe761c6'] = 'Numero della fattura è stato salvato';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a2a42aaaa3108afcc43b00d1de281bd8'] = 'La data della consegna è stata salvata';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_22607e70c00e0ad786f70fa6c70fad8e'] = 'Numero della bolla di consegna è stato salvato';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c360174185ff982e1613005c9b03c83e'] = 'Non è stato possibile caricare il buono regalo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a70e98cb7160fab1c5b822da4c42c9b7'] = 'Slittamento di credito memorizzata';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_6378eaaa4dd3eca0baa019dcd24ed2c3'] = 'Numero di slittamento di credito memorizzata';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_be9bd4226d451ce0f6f91a5a6b7e2d08'] = 'Fattura cancellato con successo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_5619436626d4887922d6e71bda4927ea'] = 'Bolla di consegna cancellato con successo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_99d5fd555e562ea371967371d57b1a99'] = 'Ordinare slittamento non può essere caricato';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_64b720693953fd4d97b600401eca2159'] = 'Ordinare slittamento cancellato con successo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_b90d9c0670c835799bb3f1dfa643ad46'] = 'Nota dell\'ordine memorizzata';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_691d11a8ab14443c6ae18cad21f5d71a'] = 'Lo stato dell\'ordine è stato rimosso con successo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_59c65b90bf83027d31300f3ec155ed5f'] = 'Eliminazione dei dati non è avvenuta con successo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_28fc7abd913b2aac32767442eeda8594'] = 'Non è stato possibile caricare l\'ordine';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_949909feacf42cd551e8b006cbec533e'] = 'La data della consegna è stata salvata';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d404787bd0dfafc976fb88482c127ed4'] = 'La modalità di consegna è stata salvata';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_31d342c033cf1751151a6ee53eb7dff7'] = 'IL numero di tracking è stato salvato';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_36db203440bfe960bb1daea51d1632a9'] = 'Il prezzo della consegna è stato salvato';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a5023ce5501398fc5570231ffa417979'] = 'La data del pagamento è stata salvata';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_61cb392d835ed073242c3f10a88da726'] = 'La modalità di pagamento è stata salvata';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_cf1f9b61d9395e36975687e7fc49c44f'] = 'ID transazione è stato salvato';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7ce03e1c4929e09a1bc48e4c8055b891'] = 'Importo totale dell\'ordine è stato salvato';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ab8ccc15c68adb4e29e659d882eefbed'] = 'Il pagamento è stato rimosso con successo';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e344ccefaf1f8505b231f3f974bed0b0'] = 'Non è stato possibile caricare l\'ordine';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_daa9fe00f2c5ddc8f1d3213e0c840b54'] = 'Il nome del prodotto è stato modificato';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e51cb027a793524f243942d03e3ea69e'] = 'La richiesta non è stata salvata, prova forzare riavvio ed eventualmente ripetere l\'accesso';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_26beb437d3323bd4bfb0811b3e891315'] = '%d immagini';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c2808546f3e14d267d798f4e0e6f102e'] = 'Impostazioni';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_f3566b62fb3dddee617860e949c692f9'] = 'Titolo del buono regalo:';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ed13b3693357ebed3751cb71cb639e65'] = 'Nessun servizio di spedizione';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d489ae1c5db6ffbc1a1d3ddaf66f228f'] = 'Email è stata inviata al cliente';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'Email non è stata inviata';
@@ -0,0 +1,133 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{modrefchange}prestashop>editorderpro_dce878c5197f13a373554f5b936c6752'] = 'Pokročilý menežment objednávok';
$_MODULE['<{modrefchange}prestashop>editorderpro_97b58db6391c2279f62f7205fdc42c1a'] = 'Module pre editáciu existujúcich objednávok a nastavovania pravidiel pre generovanie čísiel objednávok, faktúr, dodacích listov a dobropisov';
$_MODULE['<{modrefchange}prestashop>editorderpro_876f23178c29dc2552c0b48bf23cd9bd'] = 'Naozaj si prajete modul odinštalovať?';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f40e8817b005044250943f57a21c5e7'] = 'Nebol zadaný názov';
$_MODULE['<{modrefchange}prestashop>editorderpro_c888438d14855d7d96a2724ee9c306bd'] = 'Nastavenia boli upravené';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6633ccfc9cb21a6028cb59123decac5'] = 'Uistite sa, že finálne referenčné číslo objednávky nebude dlhšie ako 9 znakov, pretože 9 znakov je databázový limit pre jeho uloženie. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_01abfc750a0c942167651c40d088531d'] = '#';
$_MODULE['<{modrefchange}prestashop>editorderpro_a9c9fd8e8f271415162b090768e01237'] = 'Typ referenčného císla';
$_MODULE['<{modrefchange}prestashop>editorderpro_510429e4d9f015901d1f0816610209d5'] = 'Typ referenčného císla';
$_MODULE['<{modrefchange}prestashop>editorderpro_03ea72abb0a6e072b32271a4f7555c90'] = 'Formát referenčného čísla';
$_MODULE['<{modrefchange}prestashop>editorderpro_ec53a8c4f07baed5d8825072c89799be'] = 'Stav';
$_MODULE['<{modrefchange}prestashop>editorderpro_f9b81d667afe0f915668a54f6dac0793'] = 'Nastavenie automatického generovania referenčných čísiel pre objednávky, faktrúry, dodacie listy a dobropisy';
$_MODULE['<{modrefchange}prestashop>editorderpro_f4f70727dc34561dfde1a3c529b6205c'] = 'Nastavenia';
$_MODULE['<{modrefchange}prestashop>editorderpro_638806528306bb6e6bc140386738a16b'] = 'Aktivovať toto referenčné číslo';
$_MODULE['<{modrefchange}prestashop>editorderpro_4d3d769b812b6faa6b76e1a8abaece2d'] = 'Aktívne';
$_MODULE['<{modrefchange}prestashop>editorderpro_3cab03c00dbd11bc3569afa0748013f0'] = 'Neaktívne';
$_MODULE['<{modrefchange}prestashop>editorderpro_f5d39226a5c2d63eeff2862f51d4536b'] = 'Prostredníctvom tohoto pola si môžete zvoliť formát generovania referenčného čísla. Napr. \"ORD-{COUNTER}/{WEEK}\". Pre jeho zadanie môžete vpisovať ľubovolné znaky (aj čísla) a tiež využívať \"tagy\", ktoré budú systémom automaticky nahradzované za potrebné údaje. Všetky dostupné tagy sú zadefinované v tabuľke \"POPIS VŠETKÝCH DOSTUPNÝCH TAGOV\".';
$_MODULE['<{modrefchange}prestashop>editorderpro_45a054d27bff3a52752d3804fbf65749'] = 'Dĺžka náhodného čísla:';
$_MODULE['<{modrefchange}prestashop>editorderpro_fe08aabd97579e99588b96319c368e8f'] = 'Pole pre zvolenie dĺžky náhodného čísla';
$_MODULE['<{modrefchange}prestashop>editorderpro_227a7a3871604bfa72bff6d771292cb7'] = 'Dĺžka náhodných znakov:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d2cef9592c4cafc1c4a4cc96f72b0e9'] = 'Pole pre zvolenie dĺžky náhodných znakov';
$_MODULE['<{modrefchange}prestashop>editorderpro_0c6692ca68dbbc5e196ea4b33e88dac4'] = 'Dĺžka náhodných znakov v spojení s náhodnými číslami:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c39207813ae1fdfa916356698ef1edb'] = 'Pole pre zvolenie dĺžky náhodných znakov v spojení s náhodnými číslami';
$_MODULE['<{modrefchange}prestashop>editorderpro_ad1c7e7bab746d345a6a522ac91b9d9d'] = 'Začiatočné číslo počítadla:';
$_MODULE['<{modrefchange}prestashop>editorderpro_edb55b9df368131a7ad56018611eb05f'] = 'Pole slúžiace pre zadanie začiatočnej hodnoty počítadla.';
$_MODULE['<{modrefchange}prestashop>editorderpro_697a15dd3150695a44e4994933858c9e'] = 'Vytvárať novú hodnotu počítadla pripočítaním čísla:';
$_MODULE['<{modrefchange}prestashop>editorderpro_3d92aa88d77ef381def20c601ca2a934'] = 'Pole slúžiace pre zadanie po akých číslach bude vždy narastať hodnota počítadla. Napríklad môžete zadať do pola \"Začiatočné číslo počítadla\" hodnotu 10 a do pola \"Vytvárať novú hodnotu počítadla pripočítaním čísla\" hodnotu 5. Po uložení takéhoto nastavenia bú pre počítadlo generované hodnoty: 10, 15, 20, 25, ...';
$_MODULE['<{modrefchange}prestashop>editorderpro_5584869d05b2d6773f18cd80555ab601'] = 'Interval resetovania počítadla:';
$_MODULE['<{modrefchange}prestashop>editorderpro_83f5ba31a9bd4725f54c7b4c1370f7d7'] = 'Môžete si zvoliť ako často bude automaticky resetované vaše počítadlo. Po každom resete bude začiatočná hodnota počítadla nastavená na hodnotu z pola \"Začiatočné číslo počítadla\". Pokiaľ zvolíte možnosť \"Ak počítadlo dosiahne zvolené číslo\", alebo \"Ak počítadlo dosiahne zvolený dátum\", systém automatický zvolí pole pre zadanie čísla alebo dátumu.';
$_MODULE['<{modrefchange}prestashop>editorderpro_491373bd08ccbb9206533cd0b50cb670'] = 'Každý týždeň';
$_MODULE['<{modrefchange}prestashop>editorderpro_f311060064137e750ef3787c0619c1ee'] = 'Každý mesiac';
$_MODULE['<{modrefchange}prestashop>editorderpro_e3bc3b398894b8962590c2b84135dfeb'] = 'Každý rok';
$_MODULE['<{modrefchange}prestashop>editorderpro_8d71cf381cdfc09960ee84eb82a7d9a5'] = 'Ak počítadlo dosiahne zvolené číslo';
$_MODULE['<{modrefchange}prestashop>editorderpro_0ff7382405ebb494b79bc66cff1b4c1a'] = 'Ak počítadlo dosiahne zvolený dátum';
$_MODULE['<{modrefchange}prestashop>editorderpro_6e7b34fa59e1bd229b207892956dc41c'] = 'Nikdy';
$_MODULE['<{modrefchange}prestashop>editorderpro_9c1fe22b1f4907afd8f004510af64f5d'] = 'Resetovať počítadlo po dosiahnutí zvoleného čísla';
$_MODULE['<{modrefchange}prestashop>editorderpro_cbd6e0d4c23b82544a92adce52ef82c9'] = 'Ak hodnota počítadla dosiahne väčšie číslo ako je zadané v tomto poli, počítadlo bude automaticky zresetované na hodnotu z pola \"Začiatočné číslo počítadla\".';
$_MODULE['<{modrefchange}prestashop>editorderpro_3da7adc2add629515c6ad06b99c0f311'] = 'Resetovať počítadlo po dosiahnutí zvoleného dátumu:';
$_MODULE['<{modrefchange}prestashop>editorderpro_8681517e53a92632161699c8819c8e79'] = 'Ak aktuálny dátum dosiahne, alebo presiahne zadaný dátum, počítadlo bude automaticky zresetované na hodnotu z pola \"Začiatočné číslo počítadla\". Formát dátumu je \"YYYY-MM-DD\" (ROK-MESIAC-ĎEŇ).';
$_MODULE['<{modrefchange}prestashop>editorderpro_9360dc2a54ab9dcb22291f672fc05990'] = 'Resetovať počítadlo teraz:';
$_MODULE['<{modrefchange}prestashop>editorderpro_b78ac580b6302e71353be485781743cd'] = 'Môžete resetovať aktuálnu hodnotu počítadla na hodnotu z pola \"Začiatočné číslo počítadla\".';
$_MODULE['<{modrefchange}prestashop>editorderpro_93cba07454f06a4a960172bbd6e2a435'] = 'Áno';
$_MODULE['<{modrefchange}prestashop>editorderpro_bafd7322c6e97d25b6299b5d6fe8920b'] = 'Nie';
$_MODULE['<{modrefchange}prestashop>editorderpro_1d518edad420fbb2aaba0e3e7958a6f6'] = 'Nastaviť dĺžku znakov v počítadle:';
$_MODULE['<{modrefchange}prestashop>editorderpro_ffb70d888876f75e4ca7035974b5b50d'] = 'Pokiaľ potrebujete dosiahnuť pevnú dĺžku hodnoty počítadla, nastavte toto pole na hodnotu \"Aktívne\". Po tom co nastavíte hodnotu na \"Aktívne\" , systém automatický zobrazí výberové pole pre zadanie pevnej dĺžky znakov počítadla. Pokiaľ v poli \"Pevná dĺžka znakov počítadla\" zvolíte napríklad hodnotu 5 a aktuálna hodnota počítadla bude 10, finálna hodnota počítadla bude 00010. Pre hodnotu počítadla 100 to bude 00100. Po uložení hodnoty v poli \"Pevná dĺžka znakov počítadla\", budete môcť sledovať akú ma aktuálnu hodnotu vaše počítadlo prostredníctvom pola \"Nasledujúca hodnota počítadla\".';
$_MODULE['<{modrefchange}prestashop>editorderpro_458ad6405b03126a90f4cd863d988402'] = 'Pevná dĺžka znakov počítadla';
$_MODULE['<{modrefchange}prestashop>editorderpro_b6d6dbf41f68919a077264b2ab3c5ee3'] = 'Môžete nastaviť statickú dĺžku znakov počítadla. Pokiaľ bude dĺžka znakov počítadla nižšia ako pevná dĺžka znakov počítadla, systém automaticky pridá nuly ako prefix pred hodnotu počítadla.';
$_MODULE['<{modrefchange}prestashop>editorderpro_c9cc8cce247e49bae79f15173ce97354'] = 'Uložiť';
$_MODULE['<{modrefchange}prestashop>editorderpro_e8c74439116885ac629e30866885587e'] = 'Všetci superadmini môžu editovať existujúcu objednávku';
$_MODULE['<{modrefchange}prestashop>editorderpro_ea4788705e6873b424c65e91c2846b19'] = 'Zrušiť';
$_MODULE['<{modrefchange}prestashop>editorderpro_06933067aafd48425d67bcb01bba5cb6'] = 'Upraviť';
$_MODULE['<{modrefchange}prestashop>editorderpro_f2a6c498fb90ee345d997f888fce3b18'] = 'Zmazať';
$_MODULE['<{modrefchange}prestashop>editorderpro_7dce122004969d56ae2e0245cb754d35'] = 'Editovať';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b6c6cda10a23d1bdc920f2e47e5f46f'] = 'Pridať produkt';
$_MODULE['<{modrefchange}prestashop>editorderpro_d71940f24ee38ee09f6e06b908480bcf'] = 'Preposlať mail';
$_MODULE['<{modrefchange}prestashop>editorderpro_86ae2b18dd51950f3a67d666de29780b'] = 'Hodnota sa nepodarila uložiť, skúste prosím tvrdý refresh a prípadné opätovné prihlásenie';
$_MODULE['<{modrefchange}prestashop>editorderpro_cc4f6f712649b87c1de37098c2e1eb25'] = 'Stav objednávky sa nepodarilo odstrániť';
$_MODULE['<{modrefchange}prestashop>editorderpro_0b03bb44fad2e902e15da5a33839bbad'] = 'Platba sa nepodarila odstrániť';
$_MODULE['<{modrefchange}prestashop>editorderpro_53a4b494f358210d077e013ade93da09'] = 'Dokument sa nepodarila odstrániť';
$_MODULE['<{modrefchange}prestashop>editorderpro_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'Mail sa nepodarilo odoslať';
$_MODULE['<{modrefchange}prestashop>editorderpro_9917818785619ad58f6f18e893a23714'] = 'Cena bez DPH';
$_MODULE['<{modrefchange}prestashop>editorderpro_bbf9599605a9a9514178a8a4818c6b6e'] = 'Cena s DPH';
$_MODULE['<{modrefchange}prestashop>editorderpro_4b78ac8eb158840e9638a3aeb26c4a9d'] = 'Daň';
$_MODULE['<{modrefchange}prestashop>editorderpro_edf33b78b2369be0801998238d9e4efd'] = 'bez DPH';
$_MODULE['<{modrefchange}prestashop>editorderpro_35c3a29e75a241b7a51593153d72cf2c'] = 's DPH';
$_MODULE['<{modrefchange}prestashop>editorderpro_e903d893c25e39ebda48806decd39330'] = 'Je potrebné pridať jedného alebo viac zamestnancov, ktorý nemajú status superadmina pre prácu s touto sekciou';
$_MODULE['<{modrefchange}prestashop>editorderpro_8c979847c5a79bd3ab07a725e5c9ca65'] = 'Povoliť funkcionalitu tohoto modulu pre editáciu existujúcej objednávky tiež pre týchto zamestnancov';
$_MODULE['<{modrefchange}prestashop>editorderpro_a3a4e466d73223cd9535a338fd4abfb7'] = 'Polia \"Začiatočné číslo počítadla\" a \"Vytvárať novú hodnotu počítadla pripočítaním čísla\" nemôžu ostať nezadané a musia byť celé reálne čísla';
$_MODULE['<{modrefchange}prestashop>editorderpro_05db6d4d3b440ef0f50d50275665d94b'] = 'Pole \"Resetovať počítadlo po dosiahnutí zvoleného čísla\" nemôže ostať nevyplnené a musí byť reálne číslo';
$_MODULE['<{modrefchange}prestashop>editorderpro_10559dd5d89ee610e8eacf352e404ca9'] = 'Pole \"Resetovať počítadlo po dosiahnutí zvoleného dátumu\" nemôže ostať nevyplnené a najskorší dátum musí byť zajtrajší deň';
$_MODULE['<{modrefchange}prestashop>editorderpro_d360969024d0aab340dfff2132334286'] = 'Formát referenčného čísla nemože ostať nevyplnený';
$_MODULE['<{modrefchange}prestashop>editorderpro_326e646d24dfc2b7630e279a70cc8769'] = 'POPIS VŠETKÝCH DOSTUPNÝCH TAGOV';
$_MODULE['<{modrefchange}prestashop>editorderpro_0f82f9e287af0edc228b6bf3569246be'] = 'Popis tagu';
$_MODULE['<{modrefchange}prestashop>editorderpro_8bdc99b9308a02ca766251be15ecef2f'] = 'Tento tag generuje náhodné číslo. Ak tento tag použijete, systém automaticky zobrazí pole \"Dĺžka náhodného čísla\", pre zvolenie dĺžky náhodného čísla.';
$_MODULE['<{modrefchange}prestashop>editorderpro_09469f5387789c3ec5d742a2fef0b303'] = 'Tento tag generuje náhodné znaky. Ak tento tag použijete, systém automaticky zobrazí pole \"Dĺžka náhodných znakov\", pre zvolenie dĺžky náhodných znakov.';
$_MODULE['<{modrefchange}prestashop>editorderpro_c48fedaed1d0a7f6b761079b382af89d'] = 'Tento tag generuje náhodné znaky v spojení s náhodnými číslami. Ak tento tag použijete, systém automaticky zobrazí pole \"Dĺžka náhodných znakov v spojení s náhodnými číslami\", pre zvolenie dĺžky náhodných znakov v spojení s náhodnými číslami.';
$_MODULE['<{modrefchange}prestashop>editorderpro_86aa4239e84ea2a4b018dbac2eec42e2'] = 'Tento tag generuje hodnotu počítadla. Počítadlo slúži ako rastúca hodnota pre každé nové referenčné číslo a napríklad môže nadobúdať hodnoty 1, 2, 3, 4, ... Ak tento tag použijete, bude potrebné zadať hodnotu pola \"Začiatočné číslo počítadla\", pre zvolenie začiatočnej hodnoty počítadla a hodnotu pola \"Vytvárať novú hodnotu počítadla pripočítaním čísla\", pre zadanie po akých číslach bude vždy narastať hodnota počítadla. ';
$_MODULE['<{modrefchange}prestashop>editorderpro_a6aa3edc6ab7d36a9443c115e479737f'] = 'Tento tag generuje ID objednávky.';
$_MODULE['<{modrefchange}prestashop>editorderpro_86067b860051b7697253ee19fc7076b2'] = 'Tento tag generuje ID obchodu.';
$_MODULE['<{modrefchange}prestashop>editorderpro_219bd8ccddadbab95fc82fcec8189fd8'] = 'Tento tag generuje číslo aktuálneho kalendárneho roku.';
$_MODULE['<{modrefchange}prestashop>editorderpro_d47554725168b79c3c6b59ac99d42c41'] = 'Tento tag generuje skratku čísla aktuálneho kalendárneho roku, napríklad 16, 17, 18.';
$_MODULE['<{modrefchange}prestashop>editorderpro_1bb43cb86029d716010b4e7527da0db9'] = 'Tento tag generuje aktuálne číslo mesiaca.';
$_MODULE['<{modrefchange}prestashop>editorderpro_90b95b808818529ac04815c33d4f1476'] = 'Tento tag generuje aktuálne číslo týždna v roku.';
$_MODULE['<{modrefchange}prestashop>editorderpro_27d6c76f72531a121371ee600e7f1901'] = 'Tento tag generuje aktuálne číslo dňa v týždni.';
$_MODULE['<{modrefchange}prestashop>editorderpro_b3a81f8e103086c3b7d6c3cd0ff396ff'] = 'Tento tag generuje aktuálne číslo dňa v mesiaci.';
$_MODULE['<{modrefchange}prestashop>editorderpro_91759b9f56ac9e3a92e21c7a6443aa77'] = 'Poznámka k objednávke';
$_MODULE['<{modrefchange}prestashop>editorderpro_56baadbd0e7bf71944fce65d4a21a180'] = 'Zobraziť poznámku vo faktúre';
$_MODULE['<{modrefchange}prestashop>editorderpro_b90d9c0670c835799bb3f1dfa643ad46'] = 'Poznámka k objednávke bola uložená';
$_MODULE['<{modrefchange}prestashop>editorderpro_bda74d25f53aa0e9e505c9876a99bdcd'] = 'Poznámku k objednávke sa nepodarilo uložiť';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_8de966ad9f10d322cbf563d1ee9aee72'] = 'Objednávku sa nepodarilo načítať';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7d85d64b37241f459f6d2c165ef533fe'] = 'Dátum objednávky bol uložený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_fe691cdc7b20a4e13d55399ea5e1f818'] = 'Operacia uloženia bola neúspešná';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_738f17e1338cfb32672cdfef9a91a424'] = 'Číslo objednávky nemôže mať viac ako 9 znakov';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_aa4955ee788e9781589d85219dff905d'] = 'Rovnaké číslo objednávky už existuje';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c5deffe5fc37511c10d6a9316185ce13'] = 'Číslo objednávky bolo uložený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_3e8167b90161f37c63a258741d38f985'] = 'Faktúru sa nepodarilo načítať';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a3b172048fe4028472cbe3093c7e4476'] = 'Dátum faktúry bol uložený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_745c3e34d4d4678199f8354ccfe761c6'] = 'Číslo faktúry bolo uložené';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a2a42aaaa3108afcc43b00d1de281bd8'] = 'Dátum dodania bol uložený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_22607e70c00e0ad786f70fa6c70fad8e'] = 'Číslo dodacieho listu bolo uložené';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c360174185ff982e1613005c9b03c83e'] = 'Dobropis sa nepodarilo načítať';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a70e98cb7160fab1c5b822da4c42c9b7'] = 'Dátum dobropisu bol uložený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_6378eaaa4dd3eca0baa019dcd24ed2c3'] = 'Číslo dobropisu bolo uložené';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_be9bd4226d451ce0f6f91a5a6b7e2d08'] = 'Faktúra bola úspešne odstránená';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_5619436626d4887922d6e71bda4927ea'] = 'Dodací list bol úspešne odstránený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_99d5fd555e562ea371967371d57b1a99'] = 'Dobropis sa nepodarilo načítať';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_64b720693953fd4d97b600401eca2159'] = 'Dobropis bol úspešne odstránený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_b90d9c0670c835799bb3f1dfa643ad46'] = 'Poznámka k objednávke bola uložená';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_691d11a8ab14443c6ae18cad21f5d71a'] = 'Status objednávky úspešne odstránený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_59c65b90bf83027d31300f3ec155ed5f'] = 'Operácia odstránenia bola neúspešná';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_28fc7abd913b2aac32767442eeda8594'] = 'Dopravcu sa nepodarilo načítať';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_949909feacf42cd551e8b006cbec533e'] = 'Dátum dodania bol uložený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d404787bd0dfafc976fb88482c127ed4'] = 'Názov dodania bol uložený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_31d342c033cf1751151a6ee53eb7dff7'] = 'Trekovacie číslo dodania bolo uložené';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_36db203440bfe960bb1daea51d1632a9'] = 'Cena dodania bola uložená';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_a5023ce5501398fc5570231ffa417979'] = 'Dátum platby bol uložený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_61cb392d835ed073242c3f10a88da726'] = 'Metóda platby bola uložená';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_cf1f9b61d9395e36975687e7fc49c44f'] = 'ID transakcie platby bolo uložené';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_7ce03e1c4929e09a1bc48e4c8055b891'] = 'Cena platby bola uložená';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ab8ccc15c68adb4e29e659d882eefbed'] = 'Platba bola úspešne odstránená';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e344ccefaf1f8505b231f3f974bed0b0'] = 'Objekt detailu objednávky sa nepodarilo načítať';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_daa9fe00f2c5ddc8f1d3213e0c840b54'] = 'Názov produtku bol zmenený';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_e51cb027a793524f243942d03e3ea69e'] = 'Operácia zmeny bola neúspešná';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_26beb437d3323bd4bfb0811b3e891315'] = '%d obrázok(y)';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_c2808546f3e14d267d798f4e0e6f102e'] = 'Prispôsobenie';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_f3566b62fb3dddee617860e949c692f9'] = 'Názov vouchera:';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_ed13b3693357ebed3751cb71cb639e65'] = 'Žiadny dopravca';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_d489ae1c5db6ffbc1a1d3ddaf66f228f'] = 'Mail bol odoslaný zákazníkovi';
$_MODULE['<{modrefchange}prestashop>admineditordercontroller_400ef486c25cdc9fe8dc70ac14e67fa5'] = 'Mail sa nepodarilo odoslať';
@@ -0,0 +1,6 @@
@CHARSET "UTF-8";
.howToUse{border-collapse: collapse;width: 100%;margin-bottom:13px;}
.howToUse th{height: 50px}
.howToUse th, .tagName{text-align: center;}
.howToUse td{height: 50px;vertical-align: bottom;padding: 15px;}
.howToUse, .howToUse th, .howToUse td{border: 1px solid black;}
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,84 @@
@CHARSET "UTF-8";
.popover-content .popoverInput, .operationStatus p {
line-height: normal !important;
font-weight: normal !important;
letter-spacing: normal !important;
font-family: "Open Sans", Helvetica, Arial, sans-serif !important;
font-size: 12px !important;
color: #666 !important;
}
.popover-content .icon-check {
color: #95CC6B;
cursor: pointer;
}
.popover-content input {
float: left;
margin-bottom: 8px !important;
}
.popover-content select {
width: auto;
float: left;
margin-bottom: 8px !important;
height: 22px;
padding: 0;
}
.popover-content .icon-remove {
margin-left: 2px;
color: #FF5450;
cursor: pointer;
}
.popover-content .popover-buttons {
font-size: 0;
margin-left: 4px;
float: left;
margin-top: 5px;
}
.popover-content .operationStatus {
text-align: center;
font: 400 12px/1.42857 "Open Sans",Helvetica,Arial,sans-serif;
text-transform: none;
}
.popover-content .shippingPriceLabel{
height: 16px;
}
.popover-content .shippingCostBlock{
clear: both;
}
.spinner {
width: 17px;
height: 15px;
right: 12px;
display:none;
position: absolute;
background-image: url(../img/spinner.gif) !important;
z-index: 999;
border: none !important;
background-size: 17px !important;
background-repeat: no-repeat !important;
background-position: center !important;
}
.preLoading {
width: 17px;
height: 15px;
right: 33px;
position: absolute;
background-image: url(../img/spinner.gif) !important;
z-index: 999;
border: none !important;
background-size: 17px !important;
background-repeat: no-repeat !important;
background-position: center !important;
}
.deletePayment .preLoading {
position: fixed;
}
.icon-pencil {
margin-left: 4px;
cursor: pointer;
color: rgb(85, 85, 85);
}
#orderResendMail {
margin-left: 6px;
}
@@ -0,0 +1,84 @@
@CHARSET "UTF-8";
.popoverInput, .operationStatus p {
line-height: normal !important;
font-weight: normal !important;
letter-spacing: normal !important;
font-family: "Open Sans", Helvetica, Arial, sans-serif !important;
font-size: 12px !important;
color: #666 !important;
}
.icon-check {
color: #95CC6B;
cursor: pointer;
}
.popover-content input {
float: left;
margin-bottom: 8px !important;
}
.popover-content select {
width: auto;
float: left;
margin-bottom: 8px !important;
height: 22px;
padding: 0;
}
.icon-remove {
margin-left: 2px;
color: #FF5450;
cursor: pointer;
}
.popover-buttons {
font-size: 0;
float: right;
margin-left: 8px;
}
.operationStatus {
text-align: center;
font: 400 12px/1.42857 "Open Sans",Helvetica,Arial,sans-serif;
text-transform: none;
}
.shippingPriceLabel{
height: 16px;
}
.shippingCostBlock{
clear: both;
}
.spinner {
width: 17px;
height: 15px;
right: 12px;
display:none;
position: absolute;
background-image: url(../img/spinner.gif) !important;
z-index: 999;
border: none !important;
background-size: 17px !important;
background-repeat: no-repeat !important;
background-position: center !important;
}
.preLoading {
width: 17px;
height: 15px;
right: 33px;
position: absolute;
background-image: url(../img/spinner.gif) !important;
z-index: 999;
border: none !important;
background-size: 17px !important;
background-repeat: no-repeat !important;
background-position: center !important;
}
.deletePayment .preLoading {
position: fixed;
}
.icon-pencil {
margin-left: 4px;
cursor: pointer;
color: rgb(132, 73, 73);
font-size: 20px;
}
#orderResendMail {
margin-left: 6px;
}
@@ -0,0 +1,19 @@
@CHARSET "UTF-8";
.icon-pencil {
display:none !important;
}
#orderResendMail {
display:none !important;
}
.deleteStatus {
display:none !important;
}
.deletePayment {
display:none !important;
}
.product_action {
display:none !important;
}
#add_product {
display:none !important;
}
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,111 @@
/*
* 2021 Keshva
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
*/
$(document).ready(function(){
counterResetDate = $("#counter_reset_date").datepicker({dateFormat: 'yy-mm-dd'});
$("#counter_reset_date").prop("readonly", true);
if($("#reference_number_format").val().indexOf("{RANDOM_NUMBER}") > -1){displayFields("#random_number_length",true);}else{displayFields("#random_number_length",false);}
if($("#reference_number_format").val().indexOf("{RANDOM_ALPHABETIC}") > -1){displayFields("#random_alphabetic_length",true);}else{displayFields("#random_alphabetic_length",false);}
if($("#reference_number_format").val().indexOf("{RANDOM_ALPHANUMERIC}") > -1){displayFields("#random_alphanumeric_length",true);}else{displayFields("#random_alphanumeric_length",false);}
if($("#reference_number_format").val().indexOf("{COUNTER}") > -1){
displayFields("#counter_start_at",true);displayFields("#counter_increment_by",true);displayFields(".ResetCounterInterval:eq(0)",true);displayFields(".CounterResetNow:eq(0)",true);displayFields(".CounterReferenceLength:eq(0)",true);
if($(".CounterReferenceLength input:checked").val() == 1){displayFields("#counter_reference_length",true);}else{displayFields("#counter_reference_length",false);}
if($(".ResetCounterInterval input:checked").val() == 3){displayFields("#counter_reset_number",true);}else{displayFields("#counter_reset_number",false);}
if($(".ResetCounterInterval input:checked").val() == 4){displayFields("#counter_reset_date",true);}else{displayFields("#counter_reset_date",false);}
if($(".CounterReferenceLength input:checked").val() == 1){
nextCounterValue = displayReferenceLength($("#counter_reference_length option:selected").val(), counterActualValue);
}else{
nextCounterValue = counterActualValue;
}
$("#counter_start_at").parent().append("<p class=\'help-block\'>Next counter value: " + nextCounterValue + "</p>")
}else{
displayFields("#counter_start_at",false);displayFields("#counter_increment_by",false);displayFields(".ResetCounterInterval:eq(0)",false);displayFields(".CounterResetNow:eq(0)",false);displayFields(".CounterReferenceLength:eq(0)",false);displayFields("#counter_reset_number",false);displayFields("#counter_reset_date",false);displayFields("#counter_reference_length",false);
}
$("#reference_number_format").bind("keyup change", function(e) {
if(this.value.indexOf("{RANDOM_NUMBER}") > -1){displayFields("#random_number_length",true);}else{displayFields("#random_number_length",false);}
if(this.value.indexOf("{RANDOM_ALPHABETIC}") > -1){displayFields("#random_alphabetic_length",true);}else{displayFields("#random_alphabetic_length",false);}
if(this.value.indexOf("{RANDOM_ALPHANUMERIC}") > -1){displayFields("#random_alphanumeric_length",true);}else{displayFields("#random_alphanumeric_length",false);}
if(this.value.indexOf("{COUNTER}") > -1){
displayFields("#counter_start_at",true);displayFields("#counter_increment_by",true);displayFields(".ResetCounterInterval:eq(0)",true);displayFields(".CounterResetNow:eq(0)",true);displayFields(".CounterReferenceLength:eq(0)",true);
if($(".CounterReferenceLength input:checked").val() == 1){displayFields("#counter_reference_length",true);}else{displayFields("#counter_reference_length",false);}
if($(".ResetCounterInterval input:checked").val() == 3){displayFields("#counter_reset_number",true);}else{displayFields("#counter_reset_number",false);}
if($(".ResetCounterInterval input:checked").val() == 4){displayFields("#counter_reset_date",true);}else{displayFields("#counter_reset_date",false);}
}else{
displayFields("#counter_start_at",false);displayFields("#counter_increment_by",false);displayFields(".ResetCounterInterval:eq(0)",false);displayFields(".CounterResetNow:eq(0)",false);displayFields(".CounterReferenceLength:eq(0)",false);displayFields("#counter_reset_number",false);displayFields("#counter_reset_date",false);displayFields("#counter_reference_length",false);
}
});
$(".CounterReferenceLength input").click(function(){
if($(this).is(":checked") && $(this).val() == 1){displayFields("#counter_reference_length",true);}else{displayFields("#counter_reference_length",false);}
});
$(".ResetCounterInterval input").click(function(){
if($(this).is(":checked") && $(this).val() == 3){displayFields("#counter_reset_number",true);}else{displayFields("#counter_reset_number",false);}
if($(this).is(":checked") && $(this).val() == 4){displayFields("#counter_reset_date",true);}else{displayFields("#counter_reset_date",false);}
});
$("#counter_reference_length").bind("keyup change", function(){
if(counterActualValue != ""){
nextCounterValue = displayReferenceLength($(this).val(), counterActualValue);
$("#counter_start_at").parent().find(".help-block:eq(1)").remove();
$("#counter_start_at").parent().append("<p class=\'help-block\'>Next counter value: " + nextCounterValue + "</p>");
}
});
$(".modrefchange").on("submit", function(){
errorMessage = "";
if($("#reference_number_format").val().indexOf("{COUNTER}") > -1 && (!isNumber($("#counter_start_at").val()) || $("#counter_start_at").val() == "" || !isNumber($("#counter_increment_by").val()) || $("#counter_increment_by").val() == "" || $("#counter_increment_by").val() < 1 || $("#counter_start_at").val() < 1)){
if(errorMessage.length > 0){
errorMessage += ", "
}
errorMessage += translate.numberReferenceFormatError;
}
if($("#reference_number_format").val().indexOf("{COUNTER}") > -1 && ($(".ResetCounterInterval input:checked").val() == 3) && (!isNumber($("#counter_reset_number").val()) || $("#counter_reset_number").val() == "" || $("#counter_reset_number").val() < 1)){
if(errorMessage.length > 0){
errorMessage += ", "
}
errorMessage += translate.counterResetNumberError;
}
if($("#reference_number_format").val().indexOf("{COUNTER}") > -1 && ($(".ResetCounterInterval input:checked").val() == 4) && ($("#counter_reset_date").val() == "" || $("#counter_reset_date").val() == 0 || (counterResetDate.datepicker( "getDate" ) <= new Date()))){
if(errorMessage.length > 0){
errorMessage += ", "
}
errorMessage += translate.counterResetDateError;
}
if($("#reference_number_format").val() == ""){
errorMessage += translate.numberReferenceFormatEmptyError;
}
if(errorMessage.length > 0){
alert(errorMessage);
return false;
}
return true;
});
});
function displayFields(identification,isDisplay){
if(isDisplay){
$(identification).parents(".form-group").show();
}else{
$(identification).parents(".form-group").hide();
}
}
function displayReferenceLength(counterReferenceLengthSelected, counterActualValue){
nextCounterValue = "";
if(counterReferenceLengthSelected > counterActualValue.toString().length){
for (i = 0; i < (counterReferenceLengthSelected - counterActualValue.toString().length); i++){
nextCounterValue += "0";
}
nextCounterValue += counterActualValue;
}else{
nextCounterValue += counterActualValue;
}
return nextCounterValue;
}
function isNumber(value) {
if ((undefined === value) || (null === value)){
return false;
}
if (typeof value == "number") {
return true;
}
return !isNaN(value - 0);
}
@@ -0,0 +1,112 @@
/*
* 2021 Keshva
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
*/
$(document).ready(function(){
counterResetDate = $("#counter_reset_date").datepicker({dateFormat: 'yy-mm-dd'});
$("#counter_reset_date").prop("readonly", true);
if($("#reference_number_format").val().indexOf("{RANDOM_NUMBER}") > -1){displayFields("#random_number_length",true);}else{displayFields("#random_number_length",false);}
if($("#reference_number_format").val().indexOf("{RANDOM_ALPHABETIC}") > -1){displayFields("#random_alphabetic_length",true);}else{displayFields("#random_alphabetic_length",false);}
if($("#reference_number_format").val().indexOf("{RANDOM_ALPHANUMERIC}") > -1){displayFields("#random_alphanumeric_length",true);}else{displayFields("#random_alphanumeric_length",false);}
if($("#reference_number_format").val().indexOf("{COUNTER}") > -1){
displayFields("#counter_start_at",true);displayFields("#counter_increment_by",true);displayFields("label[for='counter_reset_interval']:eq(0)",true);displayFields("label[for='counter_reset_now']:eq(0)",true);displayFields("label[for='counter_reference_length_in_use']:eq(0)",true);
if($("label[for='counter_reference_length_in_use']:eq(0)").parent().find("input:checked").val() == 1){displayFields("#counter_reference_length",true);}else{displayFields("#counter_reference_length",false);}
if($("label[for='counter_reset_interval']:eq(0)").parent().find("input:checked").val() == 3){displayFields("#counter_reset_number",true);}else{displayFields("#counter_reset_number",false);}
if($("label[for='counter_reset_interval']:eq(0)").parent().find("input:checked").val() == 4){displayFields("#counter_reset_date",true);}else{displayFields("#counter_reset_date",false);}
if($("label[for='counter_reference_length_in_use']:eq(0)").parent().find("input:checked").val() == 1){
nextCounterValue = displayReferenceLength($("#counter_reference_length option:selected").val(), counterActualValue);
}else{
nextCounterValue = counterActualValue;
}
$("#counter_start_at").parent().append("<p class=\'help-block\'>Next counter value: " + nextCounterValue + "</p>")
}else{
displayFields("#counter_start_at",false);displayFields("#counter_increment_by",false);displayFields("label[for='counter_reset_interval']:eq(0)",false);displayFields("label[for='counter_reset_now']:eq(0)",false);displayFields("label[for='counter_reference_length_in_use']:eq(0)",false);displayFields("#counter_reset_number",false);displayFields("#counter_reset_date",false);displayFields("#counter_reference_length",false);
}
$("#reference_number_format").bind("keyup change", function(e) {
if(this.value.indexOf("{RANDOM_NUMBER}") > -1){displayFields("#random_number_length",true);}else{displayFields("#random_number_length",false);}
if(this.value.indexOf("{RANDOM_ALPHABETIC}") > -1){displayFields("#random_alphabetic_length",true);}else{displayFields("#random_alphabetic_length",false);}
if(this.value.indexOf("{RANDOM_ALPHANUMERIC}") > -1){displayFields("#random_alphanumeric_length",true);}else{displayFields("#random_alphanumeric_length",false);}
if(this.value.indexOf("{COUNTER}") > -1){
displayFields("#counter_start_at",true);displayFields("#counter_increment_by",true);displayFields("label[for='counter_reset_interval']:eq(0)",true);displayFields("label[for='counter_reset_now']:eq(0)",true);displayFields("label[for='counter_reference_length_in_use']:eq(0)",true);
if($("label[for='counter_reference_length_in_use']:eq(0)").parent().find("input:checked").val() == 1){displayFields("#counter_reference_length",true);}else{displayFields("#counter_reference_length",false);}
if($("label[for='counter_reset_interval']:eq(0)").parent().find("input:checked").val() == 3){displayFields("#counter_reset_number",true);}else{displayFields("#counter_reset_number",false);}
if($("label[for='counter_reset_interval']:eq(0)").parent().find("input:checked").val() == 4){displayFields("#counter_reset_date",true);}else{displayFields("#counter_reset_date",false);}
}else{
displayFields("#counter_start_at",false);displayFields("#counter_increment_by",false);displayFields("label[for='counter_reset_interval']:eq(0)",false);displayFields("label[for='counter_reset_now']:eq(0)",false);displayFields("label[for='counter_reference_length_in_use']:eq(0)",false);displayFields("#counter_reset_number",false);displayFields("#counter_reset_date",false);displayFields("#counter_reference_length",false);
}
});
$("label[for='counter_reference_length_in_use']:eq(0)").parent().find("input").click(function(){
if($(this).is(":checked") && $(this).val() == 1){displayFields("#counter_reference_length",true);}else{displayFields("#counter_reference_length",false);}
});
$("label[for='counter_reset_interval']:eq(0)").parent().find("input").click(function(){
if($(this).is(":checked") && $(this).val() == 3){displayFields("#counter_reset_number",true);}else{displayFields("#counter_reset_number",false);}
if($(this).is(":checked") && $(this).val() == 4){displayFields("#counter_reset_date",true);}else{displayFields("#counter_reset_date",false);}
});
$("#counter_reference_length").bind("keyup change", function(){
if(counterActualValue != ""){
nextCounterValue = displayReferenceLength($(this).val(), counterActualValue);
$("#counter_start_at").parent().find(".help-block:eq(1)").remove();
$("#counter_start_at").parent().append("<p class=\'help-block\'>Next counter value: " + nextCounterValue + "</p>");
}
});
$(".modrefchange").on("submit", function(){
errorMessage = "";
if($("#reference_number_format").val().indexOf("{COUNTER}") > -1 && (!isNumber($("#counter_start_at").val()) || $("#counter_start_at").val() == "" || !isNumber($("#counter_increment_by").val()) || $("#counter_increment_by").val() == "" || $("#counter_increment_by").val() < 1 || $("#counter_start_at").val() < 1)){
if(errorMessage.length > 0){
errorMessage += ", "
}
errorMessage += translate.numberReferenceFormatError;
}
if($("#reference_number_format").val().indexOf("{COUNTER}") > -1 && ($("label[for='counter_reset_interval']:eq(0)").parent().find("input:checked").val() == 3) && (!isNumber($("#counter_reset_number").val()) || $("#counter_reset_number").val() == "" || $("#counter_reset_number").val() < 1)){
if(errorMessage.length > 0){
errorMessage += ", "
}
errorMessage += translate.counterResetNumberError;
}
if($("#reference_number_format").val().indexOf("{COUNTER}") > -1 && ($("label[for='counter_reset_interval']:eq(0)").parent().find("input:checked").val() == 4) && ($("#counter_reset_date").val() == "" || $("#counter_reset_date").val() == 0 || (counterResetDate.datepicker( "getDate" ) <= new Date()))){
if(errorMessage.length > 0){
errorMessage += ", "
}
errorMessage += translate.counterResetDateError;
}
if($("#reference_number_format").val() == ""){
errorMessage += translate.numberReferenceFormatEmptyError;
}
if(errorMessage.length > 0){
alert(errorMessage);
return false;
}
return true;
});
});
function displayFields(identification,isDisplay){
if(isDisplay){
$(identification).parents(".form-group").show();
}else{
$(identification).parents(".form-group").hide();
}
}
function displayReferenceLength(counterReferenceLengthSelected, counterActualValue){
nextCounterValue = "";
if(counterReferenceLengthSelected > counterActualValue.toString().length){
for (i = 0; i < (counterReferenceLengthSelected - counterActualValue.toString().length); i++){
nextCounterValue += "0";
}
nextCounterValue += counterActualValue;
}else{
nextCounterValue += counterActualValue;
}
return nextCounterValue;
}
function isNumber(value) {
if ((undefined === value) || (null === value)){
return false;
}
if (typeof value == "number") {
return true;
}
return !isNaN(value - 0);
}
@@ -0,0 +1,14 @@
/*
* 2021 Keshva
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
*/
$(document).ready(function(){
$(".modrefchange .panel-heading").height(63);
$(".modrefchange .panel-heading").append("<br/>" + translate.config_title + ":");
if ($(".modrefchange .form-group").length == 0) {
$(".modrefchange .panel-footer").before("<div class='control-label' style='color:#CA6F6F; font-weight: bold; text-align: center;'>" + translate.missing_employees + "</div>");
$(".modrefchange button[name='submitEditOrderPro']").remove();
}
});
@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;
@@ -0,0 +1,878 @@
/*
* 2021 Keshva
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
*/
var isPopoverActive = false;
var isStoring = false;
var lastChangedShippingCostType = 'taxExcl';
$(document).ready(function() {
// pretazenie funkcie, ktora sa vola po pridani noveho produktu
// pokial je uz produkt doruceny, tak nepridava moznost jeho updatu a prida input pre editaciu nazvu produktu
if (typeof addViewOrderDetailRow !== 'undefined') {
var origAddViewOrderDetailRow = addViewOrderDetailRow;
addViewOrderDetailRow = function(str) {
origAddViewOrderDetailRow(str);
displayAddProduct(false);
initProductLine();
}
}
//pretazenie funkcie, ktora sa vola po zeditovani produktu
if (typeof refreshProductLineView !== 'undefined') {
var origRefreshProductLineView = refreshProductLineView;
refreshProductLineView = function(param1, param2) {
idOrderDetail = $(param2).find('.edit_product_id_order_detail').val();
productName = $(".edit_product_id_order_detail[value=" + idOrderDetail + "]").parents('.product-line-row:eq(0)').find('.edit_product_name').val();
//premenovanie produktu cez ajax a nasledne zobrazenie riadku produktu s novym nazvom, ak sa ho podari ulozit
$.when(ajaxChangeProductName(idOrderDetail, productName)).then(function(ajaxChangeProductNameReturn) {
if (!ajaxChangeProductNameReturn.errors) {
param2 = $(param2).clone();
param2.find('.productName').html(productName);
}
origRefreshProductLineView(param1, param2);
initProductLine();
});
}
}
// pretazenie funkcie len za ucelom opatovneho vykreslenia ceruziek pre update tabulky shipping
if (typeof updateShipping !== 'undefined') {
var origUpdateShipping = updateShipping;
updateShipping = function(str){
origUpdateShipping(str);
initShipping();
}
}
//pretazenie funkcie len za ucelom opatovneho vykreslenia ceruziek pre update tabulky documents
if (typeof updateDocuments !== 'undefined') {
var origUpdateDocuments = updateDocuments;
updateDocuments = function(str) {
origUpdateDocuments(str);
initDocumentsTable();
}
}
displayAddProduct(true);
displayResendMailButton();
initOrderDateAndNumber();
initDocumentsTable();
initOrderNote();
initShipping();
initOrderPayment();
initDeleteStatuses();
initProductLine();
initEvents();
updateInvoice(invoices);
});
function displayAddProduct(isInit) {
if (hasBeenDelivered) {
editProduct = '<td class="product_action text-right"><div class="btn-group"><button type="button" class="btn btn-default edit_product_change_link"><i class="icon-pencil"></i>' + trans.edit + '</button><button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button><ul class="dropdown-menu" role="menu"><li><a href="#" class="delete_product_line"><i class="icon-trash"></i>' + trans.remove + '</a></li></ul></div><button type="button" class="btn btn-default submitProductChange" style="display: none;"><i class="icon-ok"></i>' + trans.update + '</button><button type="button" class="btn btn-default cancel_product_change_link" style="display: none;"><i class="icon-remove"></i>' + trans.cancel + '</button></td>';
if (isInit) {
// pokial ide o prve nacitanie stranky pridame do kazdeho riadku produktu editaciu produktu
$(editProduct).insertAfter(".product-line-row .partial_refund_fields");
$(".order_action").prepend('<button type="button" id="add_product" class="btn btn-default"><i class="icon-plus-sign"></i>' + trans.add_product + '</button>');
// funkcia init() je nativna PS funkcia z js/admin/orders.js
init();
} else {
// pokial nejde o inicializaciu ale o nasledne vykreslenie po pridani produktu, pridame button na pridanie produktu len k poslednemu zaznamu
$(editProduct).insertAfter($(".product-line-row").last().find(".partial_refund_fields"));
}
}
}
function displayResendMailButton() {
$("#tabOrder").parents(".panel:eq(0)").find(".well:eq(0)").append('<a id="orderResendMail" class="btn btn-default" href="javascript:void(0)"><i class="icon-send"></i>' + trans.resend_email + '</a>');
}
function initOrderDateAndNumber() {
//datum objednavky
generatePopover($('.kpi-content:eq(0) .value'), 0, null, 'OrderDate', {'type' : 'datetime'});
//cislo objednavky
generatePopover($('.panel-heading .badge:eq(0)'), 0, null, 'OrderNumber', {'type' : 'input'});
}
// tabulka dokumentov - faktura, dodaci list, dobropisy
function initDocumentsTable() {
if (!$('#documents table:eq(0) tbody tr td:eq(0)').hasClass('list-empty')) {
$('#documents table:eq(0) thead tr').append('<th></th>');
$('#documents table:eq(0) tbody tr').each(function() {
if ($(this).attr('id').substring(0, 8) == 'invoice_') {
//prvy stlpec na fakture - datum faktury
generatePopover($(this).find('td:eq(0)'), $(this).attr('id').substring(8, $(this).attr('id').length), null, 'InvoiceDate', {'type' : 'date'});
//treti stlpec na fakture - cislo faktury
generatePopover($(this).find('td:eq(2)'), $(this).attr('id').substring(8, $(this).attr('id').length), $(this).find('td:eq(2)').find('a'), 'InvoiceNumber', {'type' : 'input'});
addRemoveButtonOnDocument($(this), 'Invoice', 8);
} else if ($(this).attr('id').substring(0, 9) == 'delivery_') {
//prvy stlpec na dodacom liste - datum dodacieho listu
generatePopover($(this).find('td:eq(0)'), $(this).attr('id').substring(9, $(this).attr('id').length), null, 'DeliveryDate', {'type' : 'date'});
//treti stlpec na dodacom liste - cislo dodacieho listu
setDocumentReference($(this).attr('id').substring(9, $(this).attr('id').length), $(this).find('td:eq(2)').find('a'), 'delivery_slip');
generatePopover($(this).find('td:eq(2)'), $(this).attr('id').substring(9, $(this).attr('id').length), $(this).find('td:eq(2)').find('a'), 'DeliveryNumber', {'type' : 'input'});
addRemoveButtonOnDocument($(this), 'DeliverySlip', 9);
} else if ($(this).attr('id').substring(0, 10) == 'orderslip_') {
orderSlipID = parseInt($(this).attr('id').replace("orderslip_", ""));
//prvy stlpec na dobropise - datum dobropisu
generatePopover($(this).find('td:eq(0)'), orderSlipID, null, 'CreditslipDate', {'type' : 'date'});
//treti stlpec na dobropise - cislo dobropisu
setDocumentReference(orderSlipID, $(this).find('td:eq(2)').find('a'), 'credit_slip');
generatePopover($(this).find('td:eq(2)'), orderSlipID, $(this).find('td:eq(2)').find('a'), 'CreditslipNumber', {'type' : 'input'});
addRemoveButtonOnDocument($(this), 'CreditSlip', 10);
}
});
calculateDocumentsTableCellWidth();
}
}
// sekcia order note
function initOrderNote() {
$('#documents').parents('.panel:eq(0)').after('<div class="panel"><div class="panel-heading"><i class="icon-edit"></i>' + trans.orderNoteTitle + '</div><form id="order_note" class="form-horizontal" action="#"><div class="form-group"><div class="col-lg-12"><textarea name="orderNoteContent" id="orderNoteContent" class="textarea-autosize rte autoload_rte" style="overflow: hidden; overflow-wrap: break-word; resize: none; height: 48px;"></textarea></div></div><div class="row"><div class="col-lg-12"><span style="top: 6px; position: relative">' + trans.orderNoteInInvoice + '<input style="margin-left: 5px;" name="orderNoteOnInvoice" id="orderNoteOnInvoice" type="checkbox"></span><a id="submitOrderNote" class="btn btn-default pull-right" style="float: right;"><i class="icon-save"></i><span style="margin-left: 4px;">' + trans.save + '</span></a></div><div class="col-lg-12" style="height: 12px"><span id="orderNoteStatus" style="top: 7px; position: relative; float: right; display:none;">' + trans.orderNoteStored + '</span></div></div></form></div>');
$('#orderNoteContent').html(orderNote.note);
$('#orderNoteOnInvoice').prop('checked', parseInt(orderNote.show_on_invoice) == 1);
tinySetup({
editor_selector :"autoload_rte"
});
}
// tabulka shipping
// novy zaznam do db tabulky order_carrier sa pridava len pokial sa pridava novy produkt do objednavky
// viac ako jeden zaznam v zobrazenej tabulke ma len vtedy ked je v db tabulke order_carrier viac zaznamov s roznym id_carrier
// situacia ze je viac ako jeden zaznam sa moze stat ked:
// 1. je vytvoreny nejaky sposob dopravy s nejakym id na ktorom bola vytvorena objednavka
// 2. tento sposob dopravy sa vymaze ale v db tabulke orders stale figuruje v stlpci id_carrier pri tejto objednavke
// 3. vytvori sa novy produkt cez objednavku, ktoremu sa nastavuje aktualny id_carrier ktory je na objednavke
// 4. tento id_carrier sa ale nenajde lebo je vymazany a tym padom sa vytvori novy zaznam v order_carrier s inym id_carrier (uz su tam dva zaznami, odidva s roznym id_carrier)
// 5. keby sposob dopravy nebol vymazany, tiez by sa vytvoril novy zaznam v order_carrier, ale s tym istym id_carrier, cize by to bolo v poriadku
// Sposoby platby su troska blbo robene lebo ked sa hocico zmeni cez admin na sposobe dopravy, tak sa sa premaze aj id sposobu dopravy (id_carrier) a da sa mu nove
function initShipping() {
$('#shipping_table tbody tr').each(function(){
trObject = $(this);
if (psVersion17) {
orderCarrierID = trObject.find('.edit_shipping_link').attr('data-id-order-carrier');
} else {
orderCarrierID = trObject.find('.shipping_number_edit input[name=id_order_carrier]').val();
}
generatePopover(trObject.find('td:eq(0)'), orderCarrierID, null, 'ShippingDate', {'type' : 'datetime'});
carrriersToSelect = [];
$(carriers).each(function(indexCarr, objectCarr) {
selectedOrderCarrier = false;
$(shipping.values).each(function(indexShip, objectShip) {
if (parseInt(objectCarr.id_carrier) == parseInt(objectShip.id_carrier) && orderCarrierID == parseInt(objectShip.id_order_carrier)) {
selectedOrderCarrier = true;
}
});
carrriersToSelect.push({"id_carrier" : objectCarr.id_carrier, "name" : objectCarr.name, "selected" : selectedOrderCarrier});
});
generatePopover(trObject.find('td:eq(2)'), orderCarrierID, null, 'ShippingCarrier', {'type' : 'select', 'values' : carrriersToSelect});
$(shipping.values).each(function(index, object) {
if (parseInt(object.id_order_carrier) == parseInt(orderCarrierID)) {
generateShippingCostPopover(trObject.find('td:eq(4)'), orderCarrierID, {"priceTaxIncl" : object.shipping_cost_tax_incl, "priceTaxExcl" : object.shipping_cost_tax_excl, "tax" : shipping.tax});
}
});
//zakomentovanie tracking number - robilo problemy, pretoze ked dakomu vygenerovalo tracking number po objednavke z roznymi znakmi tak mne to rozbilo funcionalitu
//menenie tracking number je uz spravene v preste
//generatePopover(trObject.find('td:eq(5) span'), orderCarrierID, null, 'ShippingTrackingNumber', {'type' : 'input'});
//trObject.find('.edit_shipping_number_link').hide();
});
}
function initOrderPayment() {
trCount = 0;
$("#formAddPayment table tbody tr").each(function() {
trObject = $(this);
if (typeof trObject.attr('class') === typeof undefined && trObject.find('.list-empty').length == 0) {
generatePopover(trObject.find('td:eq(0)'), trCount, null, 'PaymentDate', {'type' : 'datetime'});
generatePopover(trObject.find('td:eq(1)'), trCount, null, 'PaymentMethod', {'type' : 'input'});
generatePopover(trObject.find('td:eq(2)'), trCount, null, 'PaymentTransactionID', {'type' : 'input'});
generatePopover(trObject.find('td:eq(3)'), trCount, null, 'PaymentAmount', {'type' : 'input', 'output' : 'price'});
$('<td><span data-number="' + trCount + '" class="deletePayment pull-right btn btn-default"><i class="icon-trash"></i><span class="preLoading" style="display:none"></span></span></td>').insertBefore(trObject.find('.actions'));
trCount++;
}
});
}
function initDeleteStatuses() {
statusesCount = $('#status table:eq(0) tbody tr').length;
if (statusesCount > 1) {
$('#status table:eq(0) tbody tr').each(function() {
$(this).append('<td><span data-number="' + statusesCount + '" class="deleteStatus pull-right btn btn-default"><i class="icon-trash"></i><span class="preLoading" style="display:none"></span></span></td>');
statusesCount--;
});
}
}
function initProductLine() {
$("#orderProducts tbody tr").each(function() {
if ($(this).find('td:eq(1) .product_name_edit').length == 0) {
$(this).find('td:eq(1) a').addClass('product_name_show');
$('<span class="product_name_edit" style="display:none;"><input type="text" name="product_name" class="edit_product_name" value="' + $(this).find('.productName').html() + '"></span>').insertAfter($(this).find('td:eq(1) a'));
}
});
}
function initEvents() {
$(document).on("click", ".icon-pencil", function() {
hidePopovers($(this).siblings('.show-popover'));
$(this).siblings('.show-popover').popover('show');
//hodnota data-value-exception-path urcuje, ci je hodnota pola v surodencovi .show-popover, alebo az pod nim v elemente "a"
if ($(this).siblings('.show-popover').attr('data-value-exception-path') == 'true') {
$(this).siblings('.show-popover').find('a').addClass('setValuePlace');
} else {
//setValuePlace sa zadava kvoli tomu aby po zbehnuti ajaxu, vedel system nastavit hodnotu kam treba v html
//po zapisani hodnoty do setValuePlace sa tato trieda vymaze
$(this).siblings('.show-popover').addClass('setValuePlace');
}
$(this).siblings('.show-popover').addClass('hasPopover');
if ($(this).siblings('.show-popover').attr('data-type') == 'date' || $(this).siblings('.show-popover').attr('data-type') == 'datetime') {
setDatepicker($(this).siblings('.show-popover').attr('data-type'));
}
});
$(document).on('click', '.deleteStatus', function (e) {
ajaxDeleteOrderStatusOrPaymentOrDocument($(this), "Status");
});
$(document).on('click', '.deletePayment', function (e) {
ajaxDeleteOrderStatusOrPaymentOrDocument($(this), "Payment");
});
$(document).on('click', '.deleteDocument', function (e) {
ajaxDeleteOrderStatusOrPaymentOrDocument($(this), $(this).attr("data-type"));
});
$(document).on('click', '#submitOrderNote', function (e) {
ajaxSetOrderNote();
});
$(document).on('click', '#orderResendMail', function (e) {
ajaxResendMailToCustomer();
});
$(document).on('click', '.classicCheck', function (e) {
ajaxReferenceSetData($(this).parents('.newValue:eq(0)'));
});
$(document).on('click', '.shippingCostCheck', function (e) {
ajaxShippingCostSetData($(this).parents('.shippingCost'));
});
$(document).on('click', '.icon-remove', function (e) {
hidePopovers(null);
});
$(document).on("keyup change", ".shippingCostIncl input", function() {
this.value = this.value.replace(/[^0-9\.,]/g,'');
recalculateShippingCost($(this).parents('.shippingCost'), 'priceTaxIncl');
});
$(document).on("keyup change", ".shippingCostExcl input", function() {
this.value = this.value.replace(/[^0-9\.,]/g,'');
recalculateShippingCost($(this).parents('.shippingCost'), 'priceTaxExcl');
});
$(document).on("keyup change", ".shippingCostTax input", function() {
this.value = this.value.replace(/[^0-9\.,]/g,'');
recalculateShippingCost($(this).parents('.shippingCost'), 'tax');
});
$(document).on("keyup change", ".newValue[data-name='setPaymentAmount'] input", function() {
this.value = this.value.replace(/[^0-9\.,]/g,'');
});
if (psVersionLess1607) {
$('.edit_product_change_link').bind('click', function() {
$(this).parents('tr:eq(0)').find('.product_name_show').hide();
$(this).parents('tr:eq(0)').find('.product_name_edit').show();
});
$('.cancel_product_change_link, .submitProductChange').bind('click', function() {
$(this).parents('tr:eq(0)').find('.product_name_show').show();
$(this).parents('tr:eq(0)').find('.product_name_edit').hide();
});
} else {
$(document).on('click', '.edit_product_change_link', function(){
$(this).parents('tr:eq(0)').find('.product_name_show').hide();
$(this).parents('tr:eq(0)').find('.product_name_edit').show();
});
$(document).on('click', '.cancel_product_change_link, .submitProductChange', function(){
$(this).parents('tr:eq(0)').find('.product_name_show').show();
$(this).parents('tr:eq(0)').find('.product_name_edit').hide();
});
}
//aby zmizol popover ked sa klikne mimo neho
$(document).on('click', function (e) {
//pokial sa neklikne na datepicker tlacidlo, alebo na ikonu pera
if (!$(e.target).hasClass('ui-icon') && !$(e.target).hasClass('icon-pencil') && !$(e.target).hasClass('ui-state-default')) {
$('.hasPopover').each(function () {
if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
$(this).popover('hide');
$(document).find('.setValuePlace').removeClass('setValuePlace');
}
});
}
});
}
function generatePopover(object, id, objectValuePath, action, typeValues) {
object.html('<span data-html="true" data-placement="top" data-value-exception-path="' + (objectValuePath != null ? 'true' : 'false') + '" data-type="' + typeValues.type + '" data-content="' + getPopoverContent((objectValuePath != null ? objectValuePath : object), action, typeValues, id) + '" class="show-popover set' + action + id + 'Class">' + object.html() + '</span><span class="icon-pencil"></span>');
}
function generateShippingCostPopover(object, id, shippingCost) {
object.html('<span data-html="true" data-placement="top" data-content="' + getShippingCostPopoverContent(object, id, shippingCost) + '" class="show-popover">' + object.html() + '</span><span class="icon-pencil"></span>');
}
function addRemoveButtonOnDocument(object, type, substringCutIn) {
idDocument = object.attr('id').substring(substringCutIn, object.attr('id').length);
object.append('<td><span data-number="' + idDocument + '" data-type="' + type + '" class="deleteDocument pull-right btn btn-default"><i class="icon-trash"></i><span class="preLoading" style="display:none"></span></span></td>');
}
function getPopoverContent(valueObject, name, typeValues, id) {
popoverContent = "<div class='newValue' data-name='set" + name + "' data-type='" + typeValues.type + "' " + (typeof typeValues.output !== typeof undefined ? "data-output='" + typeValues.output + "'" : "") + " data-id='" + id + "'>";
if (typeValues.type == 'select') {
popoverContent += "<select class='popoverInput'>";
$(typeValues.values).each(function(index, value) {
popoverContent += "<option " + (value.selected ? 'selected' : '') + " value='" + value.id_carrier + "'>" + value.name + "</option>";
});
popoverContent += "</select>";
} else {
if (typeof typeValues.output !== typeof undefined && typeValues.type == 'input') {
if (typeValues.output == 'price') {
value = formatedNumberToFloat(valueObject.html().trim(), currency_format, currency_sign);
}
} else {
value = valueObject.html().trim();
}
popoverContent += "<input class='popoverInput' placeholder='" + valueObject.html().trim() + "' value='" + value + "'/>";
}
popoverContent += "<div class='popover-buttons'><span class='icon-check classicCheck'></span><span class='icon-remove'></span><span class='spinner'></span></div>";
popoverContent += "</div><div class='operationStatus'></div>";
return popoverContent;
}
function hidePopovers(object) {
$('.hasPopover').each(function () {
if (!$(this).is(object)) {
$(this).popover('hide');
$(document).find('.setValuePlace').removeClass('setValuePlace');
}
});
}
function setDocumentReference(id, placeToSet, documentType) {
$(documents).each(function(key, value) {
if (value.document_type == documentType && value.id_document == id) {
placeToSet.html(value.reference);
}
});
}
function getShippingCostPopoverContent(valueObject, id, shippingCost) {
popoverContent = "<div class='shippingCost' data-id='" + id + "'>";
popoverContent += "<div class='shippingCostExcl shippingCostBlock'>";
popoverContent += "<div class='shippingPriceLabel'><label>" + trans.tax_excl_price + ":</label></div>";
popoverContent += "<input class='popoverInput' value='" + Number((parseFloat(shippingCost.priceTaxExcl)).toFixed(3)) + "' placeholder='" + Number((parseFloat(shippingCost.priceTaxExcl)).toFixed(3)) + " (" + trans.tax_excl + ")'/>";
popoverContent += "</div>";
popoverContent += "<div class='shippingCostIncl shippingCostBlock'>";
popoverContent += "<div class='shippingPriceLabel'><label>" + trans.tax_incl_price + ":</label></div>";
popoverContent += "<input class='popoverInput' value='" + Number((parseFloat(shippingCost.priceTaxIncl)).toFixed(3)) + "' placeholder='" + Number((parseFloat(shippingCost.priceTaxIncl)).toFixed(3)) + " (" + trans.tax_incl + ")'/>";
popoverContent += "<div class='popover-buttons'><span class='icon-check shippingCostCheck'></span><span class='icon-remove'></span><span class='spinner'></span></div>";
popoverContent += "</div>";
popoverContent += "<div class='shippingCostTax shippingCostBlock'>";
popoverContent += "<div class='shippingPriceLabel'><label>" + trans.tax + " (%):</label></div>";
popoverContent += "<input class='popoverInput' value='" + Number((parseFloat(shippingCost.tax)).toFixed(3)) + "' placeholder='" + Number((parseFloat(shippingCost.tax)).toFixed(3)) + "% (" + trans.tax + ")'/>";
popoverContent += "</div>";
popoverContent += "</div><div class='operationStatus'></div>";
return popoverContent;
}
function setDatepicker(type) {
if (type == 'date') {
$(".popoverInput").datepicker();
} else {
$(".popoverInput").timepicker();
}
$(".popoverInput").prop('readonly', true);
$(".ui-datepicker").css("z-index","9999999999");
}
function calculateDocumentsTableCellWidth() {
tdMaxLenght = 0;
$('#documents table:eq(0) tbody tr').each(function() {
if ($(this).find('td:eq(2) a').length > 0) {
if ($(this).find('td:eq(2) a').html().trim().length > tdMaxLenght) {
tdMaxLenght = $(this).find('td:eq(2) a').html().trim().length;
}
}
});
$('#documents table:eq(0) tbody tr:eq(0) td:eq(2)').width((tdMaxLenght * 7) + 25);
}
function ajaxSetReferenceFinalMessage(sourceObject, message) {
objectWidth = sourceObject.width();
sourceObject.fadeOut("slow", function() {
sourceObject.empty();
sourceObject.parent().find('.operationStatus').width(objectWidth);
sourceObject.parent().find('.operationStatus').append('<p>' + message + '</p>');
sourceObject.parent().find('.operationStatus').fadeIn("slow");
setTimeout(function() {
hidePopovers(null);
}, 1000);
});
}
function afterAjaxMessage(messageText, messageType, type) {
message = '<div class="' + type + 'Message alert alert-' + messageType + '">';
message += '<button type="button" class="close" data-dismiss="alert">×</button>';
message += messageText;
message += '</div>';
if (type == "Status") {
$('#status').prepend(message);
} else if (type == "Payment") {
$('#formAddPayment').prepend(message);
} else if (type == "Mail") {
$("#tabOrder").parents(".panel:eq(0)").find(".well:eq(0)").prepend(message);
}
}
function removeDocumentLine(documentID, type) {
if (type == "Invoice") {
$("#documents #invoice_" + documentID).remove();
$("#documents #invoiceNote" + documentID).remove();
$("#documents #delivery_" + documentID).remove();
} else if (type == "DeliverySlip") {
$("#documents #delivery_" + documentID).remove();
} else {
$("#documents #orderslip_" + documentID).remove();
}
}
// funkcia ktora odstrani vsetky 3 selektovniky pre vyber faktur, pokial sa vymaze posledna faktura
// sluzi na to, aby nezostal po vymazani poslednej faktury prazdny selektovnik
function removeInvoicesSelects() {
if ($('#payment_invoice').length > 0) {
$('#payment_invoice').each(function() {
$(this).remove();
});
}
if ($('.edit_product_invoice').length > 0) {
$('.edit_product_invoice').each(function() {
$(this).remove();
});
}
}
function ajaxReferenceSetData(sourceObject) {
if (!isStoring && sourceObject.find(".popoverInput").val() != "") {
if (sourceObject.attr('data-type') == 'date' || sourceObject.attr('data-type') == 'datetime') {
value = formatDateTimeToMysql(sourceObject.find(".popoverInput").datepicker('getDate'), sourceObject.attr('data-type'));
} else {
value = sourceObject.find(".popoverInput").val();
if (typeof sourceObject.attr('data-output') !== typeof undefined && sourceObject.attr('data-type') == 'input') {
if (sourceObject.attr('data-output') == 'price') {
value = value.replace(/,/g, '.');
}
}
}
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
adminThemeDir: adminThemeDir,
action: sourceObject.attr('data-name'),
id: sourceObject.attr('data-id'),
value: value
},
beforeSend: function()
{
isStoring = true;
sourceObject.find('.icon-remove').css("visibility", "hidden");
sourceObject.find('.spinner').show();
},
success : function(res)
{
if (!res.errors) {
if (sourceObject.attr('data-name') == 'setShippingCarrier') {
// pokial je vykonavana zmana typy shippingu tak sa moze premenit cena za celkovy shipping objednavky (zlucit shippingi) aj cena za objednavku
// treba tym padom pregenerovat tabulku shipping aj celkovu cenu objednavky
// funkcie updateAmounts a updateShipping su nativne PS funkcie z js/admin/orders.js
updateAmounts(res.order);
shipping = {"values" : res.shipping, "tax" : res.order.carrier_tax_rate};
updateShipping(res.shipping_html);
} else {
//v pripade ze sa nastavuje cislo faktury, treba pregenerovat dokumenty ktore sa vykresluju v tabulke dokumentov
if (sourceObject.attr('data-name') == 'setInvoiceNumber') {
documents = $.parseJSON(res.documents);
updateInvoice(res.invoices);
}
//pokial je poslasny zo servera res.value, zobrazime na vystupe tuto hodnotu
if (typeof res.value !== typeof undefined) {
value = res.value;
}
//pregenerujeme paceholder a value na inpute popoveru
content = $('.' + sourceObject.attr('data-name') + sourceObject.attr('data-id') + 'Class').attr('data-content');
object = $('<div/>').html(content).contents();
$(object).find('input').attr('placeholder', value);
//pokial je urceny data-output, znamena to ze je potrebne zobrazit hodnotu v zadanom formate - napr "price"
if (typeof sourceObject.attr('data-output') !== typeof undefined && sourceObject.attr('data-type') == 'input') {
if (sourceObject.attr('data-output') == 'price') {
value = formatedNumberToFloat(value, currency_format, currency_sign).replace(/,/g, '');
}
}
$(object).find('input').attr('value', value);
$('.' + sourceObject.attr('data-name') + sourceObject.attr('data-id') + 'Class').attr('data-content', $(object).prop('outerHTML') + '<div class="operationStatus"></div>');
//pokial je urceny data-output, znamena to ze je potrebne zobrazit hodnotu v zadanom formate - napr "price"
if (typeof sourceObject.attr('data-output') !== typeof undefined && sourceObject.attr('data-type') == 'input') {
if (sourceObject.attr('data-output') == 'price') {
value = formatCurrency(parseFloat(value), currency_format, currency_sign, currency_blank);
}
}
//nastavime hodnotu do bunky pri ktorej bolo pero
$(".setValuePlace").html((sourceObject.attr('data-type') == 'select' ? sourceObject.find(".popoverInput option[value=" + value + "]").html() : value));
}
ajaxSetReferenceFinalMessage(sourceObject, res.result);
// toto pregeneruje tabulku s dokumentami aby pero nebolo pod nazvami
// TODO dat iba ked pojde o dokumenty
calculateDocumentsTableCellWidth();
} else {
alert(res.result);
setTimeout(function() {
hidePopovers(null);
}, 1000);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
alert(trans.can_not_be_stored);
setTimeout(function() {
hidePopovers(null);
}, 1000);
}
});
ajaxCall.always(function() {
isStoring = false;
});
}
}
function ajaxShippingCostSetData(sourceObject) {
if (!isStoring) {
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
adminThemeDir: adminThemeDir,
action: 'setShippingCostData',
id_order_carrier: sourceObject.attr('data-id'),
priceTaxIncl: parseFloat(sourceObject.find('.shippingCostIncl input').val().replace(/,/g, '.')),
priceTaxExcl: parseFloat(sourceObject.find('.shippingCostExcl input').val().replace(/,/g, '.')),
tax: parseFloat(sourceObject.find('.shippingCostTax input').val())
},
beforeSend: function()
{
isStoring = true;
sourceObject.find('.icon-remove').css("visibility", "hidden");
sourceObject.find('.spinner').show();
},
success : function(res)
{
if (!res.errors) {
// treba pregenerovat celkovu cenu objednavky aj shipping tabulku
// funkcie updateAmounts a updateShipping su nativne PS funkcie z js/admin/orders.js
updateAmounts(res.order);
shipping = {"values" : res.shipping, "tax" : res.order.carrier_tax_rate};
updateShipping(res.shipping_html);
} else {
alert(res.result);
setTimeout(function() {
hidePopovers(null);
}, 1000);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
alert(trans.can_not_be_stored);
setTimeout(function() {
hidePopovers(null);
}, 1000);
}
});
ajaxCall.always(function() {
isStoring = false;
});
}
}
function ajaxDeleteOrderStatusOrPaymentOrDocument(sourceObject, type) {
sourceObject.find('.icon-trash').css('visibility', 'hidden');
sourceObject.find('.preLoading').show();
if (!isStoring) {
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
action: "delete" + type,
number: sourceObject.attr('data-number'),
},
beforeSend: function()
{
isStoring = true;
$('.' + type + 'Message').remove();
},
success : function(res)
{
if (!res.errors) {
sourceObject.parents('tr:eq(0)').remove();
if (type == "Status") {
if ($('#status table:eq(0) tbody tr').length <= 1) {
$('.deleteStatus').each(function(){
$(this).parent().remove();
});
} else {
resetStatusIDs();
}
} else if (type == "Payment") {
resetPaymentIDs();
} else {
if (type == 'Invoice') {
updateInvoice(res.invoices);
if (res.invoices.length == 0) {
removeInvoicesSelects();
}
}
removeDocumentLine(sourceObject.attr('data-number'), type);
$("#tabOrder li:eq(1) span").html(res.documentsCount);
}
afterAjaxMessage(res.result, 'success', type);
} else {
sourceObject.find('.icon-trash').css('visibility', 'visible');
afterAjaxMessage(res.result, 'danger', type);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
sourceObject.find('.icon-trash').css('visibility', 'visible');
if (type == "Status") {
afterAjaxMessage(trans.order_status_removed, 'danger', type);
} else if (type == "Payment") {
afterAjaxMessage(trans.payment_removed, 'danger', type);
} else {
afterAjaxMessage(trans.document_removed, 'danger', type);
}
}
});
ajaxCall.always(function() {
sourceObject.find('.preLoading').hide();
isStoring = false;
});
}
}
function ajaxResendMailToCustomer() {
if (!isStoring) {
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
action: "resendEmail"
},
beforeSend: function()
{
isStoring = true;
$('.MailMessage').remove();
},
success : function(res)
{
if (!res.errors) {
afterAjaxMessage(res.result, 'success', 'Mail');
} else {
afterAjaxMessage(res.result, 'danger', 'Mail');
}
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
afterAjaxMessage(trans.mail_can_not_be_send, 'danger', 'Mail');
}
});
ajaxCall.always(function() {
isStoring = false;
});
}
}
function ajaxChangeProductName(idOrderDetail, productName) {
if (!isStoring) {
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
product_id_order_detail: idOrderDetail,
product_name: productName,
action: "changeProductName"
},
beforeSend: function()
{
isStoring = true;
}
});
ajaxCall.always(function() {
isStoring = false;
});
return ajaxCall;
}
}
function ajaxSetOrderNote() {
if (!isStoring) {
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
note: tinyMCE.get("orderNoteContent").getContent(),
show_on_invoice: (($('#orderNoteOnInvoice:checkbox:checked').length > 0) ? 1 : 0),
action: "setOrderNote"
},
beforeSend: function()
{
isStoring = true;
},
success : function(res)
{
if (!res.errors) {
$("#orderNoteStatus").css('color','green').html(res.result).fadeIn(1000).delay(1500).fadeOut(1000);
} else {
$("#orderNoteStatus").css('color','red').html(trans.orderNoteNotStored).fadeIn(1000).delay(1500).fadeOut(1000);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
$("#orderNoteStatus").css('color','red').html(trans.orderNoteNotStored).fadeIn(1000).delay(1500).fadeOut(1000);
}
});
ajaxCall.always(function() {
isStoring = false;
});
return ajaxCall;
}
}
function recalculateShippingCost(object, settedValueType) {
if (object.find(".shippingCostTax input").val().length == 0) {
shippingTax = 0;
} else {
shippingTax = parseFloat(object.find(".shippingCostTax input").val().replace(/,/g, '.'));
}
if (settedValueType == 'priceTaxIncl') {
calculateShippingCostTaxExcl(object, shippingTax);
lastChangedShippingCostType = 'taxIncl';
} else if (settedValueType == 'priceTaxExcl') {
calculateShippingCostTaxIncl(object, shippingTax);
lastChangedShippingCostType = 'taxExcl';
} else if (settedValueType == 'tax') {
if (lastChangedShippingCostType == 'taxExcl') {
calculateShippingCostTaxIncl(object, shippingTax);
} else {
calculateShippingCostTaxExcl(object, shippingTax);
}
}
}
function calculateShippingCostTaxIncl(object, shippingTax) {
if (object.find(".shippingCostExcl input").val().length > 0) {
shippingCostExcl = parseFloat(object.find(".shippingCostExcl input").val().replace(/,/g, '.'));
shippingCostIncl = shippingCostExcl *= (1 + shippingTax / 100);
object.find(".shippingCostIncl input").val(Number((shippingCostIncl).toFixed(3)));
} else {
object.find(".shippingCostIncl input").val('');
}
}
function calculateShippingCostTaxExcl(object, shippingTax) {
if (object.find(".shippingCostIncl input").val().length > 0) {
shippingCostIncl = parseFloat(object.find(".shippingCostIncl input").val().replace(/,/g, '.'));
shippingCostExcl = shippingCostIncl / (1 + shippingTax / 100);
object.find(".shippingCostExcl input").val(Number((shippingCostExcl).toFixed(3)));
} else {
object.find(".shippingCostExcl input").val('');
}
}
function resetStatusIDs() {
statusesCount = $('#status table:eq(0) tbody tr').length;
if (statusesCount > 1) {
$('#status table:eq(0) tbody tr').each(function() {
$(this).find('.deleteStatus').attr('data-number', statusesCount);
statusesCount--;
});
}
}
function resetPaymentIDs() {
trCount = 0;
$("#formAddPayment table tbody tr").each(function() {
trObject = $(this);
if (typeof trObject.attr('class') === typeof undefined && trObject.find('.list-empty').length == 0) {
trObject.find('td:eq(0) .show-popover').attr('data-content', getPopoverContent(trObject.find('td:eq(0) span'), 'PaymentDate', {'type' : 'datetime'}, trCount));
trObject.find('td:eq(1) .show-popover').attr('data-content', getPopoverContent(trObject.find('td:eq(1) span'), 'PaymentMethod', {'type' : 'input'}, trCount));
trObject.find('td:eq(2) .show-popover').attr('data-content', getPopoverContent(trObject.find('td:eq(2) span'), 'PaymentTransactionID', {'type' : 'input'}, trCount));
trObject.find('td:eq(3) .show-popover').attr('data-content', getPopoverContent(trObject.find('td:eq(3) span'), 'PaymentAmount', {'type' : 'input', 'output' : 'price'}, trCount));
trObject.find('.deletePayment').attr('data-number', trCount);
trCount++;
}
});
}
function formatDateTimeToMysql(value, type) {
return value.getFullYear() + "-" + twoDigits(1 + value.getMonth()) + "-" + twoDigits(value.getDate()) + (type == 'datetime' ? " " + twoDigits(value.getHours()) + ":" + twoDigits(value.getMinutes()) + ":" + twoDigits(value.getSeconds()) : "");
}
function twoDigits(d) {
if (0 <= d && d < 10) return "0" + d.toString();
if (-10 < d && d < 0) return "-0" + (-1*d).toString();
return d.toString();
}
@@ -0,0 +1,814 @@
/*
* 2021 Keshva
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
*/
var priceDisplayPrecision = 2;
var isPopoverActive = false;
var isStoring = false;
var lastChangedShippingCostType = 'taxExcl';
$(document).ready(function() {
if (typeof id_order === 'undefined') {
return false;
}
displayResendMailButton();
initOrderDateAndNumber();
initDocumentsTable();
initOrderNote();//treba spravit
initShipping();
initOrderPayment();
initDeleteStatuses();
initProductLine();
initEvents();
$(document).on("ajaxComplete", function(event, xhr, settings) {
setTimeout(function() {
initDocumentsTable();
initShipping();
initDeleteStatuses();
initProductLine();
}, 1000)
});
// updateInvoice(invoices);
});
function displayResendMailButton() {
if ($("#orderResendMail").length == 0) {
$("#order-view-page .order-actions .order-actions-print").after('<a id="orderResendMail" onclick="ajaxResendMailToCustomer()" class="btn btn-default" href="javascript:void(0)"><i class="material-icons" aria-hidden="true">print</i>' + trans.resend_email + '</a>');
}
}
function initOrderDateAndNumber() {
//datum objednavky
titleRowParentPath = '#main-div ';
if ($('#main-div .title-row').length == 0) {
titleRowParentPath = '';
}
$(titleRowParentPath + '.title-row:eq(0) p:eq(1) .text-muted').contents().unwrap();
generatePopover($(titleRowParentPath + '.title-row:eq(0) p:eq(1)'), 0, null, 'OrderDate', {'type' : 'datetime'});
//cislo objednavky
generatePopover($(titleRowParentPath + '.title-row:eq(0) h1 strong:eq(1)'), 0, null, 'OrderNumber', {'type': 'input'});
}
// tabulka dokumentov - faktura, dodaci list, dobropisy
function initDocumentsTable() {
$('#orderDocumentsTabContent table tbody tr td a[href]').each(function() {
if ($(this).attr('href').indexOf('generateInvoicePDF') >= 0 && !$(this).parents('tr:eq(0)').hasClass('trInvoice')) {
$(this).parents('tr:eq(0)').addClass('trInvoice');
}
if ($(this).attr('href').indexOf('generateDeliverySlipPDF') >= 0 && !$(this).parents('tr:eq(0)').hasClass('trDeliverySlip')) {
$(this).parents('tr:eq(0)').addClass('trDeliverySlip');
}
if ($(this).attr('href').indexOf('generateOrderSlipPDF') >= 0 && !$(this).parents('tr:eq(0)').hasClass('trOrderSlip')) {
$(this).parents('tr:eq(0)').addClass('trOrderSlip');
}
});
if ($('#orderDocumentsTabContent table thead tr .removeDocument').length == 0) {
$('#orderDocumentsTabContent table thead tr').append('<th class="removeDocument"></th>');
}
$('#orderDocumentsTabContent table tbody tr').each(function() {
if ($(this).hasClass('trInvoice') && $(this).find('.show-popover').length == 0) {
//prvy stlpec na fakture - datum faktury
generatePopover($(this).find('td:eq(0)'), queryString($(this).find('a').attr('href')).id_order_invoice, null, 'InvoiceDate', {'type' : 'date'});
//treti stlpec na fakture - cislo faktury
generatePopover($(this).find('td:eq(2)'), queryString($(this).find('a').attr('href')).id_order_invoice, $(this).find('td:eq(2)').find('a'), 'InvoiceNumber', {'type' : 'input'});
addRemoveButtonOnDocument($(this), 'Invoice', queryString($(this).find('a').attr('href')).id_order_invoice);
}
else if ($(this).hasClass('trDeliverySlip') && $(this).find('.show-popover').length == 0) {
//prvy stlpec na dodacom liste - datum dodacieho listu
generatePopover($(this).find('td:eq(0)'), queryString($(this).find('a').attr('href')).id_order_invoice, null, 'DeliveryDate', {'type' : 'date'});
//treti stlpec na dodacom liste - cislo dodacieho listu
setDocumentReference(queryString($(this).find('a').attr('href')).id_order_invoice, $(this).find('td:eq(2)').find('a'), 'delivery_slip');
generatePopover($(this).find('td:eq(2)'), queryString($(this).find('a').attr('href')).id_order_invoice, $(this).find('td:eq(2)').find('a'), 'DeliveryNumber', {'type' : 'input'});
addRemoveButtonOnDocument($(this), 'DeliverySlip', queryString($(this).find('a').attr('href')).id_order_invoice);
} else if ($(this).hasClass('trOrderSlip') && $(this).find('.show-popover').length == 0) {
orderSlipID = parseInt(queryString($(this).find('a').attr('href')).id_order_slip);
//prvy stlpec na dobropise - datum dobropisu
generatePopover($(this).find('td:eq(0)'), orderSlipID, null, 'CreditslipDate', {'type' : 'date'});
//treti stlpec na dobropise - cislo dobropisu
setDocumentReference(orderSlipID, $(this).find('td:eq(2)').find('a'), 'credit_slip');
generatePopover($(this).find('td:eq(2)'), orderSlipID, $(this).find('td:eq(2)').find('a'), 'CreditslipNumber', {'type' : 'input'});
addRemoveButtonOnDocument($(this), 'CreditSlip', orderSlipID);
}
});
}
// sekcia order note
function initOrderNote() {
$('#orderProductsOriginalPosition').after('<div class="panel"><div class="panel-heading"><i class="icon-edit"></i>' + trans.orderNoteTitle + '</div><form id="order_note" class="form-horizontal" action="#"><div class="form-group"><div class="col-lg-12"><textarea name="orderNoteContent" id="orderNoteContent" class="textarea-autosize rte autoload_rte" style="overflow: hidden; overflow-wrap: break-word; resize: none; height: 48px;"></textarea></div></div><div class="row"><div class="col-lg-12"><span style="top: 6px; position: relative">' + trans.orderNoteInInvoice + '<input style="margin-left: 5px;" name="orderNoteOnInvoice" id="orderNoteOnInvoice" type="checkbox"></span><a id="submitOrderNote" class="btn btn-default pull-right" style="float: right;"><i class="icon-save"></i><span style="margin-left: 4px;">' + trans.save + '</span></a></div><div class="col-lg-12" style="height: 12px"><span id="orderNoteStatus" style="top: 7px; position: relative; float: right; display:none;">' + trans.orderNoteStored + '</span></div></div></form></div>');
$('#orderNoteContent').html(orderNote.note);
$('#orderNoteOnInvoice').prop('checked', parseInt(orderNote.show_on_invoice) == 1);
tinySetup({
editor_selector :"autoload_rte"
});
}
// tabulka shipping
// novy zaznam do db tabulky order_carrier sa pridava len pokial sa pridava novy produkt do objednavky
// viac ako jeden zaznam v zobrazenej tabulke ma len vtedy ked je v db tabulke order_carrier viac zaznamov s roznym id_carrier
// situacia ze je viac ako jeden zaznam sa moze stat ked:
// 1. je vytvoreny nejaky sposob dopravy s nejakym id na ktorom bola vytvorena objednavka
// 2. tento sposob dopravy sa vymaze ale v db tabulke orders stale figuruje v stlpci id_carrier pri tejto objednavke
// 3. vytvori sa novy produkt cez objednavku, ktoremu sa nastavuje aktualny id_carrier ktory je na objednavke
// 4. tento id_carrier sa ale nenajde lebo je vymazany a tym padom sa vytvori novy zaznam v order_carrier s inym id_carrier (uz su tam dva zaznami, odidva s roznym id_carrier)
// 5. keby sposob dopravy nebol vymazany, tiez by sa vytvoril novy zaznam v order_carrier, ale s tym istym id_carrier, cize by to bolo v poriadku
// Sposoby platby su troska blbo robene lebo ked sa hocico zmeni cez admin na sposobe dopravy, tak sa sa premaze aj id sposobu dopravy (id_carrier) a da sa mu nove
function initShipping() {
$('#orderShippingTabContent tbody tr').each(function() {
trObject = $(this);
if (trObject.find('.show-popover').length == 0) {
orderCarrierID = trObject.find('.js-update-shipping-btn').attr('data-order-carrier-id');
generatePopover(trObject.find('td:eq(0)'), orderCarrierID, null, 'ShippingDate', {'type' : 'datetime'});
$(shipping.values).each(function(index, object) {
if (parseInt(object.id_order_carrier) == parseInt(orderCarrierID)) {
generateShippingCostPopover(trObject.find('td:eq(4)'), orderCarrierID, {"priceTaxIncl" : object.shipping_cost_tax_incl, "priceTaxExcl" : object.shipping_cost_tax_excl, "tax" : shipping.tax});
}
});
}
});
}
function initOrderPayment() {
trCount = 0;
$("#view_order_payments_block table tbody tr:not(.d-none,.d-print-none)").each(function() {
trObject = $(this);
generatePopover(trObject.find('td:eq(0)'), trCount, null, 'PaymentDate', {'type' : 'datetime'});
generatePopover(trObject.find('td:eq(1)'), trCount, null, 'PaymentMethod', {'type' : 'input'});
generatePopover(trObject.find('td:eq(2)'), trCount, null, 'PaymentTransactionID', {'type' : 'input'});
generatePopover(trObject.find('td:eq(3)'), trCount, null, 'PaymentAmount', {'type' : 'input', 'output' : 'price'});
$('<td><span data-number="' + trCount + '" class="deletePayment pull-right btn btn-default"><i class="material-icons icon-trash">delete</i><span class="preLoading" style="display:none"></span></span></td>').insertAfter(trObject.find('td:last'));
trCount++;
});
}
function initDeleteStatuses() {
statusesCount = $('#historyTabContent table:eq(0) tbody tr').length;
if (statusesCount > 1) {
$('#historyTabContent table:eq(0) tbody tr').each(function() {
if ($(this).find('.deleteStatus').length == 0) {
$(this).append('<td><span data-number="' + statusesCount + '" class="deleteStatus pull-right btn btn-default"><i class="material-icons icon-trash">delete</i><span class="preLoading" style="display:none"></span></span></td>');
statusesCount--;
}
});
}
}
function initProductLine() {
$("#orderProductsTable tbody tr.cellProduct").each(function() {
if ($(this).find('.cellProductName').find('.show-popover').length == 0) {
generatePopover($(this).find('.cellProductName'), $(this).find('.js-order-product-edit-btn').attr('data-order-detail-id'), $(this).find('.cellProductName .productName'), 'ProductName', {'type' : 'input'});
}
});
}
function initEvents() {
$(document).on("click", ".icon-pencil", function() {
hidePopovers($(this).siblings('.show-popover'));
$(this).siblings('.show-popover').popover({
'sanitize': false
});
$(this).siblings('.show-popover').popover('show');
//hodnota data-value-exception-path urcuje, ci je hodnota pola v surodencovi .show-popover, alebo az pod nim v elemente "a"
if ($(this).siblings('.show-popover').find('.productName').length > 0) {
$(this).siblings('.show-popover').find('.productName').addClass('setValuePlace');
} else if ($(this).siblings('.show-popover').attr('data-value-exception-path') == 'true') {
$(this).siblings('.show-popover').find('a').addClass('setValuePlace');
} else {
//setValuePlace sa zadava kvoli tomu aby po zbehnuti ajaxu, vedel system nastavit hodnotu kam treba v html
//po zapisani hodnoty do setValuePlace sa tato trieda vymaze
$(this).siblings('.show-popover').addClass('setValuePlace');
}
$(this).siblings('.show-popover').addClass('hasPopover');
if ($(this).siblings('.show-popover').attr('data-type') == 'date' || $(this).siblings('.show-popover').attr('data-type') == 'datetime') {
setDatepicker($(this).siblings('.show-popover').attr('data-type'));
}
});
$(document).on('click', '.deleteStatus', function (e) {
ajaxDeleteOrderStatusOrPaymentOrDocument($(this), "Status");
});
$(document).on('click', '.deletePayment', function (e) {
ajaxDeleteOrderStatusOrPaymentOrDocument($(this), "Payment");
});
$(document).on('click', '.deleteDocument', function (e) {
ajaxDeleteOrderStatusOrPaymentOrDocument($(this), $(this).attr("data-type"));
});
$(document).on('click', '#submitOrderNote', function (e) {
ajaxSetOrderNote();
});
$(document).on('click', '#orderResendMail', function (e) {
ajaxResendMailToCustomer();
});
$(document).on('click', '.classicCheck', function (e) {
ajaxReferenceSetData($(this).parents('.newValue:eq(0)'));
});
$(document).on('click', '.shippingCostCheck', function (e) {
ajaxShippingCostSetData($(this).parents('.shippingCost'));
});
$(document).on('click', '.icon-remove', function (e) {
hidePopovers(null);
});
$(document).on("keyup change", ".shippingCostIncl input", function() {
this.value = this.value.replace(/[^0-9\.,]/g,'');
recalculateShippingCost($(this).parents('.shippingCost'), 'priceTaxIncl');
});
$(document).on("keyup change", ".shippingCostExcl input", function() {
this.value = this.value.replace(/[^0-9\.,]/g,'');
recalculateShippingCost($(this).parents('.shippingCost'), 'priceTaxExcl');
});
$(document).on("keyup change", ".shippingCostTax input", function() {
this.value = this.value.replace(/[^0-9\.,]/g,'');
recalculateShippingCost($(this).parents('.shippingCost'), 'tax');
});
$(document).on("keyup change", ".newValue[data-name='setPaymentAmount'] input", function() {
this.value = this.value.replace(/[^0-9\.,]/g,'');
});
if (psVersionLess1607) {
$('.edit_product_change_link').bind('click', function() {
$(this).parents('tr:eq(0)').find('.product_name_show').hide();
$(this).parents('tr:eq(0)').find('.product_name_edit').show();
});
$('.cancel_product_change_link, .submitProductChange').bind('click', function() {
$(this).parents('tr:eq(0)').find('.product_name_show').show();
$(this).parents('tr:eq(0)').find('.product_name_edit').hide();
});
} else {
$(document).on('click', '.edit_product_change_link', function(){
$(this).parents('tr:eq(0)').find('.product_name_show').hide();
$(this).parents('tr:eq(0)').find('.product_name_edit').show();
});
$(document).on('click', '.cancel_product_change_link, .submitProductChange', function(){
$(this).parents('tr:eq(0)').find('.product_name_show').show();
$(this).parents('tr:eq(0)').find('.product_name_edit').hide();
});
}
//aby zmizol popover ked sa klikne mimo neho
$(document).on('click', function (e) {
//pokial sa neklikne na datepicker tlacidlo, alebo na ikonu pera
if (!$(e.target).hasClass('ui-icon') && !$(e.target).hasClass('icon-pencil') && !$(e.target).hasClass('ui-state-default')) {
$('.hasPopover').each(function () {
if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
$(this).popover('hide');
$(document).find('.setValuePlace').removeClass('setValuePlace');
}
});
}
});
}
function generatePopover(object, id, objectValuePath, action, typeValues) {
object.html('<span data-html="true" data-placement="top" data-value-exception-path="' + (objectValuePath != null ? 'true' : 'false') + '" data-type="' + typeValues.type + '" data-content="' + getPopoverContent((objectValuePath != null ? objectValuePath : object), action, typeValues, id) + '" class="show-popover set' + action + id + 'Class">' + object.html() + '</span><i class="material-icons icon-pencil">edit</i>');
}
function generateShippingCostPopover(object, id, shippingCost) {
object.html('<span data-html="true" data-placement="top" data-content="' + getShippingCostPopoverContent(object, id, shippingCost) + '" class="show-popover">' + object.html() + '</span><i class="material-icons icon-pencil">edit</i>');
}
function addRemoveButtonOnDocument(object, type, idDocument) {
object.append('<td style="text-align:center"><span data-number="' + idDocument + '" data-type="' + type + '" class="deleteDocument pull-right btn btn-default"><i class="material-icons icon-trash">delete</i><span class="preLoading" style="display:none"></span></span></td>');
}
// function addRemoveButtonOnDocument(object, type, substringCutIn) {
// idDocument = object.attr('id').substring(substringCutIn, object.attr('id').length);
// object.append('<td><span data-number="' + idDocument + '" data-type="' + type + '" class="deleteDocument pull-right btn btn-default"><i class="icon-trash"></i><span class="preLoading" style="display:none"></span></span></td>');
// }
function getPopoverContent(valueObject, name, typeValues, id) {
popoverContent = "<div class='newValue' data-name='set" + name + "' data-type='" + typeValues.type + "' " + (typeof typeValues.output !== typeof undefined ? "data-output='" + typeValues.output + "'" : "") + " data-id='" + id + "'>";
if (typeValues.type == 'select') {
popoverContent += "<select class='popoverInput'>";
$(typeValues.values).each(function(index, value) {
popoverContent += "<option " + (value.selected ? 'selected' : '') + " value='" + value.id_carrier + "'>" + value.name + "</option>";
});
popoverContent += "</select>";
} else {
if (typeof typeValues.output !== typeof undefined && typeValues.type == 'input') {
if (typeValues.output == 'price') {
value = formatedNumberToFloat(valueObject.html().trim(), currency.format, currency.sign);
}
} else {
value = valueObject.html().trim();
}
popoverContent += "<input class='popoverInput' placeholder='" + valueObject.html().trim() + "' value='" + value + "'/>";
}
popoverContent += "<div class='popover-buttons'><i class='material-icons icon-check classicCheck'>done</i><i class='material-icons icon-remove'>clear</i><span class='spinner'></span></div>";
popoverContent += "</div><div class='operationStatus'></div>";
return popoverContent;
}
function hidePopovers(object) {
$('.hasPopover').each(function () {
if (!$(this).is(object)) {
$(this).popover('hide');
$(document).find('.setValuePlace').removeClass('setValuePlace');
}
});
}
function setDocumentReference(id, placeToSet, documentType) {
$(documents).each(function(key, value) {
if (value.document_type == documentType && value.id_document == id) {
placeToSet.html(value.reference);
}
});
}
function getShippingCostPopoverContent(valueObject, id, shippingCost) {
popoverContent = "<div class='shippingCost' data-id='" + id + "'>";
popoverContent += "<div class='shippingCostExcl shippingCostBlock'>";
popoverContent += "<div class='shippingPriceLabel'><label>" + trans.tax_excl_price + ":</label></div>";
popoverContent += "<input class='popoverInput' value='" + Number((parseFloat(shippingCost.priceTaxExcl)).toFixed(3)) + "' placeholder='" + Number((parseFloat(shippingCost.priceTaxExcl)).toFixed(3)) + " (" + trans.tax_excl + ")'/>";
popoverContent += "</div>";
popoverContent += "<div class='shippingCostIncl shippingCostBlock'>";
popoverContent += "<div class='shippingPriceLabel'><label>" + trans.tax_incl_price + ":</label></div>";
popoverContent += "<input class='popoverInput' value='" + Number((parseFloat(shippingCost.priceTaxIncl)).toFixed(3)) + "' placeholder='" + Number((parseFloat(shippingCost.priceTaxIncl)).toFixed(3)) + " (" + trans.tax_incl + ")'/>";
popoverContent += "<div class='popover-buttons'><i class='material-icons icon-check shippingCostCheck'>done</i><i class='material-icons icon-remove'>clear</i><span class='spinner'></span></div>";
popoverContent += "</div>";
popoverContent += "<div class='shippingCostTax shippingCostBlock'>";
popoverContent += "<div class='shippingPriceLabel'><label>" + trans.tax + " (%):</label></div>";
popoverContent += "<input class='popoverInput' value='" + Number((parseFloat(shippingCost.tax)).toFixed(3)) + "' placeholder='" + Number((parseFloat(shippingCost.tax)).toFixed(3)) + "% (" + trans.tax + ")'/>";
popoverContent += "</div>";
popoverContent += "</div><div class='operationStatus'></div>";
return popoverContent;
}
function setDatepicker(type) {
if (type == 'date') {
$(".popoverInput").datepicker();
} else {
$(".popoverInput").timepicker();
}
$(".popoverInput").prop('readonly', true);
$(".ui-datepicker").css("z-index","9999999999");
}
function calculateDocumentsTableCellWidth() {
tdMaxLenght = 0;
$('#documents table:eq(0) tbody tr').each(function() {
if ($(this).find('td:eq(2) a').length > 0) {
if ($(this).find('td:eq(2) a').html().trim().length > tdMaxLenght) {
tdMaxLenght = $(this).find('td:eq(2) a').html().trim().length;
}
}
});
$('#documents table:eq(0) tbody tr:eq(0) td:eq(2)').width((tdMaxLenght * 7) + 25);
}
function ajaxSetReferenceFinalMessage(sourceObject, message) {
objectWidth = sourceObject.width();
sourceObject.fadeOut("slow", function() {
sourceObject.empty();
sourceObject.parent().find('.operationStatus').width(objectWidth);
sourceObject.parent().find('.operationStatus').append('<p>' + message + '</p>');
sourceObject.parent().find('.operationStatus').fadeIn("slow");
setTimeout(function() {
hidePopovers(null);
}, 1000);
});
}
function afterAjaxMessage(messageText, messageType, type) {
message = '<div class="' + type + 'Message alert alert-' + messageType + '">';
message += '<button type="button" class="close" data-dismiss="alert">×</button>';
message += messageText;
message += '</div>';
if (type == "Status") {
$('#historyTabContent').prepend(message);
} else if (type == "Payment") {
$('#view_order_payments_block .card-body').prepend(message);
} else if (type == "Mail") {
$('#order-view-page').prepend(message);
}
}
function removeDocumentLine(documentID, type) {
if (type == "Invoice") {
$("#documents #invoice_" + documentID).remove();
$("#documents #invoiceNote" + documentID).remove();
$("#documents #delivery_" + documentID).remove();
} else if (type == "DeliverySlip") {
$("#documents #delivery_" + documentID).remove();
} else {
$("#documents #orderslip_" + documentID).remove();
}
}
// funkcia ktora odstrani vsetky 3 selektovniky pre vyber faktur, pokial sa vymaze posledna faktura
// sluzi na to, aby nezostal po vymazani poslednej faktury prazdny selektovnik
function removeInvoicesSelects() {
if ($('#payment_invoice').length > 0) {
$('#payment_invoice').each(function() {
$(this).remove();
});
}
if ($('.edit_product_invoice').length > 0) {
$('.edit_product_invoice').each(function() {
$(this).remove();
});
}
}
function ajaxReferenceSetData(sourceObject) {
if (!isStoring && sourceObject.find(".popoverInput").val() != "") {
if (sourceObject.attr('data-type') == 'date' || sourceObject.attr('data-type') == 'datetime') {
value = formatDateTimeToMysql(sourceObject.find(".popoverInput").datepicker('getDate'), sourceObject.attr('data-type'));
} else {
value = sourceObject.find(".popoverInput").val();
if (typeof sourceObject.attr('data-output') !== typeof undefined && sourceObject.attr('data-type') == 'input') {
if (sourceObject.attr('data-output') == 'price') {
value = value.replace(/,/g, '.');
}
}
}
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
adminThemeDir: adminThemeDir,
action: sourceObject.attr('data-name'),
id: sourceObject.attr('data-id'),
value: value
},
beforeSend: function()
{
isStoring = true;
sourceObject.find('.icon-remove').css("visibility", "hidden");
sourceObject.find('.spinner').show();
},
success : function(res)
{
if (!res.errors) {
if (sourceObject.attr('data-name') == 'setShippingCarrier') {
// pokial je vykonavana zmana typy shippingu tak sa moze premenit cena za celkovy shipping objednavky (zlucit shippingi) aj cena za objednavku
// treba tym padom pregenerovat tabulku shipping aj celkovu cenu objednavky
// funkcie updateAmounts a updateShipping su nativne PS funkcie z js/admin/orders.js
shipping = {"values" : res.shipping, "tax" : res.order.carrier_tax_rate};
} else {
//v pripade ze sa nastavuje cislo faktury, treba pregenerovat dokumenty ktore sa vykresluju v tabulke dokumentov
if (sourceObject.attr('data-name') == 'setInvoiceNumber') {
documents = $.parseJSON(res.documents);
}
//pokial je poslasny zo servera res.value, zobrazime na vystupe tuto hodnotu
if (typeof res.value !== typeof undefined) {
value = res.value;
}
//pregenerujeme paceholder a value na inpute popoveru
content = $('.' + sourceObject.attr('data-name') + sourceObject.attr('data-id') + 'Class').attr('data-content');
object = $('<div/>').html(content).contents();
$(object).find('input').attr('placeholder', value);
//pokial je urceny data-output, znamena to ze je potrebne zobrazit hodnotu v zadanom formate - napr "price"
if (typeof sourceObject.attr('data-output') !== typeof undefined && sourceObject.attr('data-type') == 'input') {
if (sourceObject.attr('data-output') == 'price') {
value = formatedNumberToFloat(value, currency.format, currency.sign).replace(/,/g, '');
}
}
$(object).find('input').attr('value', value);
$('.' + sourceObject.attr('data-name') + sourceObject.attr('data-id') + 'Class').attr('data-content', $(object).prop('outerHTML') + '<div class="operationStatus"></div>');
//pokial je urceny data-output, znamena to ze je potrebne zobrazit hodnotu v zadanom formate - napr "price"
if (typeof sourceObject.attr('data-output') !== typeof undefined && sourceObject.attr('data-type') == 'input') {
if (sourceObject.attr('data-output') == 'price') {
value = formatCurrency(parseFloat(value), currency.format, currency.sign);
}
}
//nastavime hodnotu do bunky pri ktorej bolo pero
$(".setValuePlace").html((sourceObject.attr('data-type') == 'select' ? sourceObject.find(".popoverInput option[value=" + value + "]").html() : value));
}
ajaxSetReferenceFinalMessage(sourceObject, res.result);
} else {
alert(res.result);
setTimeout(function() {
hidePopovers(null);
}, 1000);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
alert(trans.can_not_be_stored);
setTimeout(function() {
hidePopovers(null);
}, 1000);
}
});
ajaxCall.always(function() {
isStoring = false;
});
}
}
function ajaxShippingCostSetData(sourceObject) {
if (!isStoring) {
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
adminThemeDir: adminThemeDir,
action: 'setShippingCostData',
id_order_carrier: sourceObject.attr('data-id'),
priceTaxIncl: parseFloat(sourceObject.find('.shippingCostIncl input').val().replace(/,/g, '.')),
priceTaxExcl: parseFloat(sourceObject.find('.shippingCostExcl input').val().replace(/,/g, '.')),
tax: parseFloat(sourceObject.find('.shippingCostTax input').val())
},
beforeSend: function()
{
isStoring = true;
sourceObject.find('.icon-remove').css("visibility", "hidden");
sourceObject.find('.spinner').show();
},
success : function(res)
{
if (!res.errors) {
// treba pregenerovat celkovu cenu objednavky aj shipping tabulku
// funkcie updateAmounts a updateShipping su nativne PS funkcie z js/admin/orders.js
shipping = {"values" : res.shipping, "tax" : res.order.carrier_tax_rate};
location.reload();
} else {
alert(res.result);
setTimeout(function() {
hidePopovers(null);
}, 1000);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
alert(trans.can_not_be_stored);
setTimeout(function() {
hidePopovers(null);
}, 1000);
}
});
ajaxCall.always(function() {
isStoring = false;
});
}
}
function ajaxDeleteOrderStatusOrPaymentOrDocument(sourceObject, type) {
sourceObject.find('.icon-trash').css('visibility', 'hidden');
sourceObject.find('.preLoading').show();
if (!isStoring) {
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
action: "delete" + type,
number: sourceObject.attr('data-number'),
},
beforeSend: function()
{
isStoring = true;
$('.' + type + 'Message').remove();
},
success : function(res)
{
if (!res.errors) {
sourceObject.parents('tr:eq(0)').remove();
if (type == "Status") {
if ($('#status table:eq(0) tbody tr').length <= 1) {
$('.deleteStatus').each(function(){
$(this).parent().remove();
});
}
} else {
removeDocumentLine(sourceObject.attr('data-number'), type);
$("#tabOrder li:eq(1) span").html(res.documentsCount);
}
afterAjaxMessage(res.result, 'success', type);
} else {
sourceObject.find('.icon-trash').css('visibility', 'visible');
afterAjaxMessage(res.result, 'danger', type);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
sourceObject.find('.icon-trash').css('visibility', 'visible');
if (type == "Status") {
afterAjaxMessage(trans.order_status_removed, 'danger', type);
} else if (type == "Payment") {
afterAjaxMessage(trans.payment_removed, 'danger', type);
} else {
afterAjaxMessage(trans.document_removed, 'danger', type);
}
}
});
ajaxCall.always(function() {
sourceObject.find('.preLoading').hide();
isStoring = false;
});
}
}
function ajaxResendMailToCustomer() {
if (!isStoring) {
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
action: "resendEmail"
},
beforeSend: function()
{
isStoring = true;
$('.MailMessage').remove();
},
success : function(res)
{
if (!res.errors) {
afterAjaxMessage(res.result, 'success', 'Mail');
} else {
afterAjaxMessage(res.result, 'danger', 'Mail');
}
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
afterAjaxMessage(trans.mail_can_not_be_send, 'danger', 'Mail');
}
});
ajaxCall.always(function() {
isStoring = false;
});
}
}
function ajaxChangeProductName(idOrderDetail, productName) {
if (!isStoring) {
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
product_id_order_detail: idOrderDetail,
product_name: productName,
action: "changeProductName"
},
beforeSend: function()
{
isStoring = true;
}
});
ajaxCall.always(function() {
isStoring = false;
});
return ajaxCall;
}
}
function ajaxSetOrderNote() {
if (!isStoring) {
ajaxCall = $.ajax({
type: "POST",
url: editOrderAjaxLink,
dataType: "json",
async: false,
data : {
ajax: true,
id_order: id_order,
note: tinyMCE.get("orderNoteContent").getContent(),
show_on_invoice: (($('#orderNoteOnInvoice:checkbox:checked').length > 0) ? 1 : 0),
action: "setOrderNote"
},
beforeSend: function()
{
isStoring = true;
},
success : function(res)
{
if (!res.errors) {
$("#orderNoteStatus").css('color','green').html(res.result).fadeIn(1000).delay(1500).fadeOut(1000);
} else {
$("#orderNoteStatus").css('color','red').html(trans.orderNoteNotStored).fadeIn(1000).delay(1500).fadeOut(1000);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
$("#orderNoteStatus").css('color','red').html(trans.orderNoteNotStored).fadeIn(1000).delay(1500).fadeOut(1000);
}
});
ajaxCall.always(function() {
isStoring = false;
});
return ajaxCall;
}
}
function recalculateShippingCost(object, settedValueType) {
if (object.find(".shippingCostTax input").val().length == 0) {
shippingTax = 0;
} else {
shippingTax = parseFloat(object.find(".shippingCostTax input").val().replace(/,/g, '.'));
}
if (settedValueType == 'priceTaxIncl') {
calculateShippingCostTaxExcl(object, shippingTax);
lastChangedShippingCostType = 'taxIncl';
} else if (settedValueType == 'priceTaxExcl') {
calculateShippingCostTaxIncl(object, shippingTax);
lastChangedShippingCostType = 'taxExcl';
} else if (settedValueType == 'tax') {
if (lastChangedShippingCostType == 'taxExcl') {
calculateShippingCostTaxIncl(object, shippingTax);
} else {
calculateShippingCostTaxExcl(object, shippingTax);
}
}
}
function calculateShippingCostTaxIncl(object, shippingTax) {
if (object.find(".shippingCostExcl input").val().length > 0) {
shippingCostExcl = parseFloat(object.find(".shippingCostExcl input").val().replace(/,/g, '.'));
shippingCostIncl = shippingCostExcl *= (1 + shippingTax / 100);
object.find(".shippingCostIncl input").val(Number((shippingCostIncl).toFixed(3)));
} else {
object.find(".shippingCostIncl input").val('');
}
}
function calculateShippingCostTaxExcl(object, shippingTax) {
if (object.find(".shippingCostIncl input").val().length > 0) {
shippingCostIncl = parseFloat(object.find(".shippingCostIncl input").val().replace(/,/g, '.'));
shippingCostExcl = shippingCostIncl / (1 + shippingTax / 100);
object.find(".shippingCostExcl input").val(Number((shippingCostExcl).toFixed(3)));
} else {
object.find(".shippingCostExcl input").val('');
}
}
function resetStatusIDs() {
statusesCount = $('#status table:eq(0) tbody tr').length;
if (statusesCount > 1) {
$('#status table:eq(0) tbody tr').each(function() {
$(this).find('.deleteStatus').attr('data-number', statusesCount);
statusesCount--;
});
}
}
function formatDateTimeToMysql(value, type) {
return value.getFullYear() + "-" + twoDigits(1 + value.getMonth()) + "-" + twoDigits(value.getDate()) + (type == 'datetime' ? " " + twoDigits(value.getHours()) + ":" + twoDigits(value.getMinutes()) + ":" + twoDigits(value.getSeconds()) : "");
}
function twoDigits(d) {
if (0 <= d && d < 10) return "0" + d.toString();
if (-10 < d && d < 0) return "-0" + (-1*d).toString();
return d.toString();
}
function queryString(string) {
var query_string = {};
var query = string;
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (typeof query_string[pair[0]] === "undefined") {
query_string[pair[0]] = decodeURIComponent(pair[1]);
} else if (typeof query_string[pair[0]] === "string") {
var arr = [ query_string[pair[0]],decodeURIComponent(pair[1]) ];
query_string[pair[0]] = arr;
} else {
query_string[pair[0]].push(decodeURIComponent(pair[1]));
}
}
return query_string;
}
@@ -0,0 +1,14 @@
{*
* 2021 Keshva
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
*}
<script type="text/javascript">
//<![CDATA[
var counterActualValue = {$counterActualValue|escape:"javascript":"UTF-8"};
var translate = JSON.parse('{$translate|escape:"javascript":"UTF-8"}');
//]]>
</script>
<script type="text/javascript" src='{$modulePath|escape:"javascript":"UTF-8"}views/js/BOconfigForm{if $psLT1606 == 1}LT1605{/if}.js'></script>
<link rel="stylesheet" type="text/css" href='{$modulePath|escape:"javascript":"UTF-8"}views/css/BOconfigForm.css'>
@@ -0,0 +1,12 @@
{*
* 2021 Keshva
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
*}
<script type="text/javascript">
//<![CDATA[
var translate = JSON.parse('{$translate|escape:"javascript":"UTF-8"}');
//]]>
</script>
<script type="text/javascript" src='{$modulePath|escape:"javascript":"UTF-8"}views/js/BOconfigList.js'></script>
@@ -0,0 +1,25 @@
{*
* 2021 Keshva
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
*}
<script type="text/javascript">
//<![CDATA[
var editOrderAjaxLink = '{$editOrderAjaxLink|escape:"javascript":"UTF-8"}';
var adminThemeDir = '{$adminThemeDir|escape:"javascript":"UTF-8"}';
var documents = JSON.parse('{$documents|escape:"javascript":"UTF-8"}');
var invoices = JSON.parse('{$invoices|escape:"javascript":"UTF-8"}');
var carriers = JSON.parse('{$carriers|escape:"javascript":"UTF-8"}');
var shipping = JSON.parse('{$shipping|escape:"javascript":"UTF-8"}');
var hasBeenDelivered = Boolean({$hasBeenDelivered|escape:"javascript":"UTF-8"});
var orderNote = JSON.parse('{$orderNote|escape:"javascript":"UTF-8"}');
var psVersionLess1607 = Boolean({$psVersionLess1607|escape:"javascript":"UTF-8"});
var psVersion17 = Boolean({$psVersion17|escape:"javascript":"UTF-8"});
var trans = JSON.parse('{$trans|escape:"javascript":"UTF-8"}');
var iso = '{$iso|escape:"javascript":"UTF-8"}';
var path_css = '{$path_css|escape:"javascript":"UTF-8"}';
var ad = '{$ad|escape:"javascript":"UTF-8"}';
var id_order = parseInt('{$idOrder|escape:"javascript":"UTF-8"}');
//]]>
</script>
@@ -0,0 +1,22 @@
{*
* 2021 Keshva
*
* @author Keshva <keshvathakur47@gmail.com>
* @copyright 2021 Keshva
*}
<div style="width:100%;text-align:center;margin-bottom:13px;"><strong>{$translate['descOfAvailableTags']|escape:"javascript":"UTF-8"}:</strong></div>
<table class="howToUse">
<tr><th>Tag name</th><th>{$translate['tagDescription']|escape:"javascript":"UTF-8"}</th></tr>
<tr><td class="tagName">{literal}{RANDOM_NUMBER}{/literal}</td><td>{$translate['tagRandomNumber']|escape:"javascript":"UTF-8"}</td></tr>
<tr><td class="tagName">{literal}{RANDOM_ALPHABETIC}{/literal}</td><td>{$translate['tagAlphabeticRef']|escape:"javascript":"UTF-8"}</td></tr>
<tr><td class="tagName">{literal}{RANDOM_ALPHANUMERIC}{/literal}</td><td>{$translate['tagAlphanumericRef']|escape:"javascript":"UTF-8"}</td></tr>
<tr><td class="tagName">{literal}{COUNTER}{/literal}</td><td>{$translate['tagCounterValue']|escape:"javascript":"UTF-8"}</td></tr>
<tr><td class="tagName">{literal}{ORDER_ID}{/literal}</td><td>{$translate['tagOrderID']|escape:"javascript":"UTF-8"}</td></tr>
<tr><td class="tagName">{literal}{SHOP_ID}{/literal}</td><td>{$translate['tagShopID']|escape:"javascript":"UTF-8"}</td></tr>
<tr><td class="tagName">{literal}{YEAR}{/literal}</td><td>{$translate['tagYearNumber']|escape:"javascript":"UTF-8"}</td></tr>
<tr><td class="tagName">{literal}{YEARSHORTCUT}{/literal}</td><td>{$translate['tagYearNumberShort']|escape:"javascript":"UTF-8"}</td></tr>
<tr><td class="tagName">{literal}{MONTH}{/literal}</td><td>{$translate['tagMonthNumber']|escape:"javascript":"UTF-8"}</td></tr>
<tr><td class="tagName">{literal}{WEEK}{/literal}</td><td>{$translate['tagWeekNumber']|escape:"javascript":"UTF-8"}</td></tr>
<tr><td class="tagName">{literal}{DAYINWEEK}{/literal}</td><td>{$translate['tagDayInWeekNumber']|escape:"javascript":"UTF-8"}</td></tr>
<tr><td class="tagName">{literal}{DAY}{/literal}</td><td>{$translate['tagDayInMonthNumber']|escape:"javascript":"UTF-8"}</td></tr>
</table>
@@ -0,0 +1,32 @@
<?php
/*
* 2007-2012 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2012 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;
@@ -0,0 +1,32 @@
<?php
/*
* 2007-2012 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2012 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;