[$orderID] );
if (empty($document->_subshop
['doc_template'
])) { $document->
setTemplate($document->_defaultPath
);
} if (empty($document->_subshop
['id'
])) { throw new Enlight_Exception(sprintf('Could not load template path for order "%s"',
$orderID));
} if (!
empty($config['_allowMultipleDocuments'
])) { $document->_allowMultipleDocuments =
$config['_allowMultipleDocuments'
];
} } else { $document->_subshop =
Shopware()->
Db()->
fetchRow("
SELECT
s.id,
s.document_template_id as doc_template_id,
s.template_id,
(SELECT CONCAT('templates/', template) FROM s_core_templates WHERE id = s.document_template_id) as doc_template,
(SELECT CONCAT('templates/', template) FROM s_core_templates WHERE id = s.template_id) as template,
s.id as isocode,
s.locale_id as locale
FROM s_core_shops s
WHERE s.default = 1
"
);