Skip to main content

Posts

Showing posts from September, 2017

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 -

Load Json array using jQuery and javascript

Here is the script to load json array- <head> <title> Page Title </title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js" ></script> </head> <body> <div id= "images" > test </div> </body> var dictionary = [ { "id" : "0" , "name" : "ABC" }, { "id" : "1" , "name" : "DEF" } , { "id" : "2" , "name" : "PQR" }, { "id" : "3" , "name" : "xyz" , "name2" : "xyz2" } ]; $( function (){ for ( var ke in dictionary ) { if (dictionary.hasOwnProperty(ke)) { var id = dictionary [ke].id; var name = dictionary [ke].name; //create a anchor element using id. //when ...

Convert class object to XML using C# in .NET

People is the class whose object needs to be converted in XML string which later can be stored in a DB field or as XML file. public class PersonDetail { public string FirstName { get ; set ; } public string LastName { get ; set ; } } public class People { public People () { PeopleList = new List<ProductImage>(); } public List<PersonDetail> PeopleList{ get ; set ; } } Function to convert class object to XML string: public static string SerializeToXml<T>(T value ) { StringWriter writer = new StringWriter(CultureInfo.InvariantCulture); XmlSerializer serializer = new XmlSerializer( typeof (T)); serializer.Serialize(writer, value ); return writer.ToString(); } C# code to convert class object to XML string: People peopleDetailList = new People(); PersonDetail pDetail = new PersonDetail (); ...