mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-24 13:40:29 +01:00
#7 Shopify interface does not work
This commit is contained in:
parent
f5c61ca6eb
commit
64241842f6
@ -610,7 +610,7 @@ class Shopexport
|
||||
'SELECT `id`
|
||||
FROM `shopexport`
|
||||
WHERE `aktiv` = 1 AND `autosendarticle` = 1 AND `artikelexport` = 1
|
||||
AND (`autosendarticle_last` IS NULL OR DATE_ADD(`autosendarticle_last` INTERVAL %d MINUTE) <= NOW())',
|
||||
AND (`autosendarticle_last` IS NULL OR DATE_ADD(`autosendarticle_last`, INTERVAL %d MINUTE) <= NOW())',
|
||||
$minutes
|
||||
)
|
||||
);
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
@ -10,8 +10,8 @@
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
use Xentral\Components\Http\JsonResponse;
|
||||
|
||||
@ -396,7 +396,7 @@ class Shopimporter_Shopify extends ShopimporterBase
|
||||
$this->adapter->call("products/".$result['data']['product']['id']."/metafields.json", 'POST', array('metafield' => [
|
||||
'key' => 'sync_status',
|
||||
'value' => 1,
|
||||
'value_type' => 'integer',
|
||||
'type' => 'number_integer',
|
||||
'namespace' => 'xentral',
|
||||
]));
|
||||
if($result['data']['product']['id'] == $nummer) {
|
||||
@ -429,7 +429,7 @@ class Shopimporter_Shopify extends ShopimporterBase
|
||||
$this->adapter->call("variants/".$resultv['variant']['id']."/metafields.json", 'POST', array('metafield' => [
|
||||
'key' => 'sync_status',
|
||||
'value' => 1,
|
||||
'value_type' => 'integer',
|
||||
'type' => 'number_integer',
|
||||
'namespace' => 'xentral',
|
||||
]));
|
||||
$data['nummer'] = $resultv['data']['variant']['sku'];
|
||||
@ -1015,12 +1015,12 @@ class Shopimporter_Shopify extends ShopimporterBase
|
||||
$dataproduct['product']['variants'][0]['metafields'] = array(array(
|
||||
"key" => "harmonized_system_code",
|
||||
"value"=> $zolltarifnummer,
|
||||
"value_type"=> "string",
|
||||
"type"=> "text",
|
||||
"namespace"=> "global"),
|
||||
[
|
||||
'key' => 'sync_status',
|
||||
'value' => 1,
|
||||
'value_type' => 'integer',
|
||||
'type' => 'number_integer',
|
||||
'namespace' => 'xentral',
|
||||
]);
|
||||
if($pseudopreis != ''){
|
||||
@ -1185,12 +1185,12 @@ class Shopimporter_Shopify extends ShopimporterBase
|
||||
$veigenschaften[] = array(
|
||||
"key" => "harmonized_system_code",
|
||||
"value"=> $value['zolltarifnummer'],
|
||||
"value_type"=> "string",
|
||||
"type"=> "text",
|
||||
"namespace"=> "global");
|
||||
$veigenschaften[] = [
|
||||
'key' => 'sync_status',
|
||||
'value' => 1,
|
||||
'value_type' => 'integer',
|
||||
'type' => 'number_integer',
|
||||
'namespace' => 'xentral',
|
||||
];
|
||||
|
||||
@ -3334,7 +3334,7 @@ class Shopimporter_Shopify extends ShopimporterBase
|
||||
$this->adapter->call('orders/' . $auftrag . '/metafields.json', 'POST', array('metafield' => [
|
||||
'key' => 'sync_status',
|
||||
'value' => 1,
|
||||
'value_type' => 'integer',
|
||||
'type' => 'number_integer',
|
||||
'namespace' => 'xentral',
|
||||
]));
|
||||
return 'ok';
|
||||
@ -3367,7 +3367,7 @@ class Shopimporter_Shopify extends ShopimporterBase
|
||||
$this->adapter->call('orders/' . $auftrag . '/metafields.json', 'POST', array('metafield' => [
|
||||
'key' => 'sync_status',
|
||||
'value' => 3,
|
||||
'value_type' => 'integer',
|
||||
'type' => 'number_integer',
|
||||
'namespace' => 'xentral',
|
||||
]));
|
||||
}
|
||||
@ -3420,7 +3420,7 @@ class Shopimporter_Shopify extends ShopimporterBase
|
||||
$this->adapter->call('orders/' . $auftrag . '/metafields.json', 'POST', array('metafield' => [
|
||||
'key' => 'sync_status',
|
||||
'value' => 2,
|
||||
'value_type' => 'integer',
|
||||
'type' => 'number_integer',
|
||||
'namespace' => 'xentral',
|
||||
]));
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user