mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-24 13:40:29 +01:00
shopexport shopware6 texteuebertragen option
This commit is contained in:
parent
1817efcd44
commit
d284b8e254
@ -92703,7 +92703,7 @@
|
||||
"Collation": null,
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "0",
|
||||
"Default": "1",
|
||||
"Extra": "",
|
||||
"Privileges": "select,insert,update,references",
|
||||
"Comment": ""
|
||||
|
@ -1214,8 +1214,10 @@ class Remote
|
||||
$projektlager = $this->app->DB->Select("SELECT id FROM projekt WHERE id = $projekt AND projektlager = 1 LIMIT 1");
|
||||
$tmp = new ObjGenArtikel($this->app);
|
||||
$cartikel_arr = !empty($artikel_arr)?count($artikel_arr):0;
|
||||
|
||||
for($i=0;$i<$cartikel_arr;$i++)
|
||||
{
|
||||
|
||||
$artikel = $artikel_arr[$i];
|
||||
$lagerexport = $this->app->erp->GetArtikelShopEinstellung('autolagerlampe', $artikel, $shopexportarr);
|
||||
$tmp->Select($artikel);
|
||||
@ -1260,6 +1262,9 @@ class Remote
|
||||
$data[$i]['uebersicht_de'] = htmlspecialchars($tmp->GetUebersicht_De(),ENT_QUOTES);
|
||||
$data[$i]['uebersicht_en'] = htmlspecialchars($tmp->GetUebersicht_En(),ENT_QUOTES);
|
||||
$data[$i]['herkunftsland'] = $tmp->GetHerkunftsland();
|
||||
|
||||
$data[$i]['texteuebertragen'] = $shopexportarr['texteuebertragen'];
|
||||
|
||||
if(method_exists($tmp,'GetMetadescription_De'))
|
||||
{
|
||||
$data[$i]['metadescription_de'] = $tmp->GetMetadescription_De();
|
||||
|
@ -1054,6 +1054,10 @@ class Shopimporter_Shopware6 extends ShopimporterBase
|
||||
'deliveryTimeId' => $deliveryTimeId
|
||||
];
|
||||
|
||||
if (!$article['texteuebertragen']) {
|
||||
unset($data['description']);
|
||||
}
|
||||
|
||||
$data = array_merge($data, $systemFieldsToAdd);
|
||||
if(empty($data['customFields'])
|
||||
|| empty($data['customFields']['wawision_shopimporter_syncstate'])){
|
||||
@ -1077,7 +1081,7 @@ class Shopimporter_Shopware6 extends ShopimporterBase
|
||||
sprintf('product/%s?_response=true', $articleIdShopware), $data, $headerInformation);
|
||||
}
|
||||
|
||||
if(!empty($articleIdShopware)){
|
||||
if(!empty($articleIdShopware) && $article['texteuebertragen']) {
|
||||
$this->exportTranslationsForArticle($article, $articleIdShopware);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user