Skip to main content

Posts

Showing posts from June, 2016

Featured Post

How to create customizable products in Shopify for Free (No coding!)

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 -

Recursively delete files from Directory C#.NET

Recursively delete files from given directory keeping the directory structure intact C#.NET To get all the files present in the subdirectories of the given directory, use "SearchOption.AllDirectories" DirectoryInfo  DirInfo   =  new   DirectoryInfo ( directoryPath ); DirInfo . GetFiles   ( "*" ,  SearchOption . AllDirectories   ). ToList (). ForEach ( file   => file . Delete ()); The above code will delete all the files for the given directory while keeping the structure of directory intact. To send files in recycle bin instead of deleting it from system use "FileSystem.DeleteFile" function of VisualBasic assembly. Add reference to VisualBasic dll and add "using Microsoft.VisualBasic.FileIO" DirInfo   =   new   DirectoryInfo (   directoryPath   ); List < FileInfo >  fileList   =   DirInfo . GetFiles ( "*" ,   SearchOption . AllDirectories ). ToList (); foreach ...