Products

Helper class for products.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

get_catalog_sorting_options()  : array<string|int, mixed>
Returns the list of sorting options.
get_currency_data()  : array<string|int, mixed>
Get currency data about the store.
indexer_should_skip_hidden_products()  : bool
Determine if hidden products should be skipped during indexing.
is_product_attribute_page()  : bool
Determine if we're visiting a product attribute page.
is_product_taxonomy_page()  : bool
Determine if we're visiting a product taxonomy page.

Methods

get_catalog_sorting_options()

Returns the list of sorting options.

public static get_catalog_sorting_options() : array<string|int, mixed>
Return values
array<string|int, mixed>

get_currency_data()

Get currency data about the store.

public static get_currency_data() : array<string|int, mixed>
Return values
array<string|int, mixed>

indexer_should_skip_hidden_products()

Determine if hidden products should be skipped during indexing.

public static indexer_should_skip_hidden_products() : bool
Return values
bool

is_product_attribute_page()

Determine if we're visiting a product attribute page.

public static is_product_attribute_page() : bool
Return values
bool

is_product_taxonomy_page()

Determine if we're visiting a product taxonomy page.

public static is_product_taxonomy_page() : bool
Return values
bool

Search results