Uncategorized

Woocommerce ShortCodes Products By Categories (WooCommerce)

By Acty, January 20, 2014

Woocommerce ShortCodes Products By Categories is a woocommerce extension which extends the default shortcodes functionality to show Best Selling Products, Featured Products, Top Rated Products, Recent Products & On Sale Products by product category/categories in page. This extension is also provide the pagination facility with these shortcodes. This extension provide a extreme flexibility to get custom shortcodes to show products according to one or multiple categories/subcategories on template sidebar.

Let’s assume someone needs to show featured products of some specific category on home page as well as all featured products in “Featured Product” page with pagination. This plugin provides the similar shortcodes with extended functionality.

This plugin provides 5 new shortcodes –

1. WCPBC Best Selling ShortCode
2. WCPBC Featured Products ShortCode
3. WCPBC On Sale ShortCode
4. WCPBC Recent Products ShortCode
5. WCPBC Top Rated Products ShortCode

(1) WCPBC Best Selling ShortCode

This ShortCode is used to show best selling products by category/categories & control the no of pages through pagination.In ‘category’ shortcode you have to put a category ID or categories id separated by comma (,) that determine the category filter for all best selling products and the 'pages' attribute controls how many pages will be available for best selling products.

Args:

array(
    'category'      => '',
    'per_page'      => '12',
    'columns'       => '4',
    'pages'         => '1'
)

Example:

[wcpbc_best_selling_products category=”28,615,823” per_page=”12” columns=”4” pages=”5”]

(2) WCPBC Featured Products ShortCode

This ShortCode is used to show featured products by category/categories & control the no of pages through pagination.In ‘category’ shortcode you have to put a category ID or categories id separated by comma (,) that determine the category filter for all products and the 'pages' attribute controls how many pages will be available for featured products.

Args:

array(
        'category'    => '',
        'per_page'    => '12',
        'columns'     => '4',
        'orderby'     => 'date',
        'order'       => 'desc',
        'pages'       => '1'
    )

Example:

[wcpbc_featured_products category=”728,315,223” per_page=”12” columns=”4” pages=”5”]

(3) WCPBC Sale Products ShortCode

This ShortCode is used to sale products by category/categories & control the no of pages through pagination.In ‘category’ shortcode you have to put a category ID or categories id separated by comma (,) that determine the category filter for all sale products and the 'pages' attribute controls how many pages will be available for sale products.

Args:

array(
        'category'      => '',
        'per_page'      => '12',
        'columns'       => '4',
        'orderby'       => 'title',
        'order'         => 'asc',
        'pages'         => '1'
    )

Example:

[wcpbc_sale_products category=”328,55,773” per_page=”12” columns=”4” pages=”5”]

(4) WCPBC Recent Products ShortCode

This ShortCode is used to recent products by category/categories & control the no of pages through pagination.In ‘category’ shortcode you have to put a category ID or categories id separated by comma (,) that determine the category filter for all recent products and the 'pages' attribute controls how many pages will be available for recent products.

Args:

array(
        'category'   => '',
        'per_page'      => '12',
        'columns'      => '4',
        'orderby'    => 'date',
        'order'      => 'desc',
        'pages'      => '1'
    )

Example:
[wcpbc_recent_products category=”228,345,273” per_page=”12” columns=”4” pages=”5”]

(5) WCPBC Top Rated Products ShortCode

This ShortCode is used to top rated products by category/categories & control the no of pages through pagination.In ‘category’ shortcode you have to put a category ID or categories id separated by comma (,) that determine the category filter for all top rated products and the 'pages' attribute controls how many pages will be available for top rated products.

Args:
Example:
[wcpbc_top_rated_products category=”468,355,373” per_page=”12” columns=”4” pages=”5”]

array(
        'category'      => '',
        'per_page'      => '12',
        'columns'       => '4',
        'orderby'       => 'title',
        'order'         => 'asc',
        'pages'         => '1'
    )

Installation of WC Products By Category Widget extension is very easy. Just upload plugin files & activate the plugin. Thats it!!! All custom shorcodes are available to use in page/post.

Happy Selling!!!

Demo : TEST AS THE MEMBER/GUEST http://wp-zone.net/demo1 TEST AS ADMIN http://wp-zone.net/demo1/wp-admin User: admin Password: admin