Get the classic theme
Endpoint: https://api.youcan.shop/themes/classic
Method: GET
Returns the customization of the classic theme. It works only for stores on the classic theme. Get store details shows the theme system of a store in theme.system.
Required Scopes
view-themes
Response
[200]
settings has five groups:
store_settings: header, notice bar, footer, fonts and breadcrumbs.colors_settings: the nine theme colors.product_settings: product page toggles, texts and style colors.checkout_settings: the checkout page look.pages_settings.home: the homepage sections, in order.
The example shows a part of each group:
json
{
"theme_id": "5f0e1d2c-3b4a-4958-8776-655443322110",
"settings": {
"store_settings": {
"is_coupon_visible": false,
"breadcrumbs": { "global": false, "checkout": false }
},
"colors_settings": {
"primary": "#803160",
"light-primary": "#803160",
"dark-primary": "#D0021B",
"secondary": "#DEC435",
"body-background": "#FFFFFF",
"success": "#00C853",
"info": "#40C4FF",
"warning": "#FFAB00",
"danger": "#F44336"
},
"product_settings": {
"enable_reviews": true,
"fakeStock": { "min": 5, "max": 10 }
},
"checkout_settings": {
"one_page_checkout": false
},
"pages_settings": {
"home": []
}
}
}[409] Conflict
The store uses the new theme system.
json
{
"error": "the store uses the new theme system, not the classic theme"
}