bugfixes shopimporter_shopify

This commit is contained in:
OpenXE 2023-07-22 13:14:43 +02:00
parent 869c888947
commit 1f27f9a5f5
2 changed files with 16 additions and 1 deletions

View File

@ -99553,6 +99553,17 @@
"Privileges": "select,insert,update,references",
"Comment": ""
},
{
"Field": "getestet",
"Type": "int(11)",
"Collation": null,
"Null": "NO",
"Key": "",
"Default": "0",
"Extra": "",
"Privileges": "select,insert,update,references",
"Comment": ""
},
{
"Field": "bearbeiter",
"Type": "varchar(32)",

View File

@ -230,10 +230,14 @@ class Shopimporter_Shopify extends ShopimporterBase
if(isset($this->app->User) && $this->app->User && method_exists($this->app->User, 'GetName')){
$this->bearbeiter = $this->app->DB->real_escape_string($this->app->User->GetName());
}
$einstellungen = $this->app->DB->Select("SELECT einstellungen_json FROM shopexport WHERE id = '$shopid' LIMIT 1");
if($einstellungen){
if(!empty($einstellungen)){
$einstellungen = json_decode($einstellungen,true);
} else {
return;
}
$this->ShopifyURL=trim($einstellungen['felder']['ShopifyURL']);
if(stripos($this->ShopifyURL,'http') === false){
$this->ShopifyURL = 'https://'.$this->ShopifyURL;