This code enables you to add in stock products for a specific category to any page pr post using a shortcode.
BASIC USAGE :
[instock_products]
RESULT: Shows 4 random in-stock products
WITH CATEGORY :
[instock_products category=”packets”]
RESULT: Shows 4 random in-stock products from “packets” category
CUSTOM LIMIT :
[instock_products limit=”8″]
RESULT: Shows 8 random in-stock products
CATEGORY + LIMIT :
[instock_products category=”packets” limit=”6″]
RESULT: Shows 6 random in-stock products from “packets” category
PARAMETERS :
- category – Product category slug (optional)
- limit – Number of products to show (default: 4)
- columns – Number of columns for product display (optional)
INSTALLATION :
- Activate plugin in WordPress admin
- Ensure WooCommerce is active
- Use shortcode in posts, pages, or widgets
There are no settings for this plugin.
EXAMPLES :
[instock_products]
[instock_products category=”electronics”]
[instock_products limit=”10″]
[instock_products category=”clothing” limit=”8″ columns=”4″]
[instock_products category=”clothing” limit=”5″]
Catherine Rose (verified owner) –
Lightning fast response with a solution in a stunning time frame. Worked perfectly. Was tested with my theme to work perfectly. I mentioned I thought it would be 4 column capable but that I honestly liked it at 3 columns – boom – he updated it for columns. best service I have had in 13 years of WordPress support.