Creating customizable products in your Shopify store not only increase your customer satisfaction, it also increases your conversion rate. Here is a method to add custom options for your Shopify product and convert it into personalized product - Go to Shopify store page and search for "Advanced Product Customizer" app or you can directly the the Shopify app page by clicking on this link Advanced Product Customizer . Install Advanced Product Customizer app for free in your Shopify store From the application dashboard, enable to app embed block to complete the installation process Click "Product Custom Options" From the Shopify products list, select the product on which you want to add custom options. Advanced Product Customizer offers Image Swatch, Color Swatch, Text box, File Upload, Radio, Checkbox, Date Picker and more. Here is the a demo video for adding custom option for a Shopify product -
Below function demonstrates how to enable, disable and run the already created scheduled task. It will first check if the task exists in task scheduler:
The above function can be called in the below manner:
1. To run the task:
updateUserTaskInScheduler("Run");
2. To enable the task:
updateUserTaskInScheduler("Enable");
3. To disable the task:
updateUserTaskInScheduler("Disable");
public static void updateUserTaskInScheduler(string action) { try { ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = "cmd.exe"; startInfo.Arguments = "/C schtasks /query /TN <<TaskNameWithQuotes>>; //Check if task exists startInfo.RedirectStandardOutput = true; startInfo.UseShellExecute = false; startInfo.CreateNoWindow = true; startInfo.WindowStyle = ProcessWindowStyle.Hidden; if (System.Environment.OSVersion.Version.Major < 6) { startInfo.Verb = "runas"; } using (Process process = Process.Start(startInfo)) { // Read in all the text from the process with the StreamReader. using (StreamReader reader = process.StandardOutput) { string stdout = reader.ReadToEnd(); if (stdout.Contains("<<TaskName>>")) //If task exists { startInfo.RedirectStandardOutput = false; startInfo.UseShellExecute = true; switch (action) { case "Enable": startInfo.Arguments = "/C schtasks /Change /TN <<TaskNameWithQuotes>> /Enable"; break; case "Disable": startInfo.Arguments = "/C schtasks /Change /TN <<TaskNameWithQuotes>> /Disable"; break; case "Run": startInfo.Arguments = "/C schtasks /RUN /TN <<TaskNameWithQuotes>> "; break; } Process.Start(startInfo).WaitForExit(); } else { //Task doesnot exist } stdout = null; reader.Close(); reader.Dispose(); } } startInfo = null; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
The above function can be called in the below manner:
1. To run the task:
updateUserTaskInScheduler("Run");
2. To enable the task:
updateUserTaskInScheduler("Enable");
3. To disable the task:
updateUserTaskInScheduler("Disable");
Comments
Post a Comment