Coder Social home page Coder Social logo

gazchaps-woocommerce-auto-category-product-thumbnails's Introduction

=== GazChap's WooCommerce Auto Category Product Thumbnails ===
Contributors: gazchap
Tags: woocommerce,ecommerce,images,thumbnails
Requires at least: 4.5.0
Requires PHP: 5.6
Tested up to: 6.6.1
WC requires at least: 3.0.0
WC tested up to: 9.1.0
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Pick WooCommerce category thumbnails automatically from products contained within those categories.

== Description ==
By default, WooCommerce will only show thumbnails for categories if the category has a thumbnail set.

This plugin changes this behaviour so that WooCommerce will hunt for a product thumbnail in the category being displayed, and use that instead.

Upon activation, the plugin will configure itself with the basic settings. Any categories that you have on your WooCommerce store that do not have a thumbnail set will then start displaying any available product thumbnails inside the category.

There are a number of options, these can be found in WooCommerce -> Settings -> Products -> Auto Category Thumbnails.

- Thumbnail Size sets the image size that the plugin should use when displaying the thumbnails. Defaults to shop_thumbail, but shop_catalog may be a better option for some themes.

- Go into Child Categories makes the plugin look in child categories too, useful if you have products buried in quite a deep category structure.

- Random Thumbnail tells the plugin to pick a random product thumbnail from those it finds every time the page loads - otherwise it always uses the first one it finds.

- Use Transients tells the plugin to save the thumbnail it picks for a category as a transient in WordPress, so that it won't have to do it again while the transient is still active. This can hugely increase performance on sites with many categories, so is enabled by default.

- Transient Expiry is the length of time each transient is active for before the site picks another thumbnail for the category. By default it is set to 1 day.

- Custom Transient Expiry can be used to define your own transient expiry period (in seconds) if none of the pre-defined options are suitable.

- Exclude Thumbnail IDs accepts a comma-separated list of attachment IDs from the WordPress Media Library. The plugin will never use any thumbnail with one of these IDs for a category.

== Changelog ==
= 1.5 (21/06/2023) =

* Declared support for WooCommerce High Performance Order Storage. Thanks to benatherton for the information.

= 1.4 (25/01/2022) =

* Added checks into the activation hook so that existing options are not reset on plugin activation

= 1.3.1 (25/08/2020) =

* Fixed an undefined variable notice error

= 1.3 (14/08/2020) =

* Added options to have the plugin use WordPress transients to improve performance on subsequent page loads
* Added option to have the plugin ignore certain thumbnail attachment IDs while looking for thumbnails to use

= 1.2.1 (24/02/2019) =

* Updated the notice shown if WooCommerce is deactivated to include the plugin name

= 1.2 (27/03/2018) =

* I'll be honest, I can't actually remember what changed here and I didn't start tracking on version control until after this!

= 1.1 (23/03/2018) =

* Added option to set the image size used for the automatic thumbnails.

= 1.0 (05/10/2017) =

* Initial release.

== License ==
Licensed under the [GNU General Public License v2.0](http://www.gnu.org/licenses/gpl-2.0.html)

gazchaps-woocommerce-auto-category-product-thumbnails's People

Contributors

gazchap avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.