2019-11-08 16:30:11 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2019-09-23 18:07:13 +00:00
|
|
|
import { getSetting } from '@woocommerce/settings';
|
|
|
|
|
2019-12-13 17:13:11 +00:00
|
|
|
export const REVIEW_RATINGS_ENABLED = getSetting(
|
|
|
|
'reviewRatingsEnabled',
|
|
|
|
true
|
|
|
|
);
|
2019-09-23 18:07:13 +00:00
|
|
|
export const SHOW_AVATARS = getSetting( 'showAvatars', true );
|
|
|
|
export const MAX_COLUMNS = getSetting( 'max_columns', 6 );
|
|
|
|
export const MIN_COLUMNS = getSetting( 'min_columns', 1 );
|
|
|
|
export const DEFAULT_COLUMNS = getSetting( 'default_columns', 3 );
|
|
|
|
export const MAX_ROWS = getSetting( 'max_rows', 6 );
|
|
|
|
export const MIN_ROWS = getSetting( 'min_rows', 1 );
|
2020-01-22 16:58:25 +00:00
|
|
|
export const DEFAULT_ROWS = getSetting( 'default_rows', 3 );
|
2019-09-23 18:07:13 +00:00
|
|
|
export const MIN_HEIGHT = getSetting( 'min_height', 500 );
|
|
|
|
export const DEFAULT_HEIGHT = getSetting( 'default_height', 500 );
|
2019-10-24 13:55:44 +00:00
|
|
|
export const PLACEHOLDER_IMG_SRC = getSetting( 'placeholderImgSrc', '' );
|
2019-09-23 18:07:13 +00:00
|
|
|
export const THUMBNAIL_SIZE = getSetting( 'thumbnail_size', 300 );
|
|
|
|
export const IS_LARGE_CATALOG = getSetting( 'isLargeCatalog' );
|
|
|
|
export const LIMIT_TAGS = getSetting( 'limitTags' );
|
2019-10-28 13:53:09 +00:00
|
|
|
export const HAS_PRODUCTS = getSetting( 'hasProducts', true );
|
2019-09-23 18:07:13 +00:00
|
|
|
export const HAS_TAGS = getSetting( 'hasTags', true );
|
2019-10-23 10:51:10 +00:00
|
|
|
export const HOME_URL = getSetting( 'homeUrl', '' );
|
2019-12-10 15:41:57 +00:00
|
|
|
export const SHOP_URL = getSetting( 'shopUrl', '' );
|
2019-12-12 19:46:56 +00:00
|
|
|
export const CHECKOUT_URL = getSetting( 'checkoutUrl', '' );
|
2020-01-10 14:37:27 +00:00
|
|
|
export const COUPONS_ENABLED = getSetting( 'couponsEnabled', true );
|
2020-02-19 16:33:10 +00:00
|
|
|
export const SHIPPING_ENABLED = getSetting( 'shippingEnabled', true );
|
2020-01-10 14:37:27 +00:00
|
|
|
export const DISPLAY_PRICES_INCLUDING_TAXES = getSetting(
|
|
|
|
'displayPricesIncludingTaxes',
|
|
|
|
false
|
|
|
|
);
|
2019-11-01 13:56:14 +00:00
|
|
|
export const PRODUCT_COUNT = getSetting( 'productCount', 0 );
|
2019-11-11 10:32:56 +00:00
|
|
|
export const ATTRIBUTES = getSetting( 'attributes', [] );
|
2020-02-19 16:33:10 +00:00
|
|
|
export const IS_SHIPPING_CALCULATOR_ENABLED = getSetting(
|
|
|
|
'isShippingCalculatorEnabled',
|
|
|
|
true
|
|
|
|
);
|
|
|
|
export const IS_SHIPPING_COST_HIDDEN = getSetting(
|
|
|
|
'isShippingCostHidden',
|
|
|
|
false
|
|
|
|
);
|
2019-11-15 14:15:55 +00:00
|
|
|
export const WC_BLOCKS_ASSET_URL = getSetting( 'wcBlocksAssetUrl', '' );
|
2020-01-17 16:58:08 +00:00
|
|
|
export const SHIPPING_COUNTRIES = getSetting( 'shippingCountries', {} );
|
|
|
|
export const ALLOWED_COUNTRIES = getSetting( 'allowedCountries', {} );
|
2020-02-14 12:30:33 +00:00
|
|
|
export const SHIPPING_COUNTIES = getSetting( 'shippingCounties', {} );
|
|
|
|
export const ALLOWED_COUNTIES = getSetting( 'allowedCounties', {} );
|