ASTRA_Ext_WooCommerce_Markup::enable_short_desc_modern_view( array $shop_product_stucture )

Add product short description in Shop Page structure for List View layout.


Description


Parameters

$shop_product_stucture

(array) (Required) Customizer Shop Product Strcture.


Return

(array) $shop_product_stucture Strcture of shop page after adding short-desc into it.


Source

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

		public function enable_short_desc_modern_view( $shop_product_stucture ) {
			if ( ( is_shop() || is_product_taxonomy() ) && self::is_easy_view_switcher_enable() && ! in_array( 'short_desc', $shop_product_stucture ) && 'shop-page-list-style' !== astra_get_option( 'shop-style' ) && true === astra_get_option( 'easy-list-content-enable-description' ) ) {
				$shop_product_stucture[] = 'short_desc';
			}
			return $shop_product_stucture;
		}

Changelog

Changelog
Version Description
3.9.0 Introduced.

User Contributed Notes

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