camaleon_ecommerce 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +37 -0
- data/app/assets/javascripts/plugins/ecommerce/admin.js +33 -0
- data/app/assets/javascripts/plugins/ecommerce/cart.js +207 -0
- data/app/assets/javascripts/plugins/ecommerce/fix_form.js +10 -0
- data/app/assets/javascripts/plugins/ecommerce/jquery.creditCardValidator.js +208 -0
- data/app/assets/stylesheets/plugins/ecommerce/admin.scss +122 -0
- data/app/assets/stylesheets/plugins/ecommerce/front.scss +36 -0
- data/app/controllers/plugins/ecommerce/admin/coupons_controller.rb +61 -0
- data/app/controllers/plugins/ecommerce/admin/orders_controller.rb +96 -0
- data/app/controllers/plugins/ecommerce/admin/payment_methods_controller.rb +90 -0
- data/app/controllers/plugins/ecommerce/admin/prices_controller.rb +70 -0
- data/app/controllers/plugins/ecommerce/admin/settings_controller.rb +22 -0
- data/app/controllers/plugins/ecommerce/admin/shipping_methods_controller.rb +62 -0
- data/app/controllers/plugins/ecommerce/admin/tax_rates_controller.rb +61 -0
- data/app/controllers/plugins/ecommerce/admin_controller.rb +20 -0
- data/app/controllers/plugins/ecommerce/front/checkout_controller.rb +166 -0
- data/app/controllers/plugins/ecommerce/front/orders_controller.rb +255 -0
- data/app/controllers/plugins/ecommerce/front_controller.rb +18 -0
- data/app/helpers/plugins/ecommerce/ecommerce_email_helper.rb +46 -0
- data/app/helpers/plugins/ecommerce/ecommerce_functions_helper.rb +49 -0
- data/app/helpers/plugins/ecommerce/ecommerce_helper.rb +240 -0
- data/app/helpers/plugins/ecommerce/ecommerce_payment_helper.rb +67 -0
- data/app/models/plugins/ecommerce/cart.rb +40 -0
- data/app/models/plugins/ecommerce/coupon.rb +25 -0
- data/app/models/plugins/ecommerce/coupon_decorator.rb +60 -0
- data/app/models/plugins/ecommerce/order.rb +65 -0
- data/app/models/plugins/ecommerce/order_decorator.rb +54 -0
- data/app/models/plugins/ecommerce/order_detail.rb +13 -0
- data/app/models/plugins/ecommerce/payment_method.rb +29 -0
- data/app/models/plugins/ecommerce/product.rb +14 -0
- data/app/models/plugins/ecommerce/shipping_method.rb +26 -0
- data/app/models/plugins/ecommerce/tax_rate.rb +18 -0
- data/app/views/camaleon_cms/html_mailer/order_received.html.erb +3 -0
- data/app/views/camaleon_cms/html_mailer/order_received_admin.html.erb +3 -0
- data/app/views/camaleon_cms/html_mailer/recovery_cart.html.erb +4 -0
- data/app/views/layouts/plugins/ecommerce/mailer.html.erb +22 -0
- data/app/views/plugins/ecommerce/admin/coupons/form.html.erb +73 -0
- data/app/views/plugins/ecommerce/admin/coupons/index.html.erb +50 -0
- data/app/views/plugins/ecommerce/admin/index.html.erb +2 -0
- data/app/views/plugins/ecommerce/admin/orders/form.html.erb +64 -0
- data/app/views/plugins/ecommerce/admin/orders/index.html.erb +90 -0
- data/app/views/plugins/ecommerce/admin/orders/show.html.erb +173 -0
- data/app/views/plugins/ecommerce/admin/payment_methods/form.html.erb +115 -0
- data/app/views/plugins/ecommerce/admin/payment_methods/index.html.erb +43 -0
- data/app/views/plugins/ecommerce/admin/payment_methods/show.html.erb +70 -0
- data/app/views/plugins/ecommerce/admin/prices/form.html.erb +49 -0
- data/app/views/plugins/ecommerce/admin/prices/index.html.erb +39 -0
- data/app/views/plugins/ecommerce/admin/prices/show.html.erb +19 -0
- data/app/views/plugins/ecommerce/admin/products/index.html.erb +114 -0
- data/app/views/plugins/ecommerce/admin/settings/index.html.erb +25 -0
- data/app/views/plugins/ecommerce/admin/shipping_methods/form.html.erb +39 -0
- data/app/views/plugins/ecommerce/admin/shipping_methods/index.html.erb +41 -0
- data/app/views/plugins/ecommerce/admin/shipping_methods/show.html.erb +22 -0
- data/app/views/plugins/ecommerce/admin/tax_rates/form.html.erb +36 -0
- data/app/views/plugins/ecommerce/admin/tax_rates/index.html.erb +41 -0
- data/app/views/plugins/ecommerce/front/_post_list_item.html.erb +18 -0
- data/app/views/plugins/ecommerce/front/checkout/cart_index.html.erb +59 -0
- data/app/views/plugins/ecommerce/front/checkout/index.html.erb +166 -0
- data/app/views/plugins/ecommerce/front/index.html.erb +2 -0
- data/app/views/plugins/ecommerce/front/list_products.html.erb +34 -0
- data/app/views/plugins/ecommerce/front/orders/index.html.erb +46 -0
- data/app/views/plugins/ecommerce/front/orders/pay_by_bank_transfer.html.erb +67 -0
- data/app/views/plugins/ecommerce/front/orders/pay_by_credit_card.html.erb +131 -0
- data/app/views/plugins/ecommerce/front/orders/pay_by_credit_card_authorize_net.erb +150 -0
- data/app/views/plugins/ecommerce/front/orders/select_payment.html.erb +70 -0
- data/app/views/plugins/ecommerce/front/orders/show.html.erb +76 -0
- data/app/views/plugins/ecommerce/front/product.html.erb +105 -0
- data/app/views/plugins/ecommerce/layouts/_ecommerce.html.erb +41 -0
- data/app/views/plugins/ecommerce/partials/_form_address.html.erb +84 -0
- data/app/views/plugins/ecommerce/partials/_table_order_products.html.erb +85 -0
- data/config/camaleon_plugin.json +48 -0
- data/config/currency.json +154 -0
- data/config/currency_en.json +154 -0
- data/config/currency_es.json +154 -0
- data/config/custom_models.rb +64 -0
- data/config/locales/readme.txt +1 -0
- data/config/locales/translation.yml +371 -0
- data/config/routes.rb +57 -0
- data/lib/camaleon_ecommerce.rb +4 -0
- data/lib/ecommerce.rb +4 -0
- data/lib/ecommerce/engine.rb +6 -0
- data/lib/ecommerce/version.rb +3 -0
- data/lib/tasks/ecommerce_tasks.rake +4 -0
- metadata +185 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
<div class="container">
|
2
|
+
|
3
|
+
<div class="row" style="min-height: 64px">
|
4
|
+
<div class="col-md-8">
|
5
|
+
<ol class="breadcrumb" style="margin: 0;">
|
6
|
+
<% @ecommerce_bredcrumb.each_with_index do |m, index| %>
|
7
|
+
<% if m[1].present? %>
|
8
|
+
<li class="<%= "active" if @ecommerce_bredcrumb.size == index+1 %>"><a href="<%= m[1] %>"><%= m[0] %></a></li>
|
9
|
+
<% else %>
|
10
|
+
<li class="<%= "active" if @ecommerce_bredcrumb.size == index+1 %>"><span><%= m[0] %></span></li>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
13
|
+
</ol>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="col-md-4">
|
17
|
+
<% if signin? %>
|
18
|
+
<div class="well shopping_cart_box">
|
19
|
+
<% @cart = current_site.carts.set_user(current_user).first_or_create(name: "Cart by #{current_user.id}") %>
|
20
|
+
<h5>Shopping Cart</h5>
|
21
|
+
<p>(<%= @cart.the_items_count %>) Items, Total: <%= current_site.current_unit %> <%= @cart.the_amount_total %></p>
|
22
|
+
<span>
|
23
|
+
<a href="<%= @ecommerce_post_type.the_url %>" class="btn btn-default btn-xs">All Products</a>
|
24
|
+
<% if( @cart.the_items_count.to_i > 0 ) %>
|
25
|
+
<a href="<%= plugins_ecommerce_checkout_cart_path %>" class="btn btn-warning btn-xs">Purchase</a>
|
26
|
+
<% end %>
|
27
|
+
<a href="<%= plugins_ecommerce_orders_path %>" class="btn btn-success btn-xs">My Orders</a>
|
28
|
+
</span>
|
29
|
+
</div>
|
30
|
+
<% else %>
|
31
|
+
<div class=" text-right">
|
32
|
+
<a href="<%= @ecommerce_post_type.the_url %>" class="btn btn-default">All Products</a>
|
33
|
+
</div>
|
34
|
+
<% end %>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<div class="clearfix" >
|
38
|
+
<%= render partial: "/camaleon_cms/flash_messages.html.erb" %>
|
39
|
+
<%= yield %>
|
40
|
+
</div>
|
41
|
+
</div>
|
@@ -0,0 +1,84 @@
|
|
1
|
+
<%
|
2
|
+
billing_address ||= {}
|
3
|
+
shipping_address ||= {}
|
4
|
+
%>
|
5
|
+
<div id="billing_address" class="col-md-6">
|
6
|
+
<h3><%= t('plugin.ecommerce.billing_address') %></h3>
|
7
|
+
|
8
|
+
<div class="form-group">
|
9
|
+
<label for=""><%= t('plugin.ecommerce.table.firstname') %></label>
|
10
|
+
<%= text_field_tag 'order[billing_address][first_name]', billing_address[:first_name], class: 'form-control required' %>
|
11
|
+
|
12
|
+
</div>
|
13
|
+
<div class="form-group">
|
14
|
+
<label for=""><%= t('plugin.ecommerce.table.lastname') %></label>
|
15
|
+
<%= text_field_tag 'order[billing_address][last_name]',billing_address[:last_name], class: 'form-control required' %>
|
16
|
+
</div>
|
17
|
+
<div class="form-group">
|
18
|
+
<label for=""><%= t('plugin.ecommerce.table.address') %></label>
|
19
|
+
<%= text_field_tag 'order[billing_address][address1]',billing_address[:address1], class: 'form-control required' %>
|
20
|
+
</div>
|
21
|
+
<div class="form-group">
|
22
|
+
<label for=""><%= t('plugin.ecommerce.table.address') %> 2</label>
|
23
|
+
<%= text_field_tag 'order[billing_address][address2]',billing_address[:address2], class: 'form-control' %>
|
24
|
+
</div>
|
25
|
+
<div class="form-group">
|
26
|
+
<label for=""><%= t('plugin.ecommerce.table.city') %></label>
|
27
|
+
<%= text_field_tag 'order[billing_address][city]',billing_address[:city], class: 'form-control required' %>
|
28
|
+
</div>
|
29
|
+
<div class="form-group">
|
30
|
+
<label for=""><%= t('plugin.ecommerce.table.country') %></label>
|
31
|
+
<%= country_select :billing_address, :country, {locale: I18n.locale.to_s, iso_codes: true, selected: billing_address[:country]}, { :name => 'order[billing_address][country]', class: 'form-control' } %>
|
32
|
+
</div>
|
33
|
+
<div class="form-group">
|
34
|
+
<label for=""><%= t('plugin.ecommerce.table.state') %></label>
|
35
|
+
<%= text_field_tag 'order[billing_address][state]',billing_address[:state], class: 'form-control' %>
|
36
|
+
</div>
|
37
|
+
<div class="form-group">
|
38
|
+
<label for=""><%= t('plugin.ecommerce.table.code_zip') %></label>
|
39
|
+
<%= text_field_tag 'order[billing_address][zip]',billing_address[:zip], class: 'form-control' %>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<div id="shipping_address" class="col-md-6">
|
45
|
+
<h3>
|
46
|
+
<%= t('plugin.ecommerce.shipping_address') %>
|
47
|
+
<a href="#" id="ec_copy">copy from billing</a>
|
48
|
+
</h3>
|
49
|
+
|
50
|
+
<div class="form-group">
|
51
|
+
<label for=""><%= t('plugin.ecommerce.table.firstname') %></label>
|
52
|
+
<%= text_field_tag 'order[shipping_address][first_name]', shipping_address[:first_name], class: 'form-control required' %>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
<div class="form-group">
|
56
|
+
<label for=""><%= t('plugin.ecommerce.table.lastname') %></label>
|
57
|
+
<%= text_field_tag 'order[shipping_address][last_name]', shipping_address[:last_name], class: 'form-control required' %>
|
58
|
+
</div>
|
59
|
+
<div class="form-group">
|
60
|
+
<label for=""><%= t('plugin.ecommerce.table.address') %></label>
|
61
|
+
<%= text_field_tag 'order[shipping_address][address1]', shipping_address[:address1], class: 'form-control required' %>
|
62
|
+
</div>
|
63
|
+
<div class="form-group">
|
64
|
+
<label for=""><%= t('plugin.ecommerce.table.address') %> 2</label>
|
65
|
+
<%= text_field_tag 'order[shipping_address][address2]', shipping_address[:address2], class: 'form-control' %>
|
66
|
+
</div>
|
67
|
+
<div class="form-group">
|
68
|
+
<label for=""><%= t('plugin.ecommerce.table.city') %></label>
|
69
|
+
<%= text_field_tag 'order[shipping_address][city]', shipping_address[:city], class: 'form-control required' %>
|
70
|
+
</div>
|
71
|
+
<div class="form-group">
|
72
|
+
<label for=""><%= t('plugin.ecommerce.table.country') %></label>
|
73
|
+
<%= country_select :shipping_address, :country, {locale: I18n.locale.to_s, iso_codes: true, selected: billing_address[:country]}, { :name => 'order[shipping_address][country]', class: 'form-control' } %>
|
74
|
+
</div>
|
75
|
+
<div class="form-group">
|
76
|
+
<label for=""><%= t('plugin.ecommerce.table.state') %></label>
|
77
|
+
<%= text_field_tag 'order[shipping_address][state]', shipping_address[:state], class: 'form-control' %>
|
78
|
+
</div>
|
79
|
+
<div class="form-group">
|
80
|
+
<label for=""><%= t('plugin.ecommerce.table.code_zip') %></label>
|
81
|
+
<%= text_field_tag 'order[shipping_address][zip]', shipping_address[:zip], class: 'form-control' %>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
</div>
|
@@ -0,0 +1,85 @@
|
|
1
|
+
<table class="table table-bordered">
|
2
|
+
<tbody>
|
3
|
+
<tr>
|
4
|
+
<th id="quantity_col"><%= t('plugin.ecommerce.product.qty') %></th>
|
5
|
+
<th id="item_col"><%= t('plugin.ecommerce.product.item') %></th>
|
6
|
+
<th id="price_col"><%= t('plugin.ecommerce.product.price') %></th>
|
7
|
+
|
8
|
+
<th id="tax_col"><%= t('plugin.ecommerce.product.tax') %></th>
|
9
|
+
<th id="subtotal_col"><%= t('plugin.ecommerce.table.sub_total') %></th>
|
10
|
+
</tr>
|
11
|
+
|
12
|
+
<%
|
13
|
+
current_unit = '$'
|
14
|
+
order.get_meta("products", {}).each do |key, product|
|
15
|
+
|
16
|
+
current_unit = e_get_currency_units[product[:currency_code]]['symbol'] rescue '$'
|
17
|
+
qty = product[:qty].to_f
|
18
|
+
price = product[:price].to_f
|
19
|
+
tax_product = product[:tax].to_f
|
20
|
+
|
21
|
+
tax_total_product = tax_product * qty
|
22
|
+
sub_total = price * qty
|
23
|
+
%>
|
24
|
+
<tr>
|
25
|
+
<td><%= qty.to_i %></td>
|
26
|
+
<td><%= product[:product_title] %></td>
|
27
|
+
<td><%= current_unit %> <%= price %></td>
|
28
|
+
|
29
|
+
<td><%= current_unit %> <%= tax_product %></td>
|
30
|
+
<td><%= current_unit %> <%= sub_total + tax_total_product %></td>
|
31
|
+
</tr>
|
32
|
+
<% end
|
33
|
+
|
34
|
+
%>
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
<tr>
|
39
|
+
<td colspan="2"></td>
|
40
|
+
<td colspan="2" class="text-right"><%= t('plugin.ecommerce.product.total_excluding_tax') %></td>
|
41
|
+
<td id="subtotal_total">
|
42
|
+
<%= current_unit %> <%= order.get_meta("payment")[:sub_total] %>
|
43
|
+
</td>
|
44
|
+
</tr>
|
45
|
+
<tr >
|
46
|
+
<td colspan="2"></td>
|
47
|
+
<td colspan="2" class="text-right"><%= t('plugin.ecommerce.product.tax') %></td>
|
48
|
+
<td id="tax_total">
|
49
|
+
<%= current_unit %> <%= order.get_meta("payment")[:tax_total] %>
|
50
|
+
</td>
|
51
|
+
</tr>
|
52
|
+
|
53
|
+
|
54
|
+
<tr>
|
55
|
+
<td colspan="2"></td>
|
56
|
+
<td colspan="2" class="text-right"><%= t('plugin.ecommerce.table.shipping') %></td>
|
57
|
+
<td id="shipping_total"><%= current_unit %> <span><%= order.get_meta("payment")[:weight_price] %></span></td>
|
58
|
+
</tr>
|
59
|
+
|
60
|
+
<tr>
|
61
|
+
<td colspan="2"></td>
|
62
|
+
<td colspan="2" class="text-right">Sub <%= t('plugin.ecommerce.table.total') %></td>
|
63
|
+
<td id="order_total">
|
64
|
+
|
65
|
+
<%= current_unit %> <span><%= order.get_meta("payment")[:total] %></span></td>
|
66
|
+
</tr>
|
67
|
+
|
68
|
+
<% if order.get_meta("payment")[:coupon_amount].to_i > 0 %>
|
69
|
+
<tr id="coupon_application_row" >
|
70
|
+
<td colspan="2"></td>
|
71
|
+
<td colspan="2" class="text-right"><%= t('plugin.ecommerce.table.discount') %></td>
|
72
|
+
<td class="extra_totals reduce_tax_subtotal" id="coupon_application_total">
|
73
|
+
- <%= current_unit %> <span><%= order.get_meta("payment")[:coupon_amount] %></span> <strong>(<%= order.get_meta("payment")[:coupon] %>)</strong>
|
74
|
+
</td>
|
75
|
+
</tr>
|
76
|
+
<% end %>
|
77
|
+
<tr>
|
78
|
+
<td colspan="2"></td>
|
79
|
+
<td colspan="2" class="text-right"><%= t('plugin.ecommerce.table.total') %></td>
|
80
|
+
<td id="order_total">
|
81
|
+
|
82
|
+
<%= current_unit %> <span><%= order.get_meta("payment")[:amount] %></span></td>
|
83
|
+
</tr>
|
84
|
+
</tbody>
|
85
|
+
</table>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
{
|
2
|
+
"title": "E-Commerce",
|
3
|
+
"descr": "Plugins E-commerce",
|
4
|
+
"version": "0.2",
|
5
|
+
"key": "ecommerce",
|
6
|
+
"helpers": [
|
7
|
+
"Plugins::Ecommerce::EcommerceHelper",
|
8
|
+
"Plugins::Ecommerce::EcommerceFunctionsHelper",
|
9
|
+
"Plugins::Ecommerce::EcommercePaymentHelper"
|
10
|
+
],
|
11
|
+
"options": [
|
12
|
+
],
|
13
|
+
"hooks": {
|
14
|
+
"on_active": [
|
15
|
+
"ecommerce_on_active"
|
16
|
+
],
|
17
|
+
"on_inactive": [
|
18
|
+
"ecommerce_on_inactive"
|
19
|
+
],
|
20
|
+
"on_upgrade": [
|
21
|
+
"ecommerce_on_upgrade"
|
22
|
+
],
|
23
|
+
"front_before_load": [
|
24
|
+
"ecommerce_front_before_load"
|
25
|
+
],
|
26
|
+
"admin_before_load": [
|
27
|
+
"ecommerce_admin_before_load"
|
28
|
+
],
|
29
|
+
"on_render_post": [
|
30
|
+
"ecommerce_on_render_post"
|
31
|
+
],
|
32
|
+
"on_render_post_type": [
|
33
|
+
"ecommerce_on_render_post_type"
|
34
|
+
],
|
35
|
+
"list_post": [
|
36
|
+
"ecommerce_admin_list_post"
|
37
|
+
],
|
38
|
+
"app_before_load": [
|
39
|
+
"ecommerce_app_before_load"
|
40
|
+
],
|
41
|
+
"edit_post": [
|
42
|
+
"ecommerce_form_post"
|
43
|
+
],
|
44
|
+
"new_post": [
|
45
|
+
"ecommerce_form_post"
|
46
|
+
]
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1,154 @@
|
|
1
|
+
{
|
2
|
+
"USD": {
|
3
|
+
"symbol": "$",
|
4
|
+
"name": "US Dollar",
|
5
|
+
"symbol_native": "$",
|
6
|
+
"decimal_digits": 2,
|
7
|
+
"rounding": 0,
|
8
|
+
"code": "USD",
|
9
|
+
"name_plural": "US dollars"
|
10
|
+
},
|
11
|
+
"CAD": {
|
12
|
+
"symbol": "CA$",
|
13
|
+
"name": "Canadian Dollar",
|
14
|
+
"symbol_native": "$",
|
15
|
+
"decimal_digits": 2,
|
16
|
+
"rounding": 0,
|
17
|
+
"code": "CAD",
|
18
|
+
"name_plural": "Canadian dollars"
|
19
|
+
},
|
20
|
+
"EUR": {
|
21
|
+
"symbol": "€",
|
22
|
+
"name": "Euro",
|
23
|
+
"symbol_native": "€",
|
24
|
+
"decimal_digits": 2,
|
25
|
+
"rounding": 0,
|
26
|
+
"code": "EUR",
|
27
|
+
"name_plural": "euros"
|
28
|
+
},
|
29
|
+
"AUD": {
|
30
|
+
"symbol": "AU$",
|
31
|
+
"name": "Australian Dollar",
|
32
|
+
"symbol_native": "$",
|
33
|
+
"decimal_digits": 2,
|
34
|
+
"rounding": 0,
|
35
|
+
"code": "AUD",
|
36
|
+
"name_plural": "Australian dollars"
|
37
|
+
},
|
38
|
+
"GBP": {
|
39
|
+
"symbol": "£",
|
40
|
+
"name": "British Pound Sterling",
|
41
|
+
"symbol_native": "£",
|
42
|
+
"decimal_digits": 2,
|
43
|
+
"rounding": 0,
|
44
|
+
"code": "GBP",
|
45
|
+
"name_plural": "British pounds sterling"
|
46
|
+
},
|
47
|
+
"CZK": {
|
48
|
+
"symbol": "Kč",
|
49
|
+
"name": "Czech Republic Koruna",
|
50
|
+
"symbol_native": "Kč",
|
51
|
+
"decimal_digits": 2,
|
52
|
+
"rounding": 0,
|
53
|
+
"code": "CZK",
|
54
|
+
"name_plural": "Czech Republic korunas"
|
55
|
+
},
|
56
|
+
"DKK": {
|
57
|
+
"symbol": "Dkr",
|
58
|
+
"name": "Danish Krone",
|
59
|
+
"symbol_native": "kr",
|
60
|
+
"decimal_digits": 2,
|
61
|
+
"rounding": 0,
|
62
|
+
"code": "DKK",
|
63
|
+
"name_plural": "Danish kroner"
|
64
|
+
},
|
65
|
+
|
66
|
+
"HKD": {
|
67
|
+
"symbol": "HK$",
|
68
|
+
"name": "Hong Kong Dollar",
|
69
|
+
"symbol_native": "$",
|
70
|
+
"decimal_digits": 2,
|
71
|
+
"rounding": 0,
|
72
|
+
"code": "HKD",
|
73
|
+
"name_plural": "Hong Kong dollars"
|
74
|
+
},
|
75
|
+
|
76
|
+
"HUF": {
|
77
|
+
"symbol": "Ft",
|
78
|
+
"name": "Hungarian Forint",
|
79
|
+
"symbol_native": "Ft",
|
80
|
+
"decimal_digits": 0,
|
81
|
+
"rounding": 0,
|
82
|
+
"code": "HUF",
|
83
|
+
"name_plural": "Hungarian forints"
|
84
|
+
},
|
85
|
+
|
86
|
+
"JPY": {
|
87
|
+
"symbol": "¥",
|
88
|
+
"name": "Japanese Yen",
|
89
|
+
"symbol_native": "¥",
|
90
|
+
"decimal_digits": 0,
|
91
|
+
"rounding": 0,
|
92
|
+
"code": "JPY",
|
93
|
+
"name_plural": "Japanese yen"
|
94
|
+
},
|
95
|
+
|
96
|
+
"NOK": {
|
97
|
+
"symbol": "Nkr",
|
98
|
+
"name": "Norwegian Krone",
|
99
|
+
"symbol_native": "kr",
|
100
|
+
"decimal_digits": 2,
|
101
|
+
"rounding": 0,
|
102
|
+
"code": "NOK",
|
103
|
+
"name_plural": "Norwegian kroner"
|
104
|
+
},
|
105
|
+
|
106
|
+
"NZD": {
|
107
|
+
"symbol": "NZ$",
|
108
|
+
"name": "New Zealand Dollar",
|
109
|
+
"symbol_native": "$",
|
110
|
+
"decimal_digits": 2,
|
111
|
+
"rounding": 0,
|
112
|
+
"code": "NZD",
|
113
|
+
"name_plural": "New Zealand dollars"
|
114
|
+
},
|
115
|
+
|
116
|
+
"PLN": {
|
117
|
+
"symbol": "zł",
|
118
|
+
"name": "Polish Zloty",
|
119
|
+
"symbol_native": "zł",
|
120
|
+
"decimal_digits": 2,
|
121
|
+
"rounding": 0,
|
122
|
+
"code": "PLN",
|
123
|
+
"name_plural": "Polish zlotys"
|
124
|
+
},
|
125
|
+
|
126
|
+
"SEK": {
|
127
|
+
"symbol": "Skr",
|
128
|
+
"name": "Swedish Krona",
|
129
|
+
"symbol_native": "kr",
|
130
|
+
"decimal_digits": 2,
|
131
|
+
"rounding": 0,
|
132
|
+
"code": "SEK",
|
133
|
+
"name_plural": "Swedish kronor"
|
134
|
+
},
|
135
|
+
"SGD": {
|
136
|
+
"symbol": "S$",
|
137
|
+
"name": "Singapore Dollar",
|
138
|
+
"symbol_native": "$",
|
139
|
+
"decimal_digits": 2,
|
140
|
+
"rounding": 0,
|
141
|
+
"code": "SGD",
|
142
|
+
"name_plural": "Singapore dollars"
|
143
|
+
},
|
144
|
+
"CHF": {
|
145
|
+
"symbol": "CHF",
|
146
|
+
"name": "Swiss Franc",
|
147
|
+
"symbol_native": "CHF",
|
148
|
+
"decimal_digits": 2,
|
149
|
+
"rounding": 0.05,
|
150
|
+
"code": "CHF",
|
151
|
+
"name_plural": "Swiss francs"
|
152
|
+
}
|
153
|
+
|
154
|
+
}
|
@@ -0,0 +1,154 @@
|
|
1
|
+
{
|
2
|
+
"USD": {
|
3
|
+
"symbol": "$",
|
4
|
+
"name": "US Dollar",
|
5
|
+
"symbol_native": "$",
|
6
|
+
"decimal_digits": 2,
|
7
|
+
"rounding": 0,
|
8
|
+
"code": "USD",
|
9
|
+
"name_plural": "US dollars"
|
10
|
+
},
|
11
|
+
"CAD": {
|
12
|
+
"symbol": "CA$",
|
13
|
+
"name": "Canadian Dollar",
|
14
|
+
"symbol_native": "$",
|
15
|
+
"decimal_digits": 2,
|
16
|
+
"rounding": 0,
|
17
|
+
"code": "CAD",
|
18
|
+
"name_plural": "Canadian dollars"
|
19
|
+
},
|
20
|
+
"EUR": {
|
21
|
+
"symbol": "€",
|
22
|
+
"name": "Euro",
|
23
|
+
"symbol_native": "€",
|
24
|
+
"decimal_digits": 2,
|
25
|
+
"rounding": 0,
|
26
|
+
"code": "EUR",
|
27
|
+
"name_plural": "euros"
|
28
|
+
},
|
29
|
+
"AUD": {
|
30
|
+
"symbol": "AU$",
|
31
|
+
"name": "Australian Dollar",
|
32
|
+
"symbol_native": "$",
|
33
|
+
"decimal_digits": 2,
|
34
|
+
"rounding": 0,
|
35
|
+
"code": "AUD",
|
36
|
+
"name_plural": "Australian dollars"
|
37
|
+
},
|
38
|
+
"GBP": {
|
39
|
+
"symbol": "£",
|
40
|
+
"name": "British Pound Sterling",
|
41
|
+
"symbol_native": "£",
|
42
|
+
"decimal_digits": 2,
|
43
|
+
"rounding": 0,
|
44
|
+
"code": "GBP",
|
45
|
+
"name_plural": "British pounds sterling"
|
46
|
+
},
|
47
|
+
"CZK": {
|
48
|
+
"symbol": "Kč",
|
49
|
+
"name": "Czech Republic Koruna",
|
50
|
+
"symbol_native": "Kč",
|
51
|
+
"decimal_digits": 2,
|
52
|
+
"rounding": 0,
|
53
|
+
"code": "CZK",
|
54
|
+
"name_plural": "Czech Republic korunas"
|
55
|
+
},
|
56
|
+
"DKK": {
|
57
|
+
"symbol": "Dkr",
|
58
|
+
"name": "Danish Krone",
|
59
|
+
"symbol_native": "kr",
|
60
|
+
"decimal_digits": 2,
|
61
|
+
"rounding": 0,
|
62
|
+
"code": "DKK",
|
63
|
+
"name_plural": "Danish kroner"
|
64
|
+
},
|
65
|
+
|
66
|
+
"HKD": {
|
67
|
+
"symbol": "HK$",
|
68
|
+
"name": "Hong Kong Dollar",
|
69
|
+
"symbol_native": "$",
|
70
|
+
"decimal_digits": 2,
|
71
|
+
"rounding": 0,
|
72
|
+
"code": "HKD",
|
73
|
+
"name_plural": "Hong Kong dollars"
|
74
|
+
},
|
75
|
+
|
76
|
+
"HUF": {
|
77
|
+
"symbol": "Ft",
|
78
|
+
"name": "Hungarian Forint",
|
79
|
+
"symbol_native": "Ft",
|
80
|
+
"decimal_digits": 0,
|
81
|
+
"rounding": 0,
|
82
|
+
"code": "HUF",
|
83
|
+
"name_plural": "Hungarian forints"
|
84
|
+
},
|
85
|
+
|
86
|
+
"JPY": {
|
87
|
+
"symbol": "¥",
|
88
|
+
"name": "Japanese Yen",
|
89
|
+
"symbol_native": "¥",
|
90
|
+
"decimal_digits": 0,
|
91
|
+
"rounding": 0,
|
92
|
+
"code": "JPY",
|
93
|
+
"name_plural": "Japanese yen"
|
94
|
+
},
|
95
|
+
|
96
|
+
"NOK": {
|
97
|
+
"symbol": "Nkr",
|
98
|
+
"name": "Norwegian Krone",
|
99
|
+
"symbol_native": "kr",
|
100
|
+
"decimal_digits": 2,
|
101
|
+
"rounding": 0,
|
102
|
+
"code": "NOK",
|
103
|
+
"name_plural": "Norwegian kroner"
|
104
|
+
},
|
105
|
+
|
106
|
+
"NZD": {
|
107
|
+
"symbol": "NZ$",
|
108
|
+
"name": "New Zealand Dollar",
|
109
|
+
"symbol_native": "$",
|
110
|
+
"decimal_digits": 2,
|
111
|
+
"rounding": 0,
|
112
|
+
"code": "NZD",
|
113
|
+
"name_plural": "New Zealand dollars"
|
114
|
+
},
|
115
|
+
|
116
|
+
"PLN": {
|
117
|
+
"symbol": "zł",
|
118
|
+
"name": "Polish Zloty",
|
119
|
+
"symbol_native": "zł",
|
120
|
+
"decimal_digits": 2,
|
121
|
+
"rounding": 0,
|
122
|
+
"code": "PLN",
|
123
|
+
"name_plural": "Polish zlotys"
|
124
|
+
},
|
125
|
+
|
126
|
+
"SEK": {
|
127
|
+
"symbol": "Skr",
|
128
|
+
"name": "Swedish Krona",
|
129
|
+
"symbol_native": "kr",
|
130
|
+
"decimal_digits": 2,
|
131
|
+
"rounding": 0,
|
132
|
+
"code": "SEK",
|
133
|
+
"name_plural": "Swedish kronor"
|
134
|
+
},
|
135
|
+
"SGD": {
|
136
|
+
"symbol": "S$",
|
137
|
+
"name": "Singapore Dollar",
|
138
|
+
"symbol_native": "$",
|
139
|
+
"decimal_digits": 2,
|
140
|
+
"rounding": 0,
|
141
|
+
"code": "SGD",
|
142
|
+
"name_plural": "Singapore dollars"
|
143
|
+
},
|
144
|
+
"CHF": {
|
145
|
+
"symbol": "CHF",
|
146
|
+
"name": "Swiss Franc",
|
147
|
+
"symbol_native": "CHF",
|
148
|
+
"decimal_digits": 2,
|
149
|
+
"rounding": 0.05,
|
150
|
+
"code": "CHF",
|
151
|
+
"name_plural": "Swiss francs"
|
152
|
+
}
|
153
|
+
|
154
|
+
}
|