Astra_Ext_Woocommerce_Loader::theme_defaults( array $defaults )

Set Options Default Values


Description


Parameters

$defaults

(array) (Required) Astra options default value array.


Return

(array)


Source

File: addons/woocommerce/classes/class-astra-ext-woocommerce-loader.php

		public function theme_defaults( $defaults ) {

			// Shop page.
			$defaults['shop-style']         = 'shop-page-grid-style';
			$defaults['shop-product-align'] = 'align-left';

			$defaults['product-sale-percent-value'] = '-[value]%';
			$defaults['product-sale-style']         = 'circle';
			$defaults['product-sale-notification']  = 'default';

			$defaults['shop-page-title-display']     = true;
			$defaults['shop-breadcrumb-display']     = true;
			$defaults['shop-toolbar-display']        = true;
			$defaults['shop-active-filters-display'] = true;

			// Off Canvas.
			$defaults['shop-off-canvas-trigger-type']     = 'disable';
			$defaults['shop-filter-trigger-link']         = __( 'Filter', 'astra-addon' );
			$defaults['shop-filter-trigger-custom-class'] = '';

			$defaults['shop-title-disable']       = false;
			$defaults['shop-price-disable']       = false;
			$defaults['shop-rating-disable']      = false;
			$defaults['shop-cart-button-disable'] = false;
			$defaults['shop-description-disable'] = true;
			$defaults['shop-category-disable']    = true;

			$defaults['shop-quick-view-enable']     = 'disabled';
			$defaults['shop-quick-view-stick-cart'] = false;

			$defaults['shop-product-shadow']       = 0;
			$defaults['shop-product-shadow-hover'] = 0;

			$defaults['shop-button-v-padding']      = '';
			$defaults['shop-button-h-padding']      = '';
			$defaults['shop-pagination']            = 'number';
			$defaults['shop-pagination-style']      = 'square';
			$defaults['shop-infinite-scroll-event'] = 'scroll';
			$defaults['shop-load-more-text']        = __( 'Load More', 'astra-addon' );

			// Single product page.
			$defaults['single-product-related-display']         = true;
			$defaults['single-product-image-zoom-effect']       = true;
			$defaults['single-product-ajax-add-to-cart']        = false;
			$defaults['single-product-related-upsell-grid']     = array(
				'desktop' => 4,
				'tablet'  => 3,
				'mobile'  => 2,
			);
			$defaults['single-product-related-upsell-per-page'] = 4;
			$defaults['single-product-image-width']             = 50;
			$defaults['single-product-gallery-layout']          = 'horizontal';

			$defaults['single-product-structure'] = array(
				'title',
				'ratings',
				'price',
				'short_desc',
				'add_cart',
				'meta',
			);

			$defaults['single-product-tabs-display']     = true;
			$defaults['single-product-tabs-layout']      = 'horizontal';
			$defaults['single-product-up-sells-display'] = true;
			$defaults['single-product-nav-style']        = 'disable';

			// Checkout.
			$defaults['two-step-checkout']               = false;
			$defaults['checkout-labels-as-placeholders'] = false;
			$defaults['checkout-order-notes-display']    = true;
			$defaults['checkout-coupon-display']         = true;
			$defaults['checkout-persistence-form-data']  = false;
			$defaults['checkout-content-width']          = 'default';
			$defaults['checkout-content-max-width']      = 1200;

			// General.
			$defaults['woo-header-cart-icon']                = 'default';
			$defaults['woo-header-cart-icon-style']          = 'none';
			$defaults['woo-header-cart-icon-color']          = '';
			$defaults['woo-header-cart-border-width']        = 2;
			$defaults['woo-header-cart-icon-radius']         = 3;
			$defaults['woo-header-cart-total-display']       = true;
			$defaults['woo-header-cart-title-display']       = true;
			$defaults['woo-header-cart-product-count-color'] = '';

			// General Product Price Typo.
			$defaults['font-family-product-price'] = 'inherit';
			$defaults['font-weight-product-price'] = 'inherit';

			// Single Product Title Typo.
			$defaults['font-family-product-title']    = 'inherit';
			$defaults['font-weight-product-title']    = 'inherit';
			$defaults['text-transform-product-title'] = '';
			$defaults['line-height-product-title']    = '';
			$defaults['font-size-product-title']      = array(
				'desktop'      => '',
				'tablet'       => '',
				'mobile'       => '',
				'desktop-unit' => 'px',
				'tablet-unit'  => 'px',
				'mobile-unit'  => 'px',
			);

			$defaults['font-family-product-content']    = 'inherit';
			$defaults['font-weight-product-content']    = 'inherit';
			$defaults['text-transform-product-content'] = '';
			$defaults['line-height-product-content']    = '';
			$defaults['font-size-product-content']      = array(
				'desktop'      => '',
				'tablet'       => '',
				'mobile'       => '',
				'desktop-unit' => 'px',
				'tablet-unit'  => 'px',
				'mobile-unit'  => 'px',
			);

			// Single Product Price Typo.
			$defaults['font-family-product-price'] = 'inherit';
			$defaults['font-weight-product-price'] = 'inherit';
			$defaults['line-height-product-price'] = '';
			$defaults['font-size-product-price']   = array(
				'desktop'      => '',
				'tablet'       => '',
				'mobile'       => '',
				'desktop-unit' => 'px',
				'tablet-unit'  => 'px',
				'mobile-unit'  => 'px',
			);

			// Single Product Breadcrumb Typo.
			$defaults['font-family-product-breadcrumb']    = 'inherit';
			$defaults['font-weight-product-breadcrumb']    = 'inherit';
			$defaults['text-transform-product-breadcrumb'] = '';
			$defaults['line-height-product-breadcrumb']    = '';
			$defaults['font-size-product-breadcrumb']      = array(
				'desktop'      => '',
				'tablet'       => '',
				'mobile'       => '',
				'desktop-unit' => 'px',
				'tablet-unit'  => 'px',
				'mobile-unit'  => 'px',
			);

			// Shop Product Title Typo.
			$defaults['font-family-shop-product-title']    = 'inherit';
			$defaults['font-weight-shop-product-title']    = 'inherit';
			$defaults['text-transform-shop-product-title'] = '';
			$defaults['line-height-shop-product-title']    = '';
			$defaults['font-size-shop-product-title']      = array(
				'desktop'      => '',
				'tablet'       => '',
				'mobile'       => '',
				'desktop-unit' => 'px',
				'tablet-unit'  => 'px',
				'mobile-unit'  => 'px',
			);

			// Shop Product Price Typo.
			$defaults['font-family-shop-product-price'] = 'inherit';
			$defaults['font-weight-shop-product-price'] = 'inherit';
			$defaults['line-height-shop-product-price'] = '';
			$defaults['font-size-shop-product-price']   = array(
				'desktop'      => '',
				'tablet'       => '',
				'mobile'       => '',
				'desktop-unit' => 'px',
				'tablet-unit'  => 'px',
				'mobile-unit'  => 'px',
			);

			// Shop Product Category Typo.
			$defaults['font-family-shop-product-content']    = 'inherit';
			$defaults['font-weight-shop-product-content']    = 'inherit';
			$defaults['text-transform-shop-product-content'] = '';
			$defaults['line-height-shop-product-content']    = '';
			$defaults['font-size-shop-product-content']      = array(
				'desktop'      => '',
				'tablet'       => '',
				'mobile'       => '',
				'desktop-unit' => 'px',
				'tablet-unit'  => 'px',
				'mobile-unit'  => 'px',
			);

			// Single Product Colors.
			$defaults['single-product-title-color']      = '';
			$defaults['single-product-price-color']      = '';
			$defaults['single-product-content-color']    = '';
			$defaults['single-product-breadcrumb-color'] = '';

			// Shop Product Colors.
			$defaults['shop-product-title-color']   = '';
			$defaults['shop-product-price-color']   = '';
			$defaults['shop-product-content-color'] = '';

			// General Colors.
			$defaults['single-product-rating-color'] = '';

			return $defaults;
		}


User Contributed Notes

You must log in before being able to contribute a note or feedback.