コード例 #1
0
        public Property Convert(ShopifyOption option, ShopifyImportParams importParams)
        {
            var retVal = new Property()
            {
                CatalogId   = importParams.VirtoCatalogId,
                CreatedDate = DateTime.Now,
                Name        = option.Name,
                Type        = PropertyType.Variation
            };

            return(retVal);
        }
コード例 #2
0
        //All possible options
        public ShopifyProduct(string body, string bodyHtml, DateTime? created, string handle,
			int id, string productType, DateTime? publishedAt, string templateSuffix,
			string title, DateTime? updatedAt, string vendor, string tags, ShopifyVariant[] variants,
			ShopifyImage[] images, ShopifyOption[] options)
        {
            this.body = body;
            this.bodyHtml = bodyHtml;
            this.created = created;
            this.handle = handle;
            this.id = id;
            this.productType = productType;
            this.publishedAt = publishedAt;
            this.templateSuffix = templateSuffix;
            this.title = title;
            this.updatedAt = updatedAt;
            this.vendor = vendor;
            this.tags = tags;
            this.variants = variants;
            this.images = images;
            this.options = options;
        }