Notice (8): Undefined offset: 0 [APP/Controller/CustomersController.php, line 1131]Code Context $product = json_decode($rlt['response'], true);
$response['product'] = $product['products'][0]['title'];
$shop = array(
'Customer' => array(
'id' => '15691',
'charge_id' => '29521772781',
'charge_id2' => null,
'shop_name' => 'ctmqyg-qc.myshopify.com',
'token' => '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',
'token2' => null,
'discount' => 'cod',
'customer_name' => null,
'name' => 'Good sport dz',
'shop_created' => '2024-10-31T23:06:21+01:00',
'money_format' => 'DA {{amount}}',
'plan_display_name' => 'Basic',
'email' => '[email protected]',
'phone' => '0670746209',
'country' => 'DZ',
'currency' => 'DZD',
'language' => 'arb',
'countrie_id' => null,
'contacted' => null,
'checked' => null,
'created' => '2024-11-01 00:46:35'
)
)
$product_id = '8861347578093'
$data = array()
$access_token = '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'
$shop_name = 'ctmqyg-qc.myshopify.com'
$header = array(
(int) 0 => 'Authorization: Basic Og=='
)
$product_end_points = '/admin/api/2023-10/products.json?ids=8861347578093'
$rlt = array(
'headers' => array(
'status' => 'HTTP/2 200
',
'date' => 'Fri, 22 Nov 2024 17',
'content-type' => 'application/json; charset=utf-8',
'x-sorting-hat-podid' => '236',
'x-sorting-hat-shopid' => '72308490477',
'vary' => 'Accept-Encoding',
'referrer-policy' => 'origin-when-cross-origin',
'x-frame-options' => 'DENY',
'x-shopid' => '72308490477',
'x-shardid' => '236',
'x-stats-userid' => '',
'x-stats-apiclientid' => '4507285',
'x-stats-apipermissionid' => '516581228781',
'x-shopify-api-version' => '2024-01',
'x-shopify-api-version-warning' => 'https',
'http_x_shopify_shop_api_call_limit' => '1/40',
'x-shopify-shop-api-call-limit' => '1/40',
'x-shopify-api-deprecated-reason' => 'https',
'strict-transport-security' => 'max-age=7889238',
'x-request-id' => '6dcede3f-f390-48c6-a24b-7aac318e145b-1732296931',
'server-timing' => 'cfRequestDuration;dur=229.000092',
'content-security-policy' => 'default-src 'self' data',
'x-content-type-options' => 'nosniff',
'x-download-options' => 'noopen',
'x-permitted-cross-domain-policies' => 'none',
'x-xss-protection' => '1; mode=block; report=/xss-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fproducts&source%5Bsection%5D=admin_api&source%5Buuid%5D=6dcede3f-f390-48c6-a24b-7aac318e145b-1732296931',
'x-dc' => 'gcp-europe-west3,gcp-us-central1,gcp-us-central1',
'alt-svc' => 'h3="',
'cf-cache-status' => 'DYNAMIC',
'report-to' => '{"endpoints"',
'nel' => '{"success_fraction"',
'server' => 'cloudflare',
'cf-ray' => '8e6aad2e3c10d400-CDG'
),
'response' => '{"products":[]}'
)
$product = array(
'products' => array()
)
CustomersController::getProduct() - APP/Controller/CustomersController.php, line 1131
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117
Notice (8): Undefined offset: 0 [APP/Controller/CustomersController.php, line 1132]Code Context
$response['product'] = $product['products'][0]['title'];
$response['product_id'] = $product['products'][0]['id'];
$shop = array(
'Customer' => array(
'id' => '15691',
'charge_id' => '29521772781',
'charge_id2' => null,
'shop_name' => 'ctmqyg-qc.myshopify.com',
'token' => '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',
'token2' => null,
'discount' => 'cod',
'customer_name' => null,
'name' => 'Good sport dz',
'shop_created' => '2024-10-31T23:06:21+01:00',
'money_format' => 'DA {{amount}}',
'plan_display_name' => 'Basic',
'email' => '[email protected]',
'phone' => '0670746209',
'country' => 'DZ',
'currency' => 'DZD',
'language' => 'arb',
'countrie_id' => null,
'contacted' => null,
'checked' => null,
'created' => '2024-11-01 00:46:35'
)
)
$product_id = '8861347578093'
$data = array()
$access_token = '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'
$shop_name = 'ctmqyg-qc.myshopify.com'
$header = array(
(int) 0 => 'Authorization: Basic Og=='
)
$product_end_points = '/admin/api/2023-10/products.json?ids=8861347578093'
$rlt = array(
'headers' => array(
'status' => 'HTTP/2 200
',
'date' => 'Fri, 22 Nov 2024 17',
'content-type' => 'application/json; charset=utf-8',
'x-sorting-hat-podid' => '236',
'x-sorting-hat-shopid' => '72308490477',
'vary' => 'Accept-Encoding',
'referrer-policy' => 'origin-when-cross-origin',
'x-frame-options' => 'DENY',
'x-shopid' => '72308490477',
'x-shardid' => '236',
'x-stats-userid' => '',
'x-stats-apiclientid' => '4507285',
'x-stats-apipermissionid' => '516581228781',
'x-shopify-api-version' => '2024-01',
'x-shopify-api-version-warning' => 'https',
'http_x_shopify_shop_api_call_limit' => '1/40',
'x-shopify-shop-api-call-limit' => '1/40',
'x-shopify-api-deprecated-reason' => 'https',
'strict-transport-security' => 'max-age=7889238',
'x-request-id' => '6dcede3f-f390-48c6-a24b-7aac318e145b-1732296931',
'server-timing' => 'cfRequestDuration;dur=229.000092',
'content-security-policy' => 'default-src 'self' data',
'x-content-type-options' => 'nosniff',
'x-download-options' => 'noopen',
'x-permitted-cross-domain-policies' => 'none',
'x-xss-protection' => '1; mode=block; report=/xss-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fproducts&source%5Bsection%5D=admin_api&source%5Buuid%5D=6dcede3f-f390-48c6-a24b-7aac318e145b-1732296931',
'x-dc' => 'gcp-europe-west3,gcp-us-central1,gcp-us-central1',
'alt-svc' => 'h3="',
'cf-cache-status' => 'DYNAMIC',
'report-to' => '{"endpoints"',
'nel' => '{"success_fraction"',
'server' => 'cloudflare',
'cf-ray' => '8e6aad2e3c10d400-CDG'
),
'response' => '{"products":[]}'
)
$product = array(
'products' => array()
)
$response = array(
'product' => null
)
CustomersController::getProduct() - APP/Controller/CustomersController.php, line 1132
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117
Notice (8): Undefined offset: 0 [APP/Controller/CustomersController.php, line 1133]Code Context $response['product'] = $product['products'][0]['title'];
$response['product_id'] = $product['products'][0]['id'];
$response['price'] = $product['products'][0]['variants'][0]['price'];
$shop = array(
'Customer' => array(
'id' => '15691',
'charge_id' => '29521772781',
'charge_id2' => null,
'shop_name' => 'ctmqyg-qc.myshopify.com',
'token' => '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',
'token2' => null,
'discount' => 'cod',
'customer_name' => null,
'name' => 'Good sport dz',
'shop_created' => '2024-10-31T23:06:21+01:00',
'money_format' => 'DA {{amount}}',
'plan_display_name' => 'Basic',
'email' => '[email protected]',
'phone' => '0670746209',
'country' => 'DZ',
'currency' => 'DZD',
'language' => 'arb',
'countrie_id' => null,
'contacted' => null,
'checked' => null,
'created' => '2024-11-01 00:46:35'
)
)
$product_id = '8861347578093'
$data = array()
$access_token = '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'
$shop_name = 'ctmqyg-qc.myshopify.com'
$header = array(
(int) 0 => 'Authorization: Basic Og=='
)
$product_end_points = '/admin/api/2023-10/products.json?ids=8861347578093'
$rlt = array(
'headers' => array(
'status' => 'HTTP/2 200
',
'date' => 'Fri, 22 Nov 2024 17',
'content-type' => 'application/json; charset=utf-8',
'x-sorting-hat-podid' => '236',
'x-sorting-hat-shopid' => '72308490477',
'vary' => 'Accept-Encoding',
'referrer-policy' => 'origin-when-cross-origin',
'x-frame-options' => 'DENY',
'x-shopid' => '72308490477',
'x-shardid' => '236',
'x-stats-userid' => '',
'x-stats-apiclientid' => '4507285',
'x-stats-apipermissionid' => '516581228781',
'x-shopify-api-version' => '2024-01',
'x-shopify-api-version-warning' => 'https',
'http_x_shopify_shop_api_call_limit' => '1/40',
'x-shopify-shop-api-call-limit' => '1/40',
'x-shopify-api-deprecated-reason' => 'https',
'strict-transport-security' => 'max-age=7889238',
'x-request-id' => '6dcede3f-f390-48c6-a24b-7aac318e145b-1732296931',
'server-timing' => 'cfRequestDuration;dur=229.000092',
'content-security-policy' => 'default-src 'self' data',
'x-content-type-options' => 'nosniff',
'x-download-options' => 'noopen',
'x-permitted-cross-domain-policies' => 'none',
'x-xss-protection' => '1; mode=block; report=/xss-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fproducts&source%5Bsection%5D=admin_api&source%5Buuid%5D=6dcede3f-f390-48c6-a24b-7aac318e145b-1732296931',
'x-dc' => 'gcp-europe-west3,gcp-us-central1,gcp-us-central1',
'alt-svc' => 'h3="',
'cf-cache-status' => 'DYNAMIC',
'report-to' => '{"endpoints"',
'nel' => '{"success_fraction"',
'server' => 'cloudflare',
'cf-ray' => '8e6aad2e3c10d400-CDG'
),
'response' => '{"products":[]}'
)
$product = array(
'products' => array()
)
$response = array(
'product' => null,
'product_id' => null
)
CustomersController::getProduct() - APP/Controller/CustomersController.php, line 1133
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117
{"product":null,"product_id":null,"price":null}