Featured Products Carousel by Tag

By Daniel Esparza

0+ active installationsVersion 1.1.0

Shows WooCommerce products by tag in a carousel built with OwlCarousel2.

Description

This plugin shows WooCommerce products tagged “featured” or “destacado” in a responsive carousel built with OwlCarousel2. Add it with the shortcode [featured-products-carousel-tag].

Main features:
1. Shortcode [featured-products-carousel-tag] to show a product carousel.
2. Shows the featured image, title and price (each one links to the product) and the Add to cart button.
3. Supports simple and variable products (uses the WooCommerce loop template).
4. CSS and JS load only on pages that contain the shortcode.
5. Translation ready (text domain: featured-products-carousel-tag).

Video

External services

This plugin bundles the official OwlCarousel 2.3.4 JavaScript file. In its standard version, that library contains optional support for videos from external services (for example Vimeo or Vzaar). In those cases it may request public thumbnails or metadata from those services.

Important:
The plugin does not use or enable these video features by default.
With the current plugin setup no requests are made to external services.
The connections described above would only happen if an administrator manually adds Vimeo or Vzaar videos to the carousels.

Third-party libraries

  • OwlCarousel 2.3.4 — MIT — https://github.com/OwlCarousel2/OwlCarousel2

Installation

  1. Upload the featured-products-carousel-tag folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins menu in WordPress (WooCommerce must be active).
  3. Add the shortcode [featured-products-carousel-tag] to the page or post where you want to show it.

FAQ

How do I mark products as featured?

Add the tag ‘featured’ or ‘destacado’ to the products you want in the carousel.

Can I change the number of visible items?

Yes. Use the shortcode attributes: [featured-products-carousel-tag per_page=”8″ items=”3″ autoplay=”false”].

What happens if WooCommerce is not active?

WooCommerce is required. WordPress will not activate the plugin without it, and the shortcode shows a notice instead of the carousel.

Screenshots

Changelog

1.1.0

  • Declared the WooCommerce dependency (Requires Plugins) and HPOS compatibility.
  • CSS and JS now load only on pages that contain the shortcode.
  • Interface strings in English, ready for translation on translate.wordpress.org.
  • Removed unused code from the settings page.
  • Simplified the add-to-cart output.
  • The product cache is now removed on uninstall.
  • Plugin CSS and JS versions now follow the plugin version.
  • Readme: removed the mention of a CDN fallback, which does not exist (the library files are included).
  • Plugin header: added Requires at least, Requires PHP and License URI.

1.0.0

  • Initial release.
  • Shortcode [featured-products-carousel-tag].
  • Settings page in the dashboard.
  • Escaping and sanitization following best practices.