Product_Archive::sort_choices()

Summary

No summary available.

Source

File: src/BigCommerce/Customizer/Sections/Product_Archive.php

	public static function sort_choices() {
		$choices = [
			self::SORT_FEATURED        => __( 'Featured', 'bigcommerce' ),
			self::SORT_DATE            => __( 'Newest', 'bigcommerce' ),
			self::SORT_SALES           => __( 'Best Selling', 'bigcommerce' ),
			self::SORT_TITLE_ASC       => __( 'Product Title A–Z', 'bigcommerce' ),
			self::SORT_TITLE_DESC      => __( 'Product Title Z–A', 'bigcommerce' ),
			self::SORT_REVIEWS         => __( 'Reviews', 'bigcommerce' ),
			self::SORT_PRICE_ASC       => __( 'Price (low to high)', 'bigcommerce' ),
			self::SORT_PRICE_DESC      => __( 'Price (high to low)', 'bigcommerce' ),
			self::SORT_INVENTORY_COUNT => __( 'Inventory Count', 'bigcommerce' ),
			self::SORT_SKU             => __( 'SKU', 'bigcommerce' ),
		];

		/**
		 * Filter the sorting options available in the BigCommerce catalog
		 *
		 * @param array $choices The sorting options to use
		 */
		return apply_filters( 'bigcommerce/product/archive/sort_options', $choices );
	}


User Contributed Notes

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