current_currency
store.default_currency
. This can be changed in the Settings -> Store Defaults
page.
<%= current_currency %>
USD
current_locale
store.default_locale
. This can be changed in the Settings -> Store Defaults
page. If there are multiple locales available, it will return the locale that is currently selected by the user.
<%= current_locale %>
en
and the user selects fr
, the URL will be /fr/products/123
.current_order
Show properties
R123456789
cart
[email protected]
Show properties
[email protected]
John
Doe
Show properties
123 Main St
Apt 1
Anytown
12345
Some Province
California
or Some Province
United States
US
Show properties
United States
USA
US
UNITED STATES
true
true
Show properties
123 Main St
Apt 1
Anytown
12345
Some Province
California
or Some Province
United States
US
Show properties
United States
USA
US
UNITED STATES
true
true
["vip", "wholesale"]
cart
state, this will be nil
.
Example: 2023-06-15 13:45:00
Show properties
123 Main St
Apt 1
Anytown
12345
Some Province
California
or Some Province
United States
US
Show properties
United States
USA
US
UNITED STATES
true
true
Show properties
123 Main St
Apt 1
Anytown
12345
Some Province
California
or Some Province
United States
US
Show properties
United States
USA
US
UNITED STATES
true
true
paid
shipped
USD
Show properties
Show properties
nil
.
current_store
Show Properties
https://mystore.com
my-store
[email protected]
USD
USD,EUR,GBP
en
en,es,fr
1
Show properties
United States
USA
US
UNITED STATES
true
true
2
My Amazing Store
The best products at the best prices
current_theme
Show properties
Winter Sale Theme
#000000
@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
Inter
100
Inter
100
true
1
100
100
0
0
4
5
1
100
8
0
0
4
5
1
6
0
0
4
5
300
300
190
190
#000000
#F0EFE9
#C73528
#999999
#FFFFFF
#000000
#00C773
#000000
#ffffff
#000000
#ffffff
#000000
#E9E7DC
#E9E7DC
#000000
#ffffff
#000000
#ffffff
#6b7280
#ffffff
#000000
#000000
#ffffff
#000000
#f3f4f6
#f3f4f6
#000000
local_time
<%= local_time(order.sent_to_erp_at) %>
supported_currencies
<%= supported_currencies %>
["USD", "EUR"]
try_spree_current_user
Show properties
[email protected]
John
Doe
Show properties
123 Main St
Apt 1
Anytown
12345
Some Province
California
or Some Province
United States
US
Show properties
United States
USA
US
UNITED STATES
true
true
Show properties
123 Main St
Apt 1
Anytown
12345
Some Province
California
or Some Province
United States
US
Show properties
United States
USA
US
UNITED STATES
true
true
["vip", "wholesale"]
Spree.admin_user_class
configuration). If the user is not signed in, it will return nil
.
<%= try_spree_current_user.present? %>