WP Manifestindependent plugin directory
manifest / ecommerce / carmo-category-product

Carmo Category Product

Adds a WooCommerce product carousel block filtered by category, with configurable columns for desktop and mobile.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/carmopereira/carmo-category-product/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WC requires at least: 8.3 WC tested up to: 9.0 Stable tag: 0.1.22 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html

A Gutenberg block that displays a WooCommerce product carousel filtered by category, with configurable columns for desktop and mobile.

Description

Carmo Category Product adds a "Product Carousel" block to the WordPress block editor. Pick a WooCommerce product category and the block builds a horizontally scrollable carousel of in-stock products from that category — swipeable on touch devices, with optional prev/next navigation buttons on desktop.

Each product card shows the featured image as a full-bleed background, the product name, a short description truncated to a configurable character limit (without cutting words mid-way), the price, and WooCommerce's native "Add to Cart" button.

Under the hood, the block renders the real WooCommerce Product Collection block tree (Product Template, Product Image, Product Price, Product Button, plus a small internal helper block for the character-limited excerpt) via render_block(), instead of a hand-built product loop. This means the add-to-cart button is the actual native WooCommerce button — including live "View cart" behaviour via the Interactivity API — not a re-implementation.

Features

  • Product category picker (WooCommerce product_cat taxonomy)
  • Configurable number of columns for desktop and mobile, independently
  • Configurable number of products to show
  • Only in-stock products are queried
  • Short description with a configurable character limit (never cuts a word in half)
  • Title above the carousel, automatically filled with the category name, with a selectable HTML tag (H1, H2, H3, or a plain span)
  • Native WooCommerce "Add to Cart" button (Product Collection / Interactivity API), with an option to hide the "View cart" link that appears after adding a product
  • Touch-friendly horizontal scrolling with scroll-snap, plus optional prev/next buttons
  • Wide and full alignment support

Requirements

This block requires WooCommerce to be installed and active, with a version that includes the Product Collection block (WooCommerce 8.3 or later).

Installation

  1. Upload the plugin files to the /wp-content/plugins/carmo-category-product directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the "Plugins" screen in WordPress.
  3. Make sure WooCommerce is installed and active.
  4. In the block editor, add the "Carmo Category Product" block and choose a product category in the block settings sidebar.

Frequently Asked Questions

Does this work without WooCommerce?

No. WooCommerce must be active, and it must be a version that ships the Product Collection block (8.3+), since the carousel renders that block internally.

Can I show products from all categories?

Yes, choose "All categories" in the category dropdown. In that case, no title is shown above the carousel (since there is no category name to display).

Why don't out-of-stock products show up?

The carousel only queries products with stock status "In stock" by design.

Can I change the character limit for the description?

Yes, in the block settings sidebar, under "Character limit for the description." Set it to 0 to hide the description entirely.

Screenshots

  1. The product carousel on the front end, with a category title and native add-to-cart buttons.
  2. The block settings sidebar: category, columns, products to show, title tag, description length, and view-cart visibility.

Changelog

0.1.17

  • Product carousel filtered by WooCommerce category, with configurable columns for desktop/mobile.
  • Card design with full-bleed featured image, name, character-limited description, price, and native add-to-cart button.
  • Automatic title above the carousel using the category name, with a selectable HTML tag (H1/H2/H3/span).
  • Only in-stock products are shown.
  • Renders the real WooCommerce Product Collection block tree so the add-to-cart button matches native behaviour exactly.
  • Option to hide the "View cart" link after adding a product to the cart.

Arbitrary section

Credits

Built on top of the Create Block tool and the WooCommerce Product Collection block.