Available Parameters

[box]
title: Title of this shortcode
numbers: Numbers of products to show
columns: Numbers of columns per row
orderby: ID, title, date (default), modified, rand, comment_count, menu_order
order: ASC, DESC (default)
image_width: default = Catalog Images width in WooCommerce Settings
image_height: default = Catalog Images height in WooCommerce Settings
image_crop: yes / no, default = Catalog Images hard crop in WooCommerce Settings
product_saleflash: yes (default) / no : Show product sale flash
product_title: yes (default) / no : Show product title
product_price: yes (default) / no : Show product price
product_button: yes / no (default) : Show add to cart button
[/box]

Example 1

return five on sale products

[prima_code][prima_onsale_products title=»On Sale Products»]
[/prima_code]

[prima_onsale_products title=»On Sale Products»]

Example 2

return six on sale products in 3 columns ( two rows )

[prima_code][prima_onsale_products title=»On Sale Products» numbers=»6″ columns=»3″]
[/prima_code]

[prima_onsale_products title=»On Sale Products» numbers=»6″ columns=»3″]

Example 3

return four random on sale products

[prima_code][prima_onsale_products title=»Random On Sale Products» numbers=»4″ columns=»4″ orderby=»rand»]
[/prima_code]

[prima_onsale_products title=»Random On Sale Products» numbers=»4″ columns=»4″ orderby=»rand»]

Example 4

return four on sale products with images only

[prima_code][prima_onsale_products title=»Nice On Sale Products» numbers=»4″ columns=»4″ product_saleflash=»no» product_title=»no» product_price=»no»]
[/prima_code]

[prima_onsale_products title=»Nice On Sale Products» numbers=»4″ columns=»4″ product_saleflash=»no» product_title=»no» product_price=»no»]

Example 5

return four on sale products with «add to cart» button

[prima_code][prima_onsale_products title=»Buy Now» numbers=»4″ columns=»4″ product_button=»yes»]
[/prima_code]

[prima_onsale_products title=»Buy Now» numbers=»4″ columns=»4″ product_button=»yes»]