teft/teft-product-card

This package is abandoned and no longer maintained. No replacement package was suggested.

WooCommerce product extension for Teft Cards

1.0.4 2020-06-17 10:46 UTC

This package is auto-updated.

Last update: 2020-08-13 11:45:19 UTC


README

Primary Functions

  • Add product card type for Teft Cards.
  • Replace all WooCommerce archive and product list views.
  • Replace frontend rendering for selected WooCommerce blocks.

Installation

  • composer require teft/teft-product-card

Theme support.

  • add_theme_support( 'teft_product_card_in_woocommerce_archive' ); to render archive and product list views as Teft Cards grid.
  • add_theme_support( 'teft_product_card_in_woocommerce_blocks' ); to render product list blocks as Teft Cards grid.

Filters

  • teft/cards/product_card/args Pre card render args.
  • teft/cards/product_card/woocommerce_blocks Blocks to render as Teft Cards grid.
    • default:
    [
      'woocommerce/handpicked-products',
      'woocommerce/product-category',
      'woocommerce/products-by-attribute',
      'woocommerce/product-tag',
      'woocommerce/product-best-sellers',
      'woocommerce/product-new',
      'woocommerce/product-on-sale',
      'woocommerce/product-top-rated',
    ]
    • The All Products block uses a seperate product rendering which is not yet supported.