1. Home
  2. Docs
  3. Divi Query Builder
  4. Action & Filter Hook...
  5. Woo Item Content HTML Output

Woo Item Content HTML Output

Overview

The filter hook ctdqb_item_woo_content_html allows you to modify the WooCommerce product data HTML elements before they are combined into the final WooCommerce content section for each product item.

Hook Parameters

  1. $w_html – – Array of HTML strings for WooCommerce product elements.
  2. $props – Array of module properties.
  3. $datum – Array of current product data.

Understanding the WooCommerce HTML Elements Array

The array contains HTML strings for various WooCommerce product elements that may include: `$w_html`

  • Price HTML – Contains product pricing information with class `ctdqb-product-price`
  • Sale Badge HTML – Contains sale badge with class `ctdqb-product-sale-badge`
  • SKU HTML – Contains product SKU with class `ctdqb-product-sku`
  • Stock Status HTML – Contains stock information with class `ctdqb-product-stock`
  • Reviews HTML – Contains product reviews/rating with class `ctdqb-product-reviews`
  • Weight HTML – Contains product weight with class `ctdqb-product-weight`
  • Dimensions HTML – Contains product dimensions with class `ctdqb-product-dimensions`
  • Product Note HTML – Contains product notes with class `ctdqb-product-note`
  • Add to Cart Button HTML – Contains add to cart functionality with class `ctdqb-product-add-to-cart`

The order of elements in the returned array determines their display order in the final WooCommerce content section.

0 Comments

Submit a Comment

How can we help?