Skip to content

v1.4.0 - header cart subtotal (WEB-24)

Choose a tag to compare

@ArsNovaSingers ArsNovaSingers released this 08 Aug 00:11
· 19 commits to main since this release

Adds the WooCommerce cart subtotal beside Kadence's header cart icon.

Kadence free has no subtotal feature - header_cart_show_total is an item-COUNT indicator (customizer label: Show Item Total Indicator) and there is no filter inside Kadence\header_cart() to hook.

Approach is additive: appends its own element at priority 20 on kadence_header_cart / kadence_mobile_cart and registers a woocommerce_add_to_cart_fragments entry for a.ans-cart-subtotal. Deliberately NOT remove_action + reimplement, which would duplicate Kadence three style branches and drift on every theme update.

Subtotal hidden below 768px on purpose - the cart element crowding the mobile hamburger toggle is the original WEB-24 bug.

Also adds ARS_NOVA_CORE_VERSION. The plugin previously had no internal version constant, so build rule 2 was unsatisfiable.