} if (isset($_POST['method']) && $_POST['method'] == 'uninstallPixels' && isset($_SESSION['shop'])) { require_once 'config.php'; require_once 'functions.php'; require_once "shopify.php"; $response = checkShopExists($_SESSION['shop']); if ($response['status'] == 1) { $token = $response['result']['token']; } else { echo "Shop Doesnot exists"; die; } if (isset($token) && $token != "") { $config = array('client_Id' => APIKEY, 'redirect_uri' => REDIRECT_URL, 'client_Secret' => SECRET, 'url' => $_SESSION['shop']); $productFeed = new Shopify($config); $response = $productFeed->setAccessToken($token); if ($response['status']) { } else { echo $response['error']; die; } /* echo "<pre>"; print_r($productFeed); */ } //$pixel = $_POST['dPixel']; //$catalog = $_POST['dCatalog']; $status = 0; $data = array('store_URL' => $_SESSION['shop'], 'status' => $status); $response = updateStatus($data); $themescript = "pixelTheme.liquid"; $productscript = "pixelProduct.liquid";