-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSageXMLConfig.cs
46 lines (42 loc) · 1.57 KB
/
SageXMLConfig.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
namespace WooSage
{
public class SageXMLConfig {
string[] _attributeList;
public string sku_key { get; set; }
public string name_key { get; set; }
public string stock_quantity_key { get; set; }
public string price_key { get; set; }
public string stock_status_key { get; set; }
public string average_rating_key { get; set; }
public string backordered_key { get; set; }
public string backorders_key { get; set; }
public string backorders_allowed_key { get; set; }
public string categories_key { get; set; }
public string description_key { get; set; }
public string external_url_key { get; set; }
public string featured_key { get; set; }
public string on_sale_key { get; set; }
public string permalink_key { get; set; }
public string price_html_key { get; set; }
public string purchasable_key { get; set; }
public string slug_key { get; set; }
public string status_key { get; set; }
public string type_key { get; set;}
public string Attributes {
get
{
if (_attributeList == null)
return null;
return string.Join(',', _attributeList);
}
set
{
_attributeList = value.Split(',');
}
}
public string[] GetAttributes()
{
return this._attributeList;
}
}
}