=== Choose Your Best Selling Products ===
Contributors: veeraj
Tags: best-selling-products, woocommerce, product-grid, gutenberg, blocks
Requires at least: 5.2
Tested up to: 6.8.1
Stable tag: 1.0.1
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A WordPress plugin to display top selling products with flexible settings for manual or automated product selection.

== Description ==

Choose Your Best Selling Products (CBSP) allows WooCommerce store owners to display a customizable grid of top selling products or manually chosen products. This plugin integrates seamlessly with the WooCommerce and Gutenberg editor to offer flexible layouts and easy product selection.

The plugin provides several features, making it a perfect tool for showcasing top products either automatically (based on last week’s sales) or manually selecting featured products.

== Features ==

1. Display products in a customizable grid layout.
2. Fetch and display WooCommerce's top selling products for the last week (Sunday to Saturday).
3. Option to manually choose products for display.
4. Show or hide specific product information (e.g., Image, Title, Price, View Product Button).
5. Fully responsive grid using Bootstrap.
6. Real-time preview and updates in Gutenberg editor.

== Feature Details ==

=== Product Grid Layout ===
- Option to configure the number of columns and rows.
- Shows top selling products initially, with real products pulled from WooCommerce.

=== Manual and Automated Product Selection ===
- Automatically display top selling products based on WooCommerce's sales data from the last week.
- Manually select products for display from a dropdown menu with search functionality.

=== Customizable Product Display Settings ===
- Choose whether to show or hide product details like image, title, price and view product button.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/choose-your-best-selling-products` directory, or install the plugin through the WordPress plugin screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to the Gutenberg editor, add the "CBSP" block, and customize your settings.
4. Use the automatic layout which fetches the top selling products from last week or switch to manual mode to add your products in a grid layout.
5. Save your changes and view your store's top selling or selected products on the frontend.

== Frequently Asked Questions ==

= What is Top Selling Products (last week) mode? =
This mode automatically pulls the top selling products from the last week using WooCommerce sales data.

= Can I manually select products instead of using Top Selling Products (last week) mode? =
Yes, in manual mode, you can manually select products from a searchable dropdown list.

= Does the plugin support all product types? =
The plugin supports simple and variable products. For other product types, further customization may be required.

== Screenshots ==

1. Choose Your Best Selling Products (CBSP) Gutenberg block section. - screenshot-1.png
2. Example of automatically fetched products from last week (Sunday to Saturday). - screenshot-2.png
3. Example of products added manually from the products listing. - screenshot-3.png
4. Example showing no products available from last week and suggesting you add your products manually. - screenshot-4.png
5. Confirmation dialog when switching from manual to top selling products mode. - screenshot-5.png

== Changelog ==

= 1.0.1 =
* Bug fix: Fixed manually selected products being unselected after admin page refresh.

= 1.0.0 =
* Initial release of Choose Your Best Selling Products (CBSP).
* Added automatic product showing feature based on WooCommerce sale data from last week.
* Added manual product selection feature with search functionality.
