Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
22e0e178
Commit
22e0e178
authored
Apr 09, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data: added subject to product portal_type
parent
d6f5629a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
106 additions
and
37 deletions
+106
-37
data/product_fieldlist.json
data/product_fieldlist.json
+41
-0
data/product_sample.json
data/product_sample.json
+57
-37
lang/en-EN/dict.json
lang/en-EN/dict.json
+4
-0
lang/fr-FR/dict.json
lang/fr-FR/dict.json
+4
-0
No files found.
data/product_fieldlist.json
View file @
22e0e178
...
...
@@ -372,6 +372,47 @@
}
}
},
"subject"
:
{
"type"
:
"StringField"
,
"widget"
:
{
"id"
:
"subject"
,
"title"
:
"Subject"
,
"title_i18n"
:
"portal_type_dict.product_dict.field_dict.subject.title"
,
"description"
:
"Whether this article is a bestseller or other subject."
,
"description_i18n"
:
"portal_type_dict.product_dict.field_dict.subject.description"
,
"alternate_name"
:
"subject"
,
"default_value"
:
null
,
"css_class"
:
null
,
"hidden"
:
false
,
"display_width"
:
30
,
"maximum_input"
:
null
,
"extra"
:
{}
},
"properties"
:
{
"enabled"
:
true
,
"editable"
:
true
,
"external_validator"
:
null
,
"required"
:
true
,
"preserve_whitespace"
:
null
,
"unicode"
:
null
,
"maximum_length"
:
null
,
"truncate"
:
null
},
"messages"
:
{
"external_validator_failed"
:
{
"message"
:
"The input failed the external validator."
,
"i18n"
:
"validation_dict.external"
},
"required_not_found"
:
{
"message"
:
"Input is required but no input given."
,
"i18n"
:
"validation_dict.required"
},
"too_long"
:
{
"message"
:
"Too much input given."
,
"i18n"
:
"validation_dict.too_much_input"
}
}
},
"date_created"
:
{
"type"
:
"DateTimeField"
,
"widget"
:
{
...
...
data/product_sample.json
View file @
22e0e178
...
...
@@ -10,7 +10,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_004"
,
"category"
:
"cat_020"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
"leather"
,
"features"
:
"zip, ceinture"
,
"dimension"
:
"33.0cm"
,
...
...
@@ -18,7 +18,8 @@
"weight"
:
""
,
"price"
:
240
,
"size_range"
:
"set_023"
,
"variation_list"
:
[
"var_001"
]
"variation_list"
:
[
"var_001"
],
"subject"
:
""
},
{
"_id"
:
"pro_118"
,
"brand"
:
"Eleven Paris"
,
...
...
@@ -30,7 +31,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_014"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
"50% Cotton 50%Modal"
,
"features"
:
""
,
"dimensions"
:
"33.0cm"
,
...
...
@@ -38,7 +39,8 @@
"weight"
:
""
,
"price"
:
35
,
"size_range"
:
"set_025"
,
"variation_list"
:
[
"var_002"
]
"variation_list"
:
[
"var_002"
],
"subject"
:
""
},
{
"_id"
:
"pro_119"
,
"brand"
:
"Eleven Paris"
,
...
...
@@ -50,7 +52,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_016"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
"50% Cotton 50%Modal"
,
"features"
:
""
,
"dimensions"
:
""
,
...
...
@@ -58,7 +60,8 @@
"weight"
:
""
,
"price"
:
40
,
"size_range"
:
"set_025"
,
"variation_list"
:
[
"var_034"
,
"var_035"
]
"variation_list"
:
[
"var_034"
,
"var_035"
],
"subject"
:
""
},
{
"_id"
:
"pro_665"
,
"brand"
:
"See U Soon"
,
...
...
@@ -70,7 +73,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_012"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
"100% Polyester"
,
"features"
:
""
,
"dimensions"
:
""
,
...
...
@@ -78,7 +81,8 @@
"weight"
:
""
,
"price"
:
65
,
"size_range"
:
"set_032"
,
"variation_list"
:
[
"var_033"
]
"variation_list"
:
[
"var_033"
],
"subject"
:
""
},
{
"_id"
:
"pro_143"
,
"brand"
:
"See U Soon"
,
...
...
@@ -90,7 +94,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_014"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
"100%Linen"
,
"features"
:
""
,
"dimensions"
:
""
,
...
...
@@ -98,7 +102,8 @@
"weight"
:
""
,
"price"
:
65
,
"size_range"
:
"set_025"
,
"variation_list"
:[
"var_031"
,
"var_032"
]
"variation_list"
:[
"var_031"
,
"var_032"
],
"subject"
:
""
},
{
"_id"
:
"pro_128"
,
"brand"
:
"Eleven Paris"
,
...
...
@@ -110,7 +115,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_015"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
""
,
"features"
:
""
,
"dimensions"
:
""
,
...
...
@@ -118,7 +123,8 @@
"weight"
:
""
,
"price"
:
98
,
"size_range"
:
"set_032"
,
"variation_list"
:
[
"var_028"
,
"var_029"
,
"var_030"
]
"variation_list"
:
[
"var_028"
,
"var_029"
,
"var_030"
],
"subject"
:
""
},
{
"_id"
:
"pro_247"
,
"brand"
:
"Part Two"
,
...
...
@@ -130,7 +136,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_016"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
""
,
"features"
:
""
,
"dimensions"
:
""
,
...
...
@@ -138,7 +144,8 @@
"weight"
:
""
,
"price"
:
99.95
,
"size_range"
:
"set_038"
,
"variation_list"
:
[
"var_027"
]
"variation_list"
:
[
"var_027"
],
"subject"
:
""
},
{
"_id"
:
"pro_651"
,
"brand"
:
"Part Two"
,
...
...
@@ -150,7 +157,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_012"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
"100% SILK"
,
"features"
:
""
,
"dimensions"
:
""
,
...
...
@@ -158,7 +165,8 @@
"weight"
:
""
,
"price"
:
89
,
"size_range"
:
"set_032"
,
"variation_list"
:
[
"var_026"
]
"variation_list"
:
[
"var_026"
],
"subject"
:
""
},
{
"_id"
:
"pro_595"
,
"brand"
:
"See U Soon"
,
...
...
@@ -170,7 +178,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_014"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
"100% SILK"
,
"features"
:
""
,
"dimensions"
:
""
,
...
...
@@ -178,7 +186,8 @@
"weight"
:
""
,
"price"
:
45
,
"size_range"
:
"set_032"
,
"variation_list"
:
[
"var_025"
]
"variation_list"
:
[
"var_025"
],
"subject"
:
"best"
},
{
"_id"
:
"pro_78"
,
"brand"
:
"Marie Sixtine"
,
...
...
@@ -190,7 +199,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_014"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
""
,
"features"
:
""
,
"dimensions"
:
""
,
...
...
@@ -198,7 +207,8 @@
"weight"
:
""
,
"price"
:
45
,
"size_range"
:
"set_025"
,
"variation_list"
:
[
"var_023"
,
"var_024"
]
"variation_list"
:
[
"var_023"
,
"var_024"
],
"subject"
:
""
},
{
"_id"
:
"pro_721"
,
"brand"
:
"Nat et Nin"
,
...
...
@@ -210,7 +220,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_004"
,
"category"
:
"cat_019"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
"Leather"
,
"features"
:
"Zip , Ceinture"
,
"dimensions"
:
"12.5cm"
,
...
...
@@ -218,7 +228,8 @@
"weight"
:
""
,
"price"
:
90
,
"size_range"
:
"set_023"
,
"variation_list"
:
[
"var_019"
,
"var_020"
,
"var_021"
,
"var_022"
]
"variation_list"
:
[
"var_019"
,
"var_020"
,
"var_021"
,
"var_022"
],
"subject"
:
""
},
{
"_id"
:
"pro_588"
,
"brand"
:
"Caroline Vermeille"
,
...
...
@@ -230,7 +241,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_018"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
""
,
"features"
:
""
,
"dimensions"
:
"Largeur: 63.0 cm"
,
...
...
@@ -238,7 +249,8 @@
"weight"
:
""
,
"price"
:
59.95
,
"size_range"
:
"set_023"
,
"variation_list"
:
[
"var_017"
,
"var_018"
]
"variation_list"
:
[
"var_017"
,
"var_018"
],
"subject"
:
"best"
},
{
"_id"
:
"pro_139"
,
"brand"
:
"Eleven Paris"
,
...
...
@@ -250,7 +262,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_013"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
""
,
"features"
:
""
,
"dimensions"
:
""
,
...
...
@@ -258,7 +270,8 @@
"weight"
:
""
,
"price"
:
130
,
"size_range"
:
"set_038"
,
"variation_list"
:
[
"var_016"
]
"variation_list"
:
[
"var_016"
],
"subject"
:
""
},
{
"_id"
:
"pro_700"
,
"brand"
:
"Nan et Nin"
,
...
...
@@ -270,7 +283,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_004"
,
"category"
:
"cat_020"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
"Leather"
,
"features"
:
"Zip , Ceinture"
,
"dimensions"
:
"Hauteur: 24.0 cm"
,
...
...
@@ -278,7 +291,8 @@
"weight"
:
"550.0g"
,
"price"
:
180
,
"size_range"
:
"set_023"
,
"variation_list"
:
[
"var_012"
,
"var_013"
,
"var_014"
,
"var_015"
]
"variation_list"
:
[
"var_012"
,
"var_013"
,
"var_014"
,
"var_015"
],
"subject"
:
""
},
{
"_id"
:
"pro_317"
,
"brand"
:
"Nan et Nin"
,
...
...
@@ -290,7 +304,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_004"
,
"category"
:
"cat_020"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
"Leather"
,
"features"
:
"Zip , Ceinture"
,
"dimensions"
:
""
,
...
...
@@ -298,7 +312,8 @@
"weight"
:
""
,
"price"
:
180
,
"size_range"
:
"set_023"
,
"variation_list"
:
[
"var_007"
,
"var_008"
,
"var_009"
,
"var_010"
,
"var_011"
]
"variation_list"
:
[
"var_007"
,
"var_008"
,
"var_009"
,
"var_010"
,
"var_011"
],
"subject"
:
"best"
}
,
{
"_id"
:
"pro_521"
,
"brand"
:
"Marie Sixtine"
,
...
...
@@ -310,7 +325,7 @@
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_009"
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
"60%LAINE 40%TENCEL 100% SOIE "
,
"features"
:
""
,
"dimensions"
:
""
,
...
...
@@ -318,6 +333,8 @@
"weight"
:
""
,
"price"
:
95
,
"size_range"
:
"set_025"
,
"variation_list"
:
[
"var_006"
],
"subject"
:
""
},
{
"_id"
:
"pro_138"
,
"brand"
:
"Eleven Paris"
,
...
...
@@ -326,7 +343,7 @@
"default_image_path"
:
"http://www.weinparis.com/product_module/138/27/default_image?format=jpg&display=large"
,
"teaser_image_path"
:
""
,
"rebate"
:
0
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
""
,
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
...
...
@@ -337,7 +354,8 @@
"weight"
:
""
,
"price"
:
160
,
"size_range"
:
"set_025"
,
"variation_list"
:
[
"var_005"
]
"variation_list"
:
[
"var_005"
],
"subject"
:
""
},
{
"_id"
:
"pro_133"
,
"brand"
:
"Eleven Paris"
,
...
...
@@ -346,7 +364,7 @@
"default_image_path"
:
"http://www.weinparis.com/product_module/133/27/default_image?format=jpg&display=large"
,
"teaser_image_path"
:
""
,
"rebate"
:
0
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"material"
:
""
,
"features"
:
""
,
"section"
:
"cat_001"
,
...
...
@@ -357,7 +375,8 @@
"weight"
:
""
,
"price"
:
115
,
"size_range"
:
"set_025"
,
"variation_list"
:
[
"var_004"
]
"variation_list"
:
[
"var_004"
],
"subject"
:
"best"
},
{
"_id"
:
"pro_580"
,
"brand"
:
"Darling"
,
...
...
@@ -366,7 +385,7 @@
"default_image_path"
:
"http://www.weinparis.com/product_module/580/9/default_image?format=jpg&display=large"
,
"teaser_image_path"
:
""
,
"rebate"
:
0
,
"currency"
:
"
Euro
"
,
"currency"
:
"
€
"
,
"section"
:
"cat_001"
,
"group"
:
"cat_003"
,
"category"
:
"cat_009"
,
...
...
@@ -377,6 +396,7 @@
"weight"
:
""
,
"price"
:
95
,
"size_range"
:
"set_025"
,
"variation_list"
:[
"var_003"
]
"variation_list"
:[
"var_003"
],
"subject"
:
""
}
]
\ No newline at end of file
lang/en-EN/dict.json
View file @
22e0e178
...
...
@@ -130,6 +130,10 @@
"features"
:
{
"title"
:
"Features"
,
"description"
:
"The features of this product."
},
"subject"
:
{
"title"
:
"Subject"
,
"description"
:
"Whether the article has a subject (e.g. bestseller)."
}
}
},
...
...
lang/fr-FR/dict.json
View file @
22e0e178
...
...
@@ -130,6 +130,10 @@
"features"
:
{
"title"
:
"Traits"
,
"description"
:
"Les caractéristiques de ce produit."
},
"subject"
:
{
"title"
:
"Sujet"
,
"description"
:
"Si l'article a un sujet (par exemple, best-seller)."
}
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment