Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
1 vote

How to replace WooCommerce Product Gallery Trigger icon using PHP/CSS?

Its more of a hack than actual solution. But, I am using it in a lot of themes without any issues. .woocommerce div.product div.images .woocommerce-product-gallery__trigger { visibility: hidden; } ...
user avatar
  • 2,630
1 vote

Product count in archive page Title in WooCommerce

add_filter( 'woocommerce_page_title', 'add_products_number_to_category_title', 99, 1 ); function add_products_number_to_category_title($title) { if ( ! is_product_category() ) { return $...
user avatar
1 vote
Accepted

Woocommerce inventory

The woocommerce_checkout_order_processed hook is too late. The order has already been created. You'd probably want to hook into woocommerce_after_checkout_validation so that you can check for the ...
user avatar
1 vote

Getting categories id for all products in cart

The answer from @sally works great, as long as your products are Simple products. If your product uses a variation, then the above code no longer works as the $cart_item['data'] does not return the ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible