Astra_Woocommerce::cart_link_fragment( array $fragments )
Cart Fragments Ensure cart contents update when products are added to the cart via AJAX
Description
Parameters
- $fragments
-
(array) (Required) Fragments to refresh via AJAX.
Return
(array) Fragments to refresh via AJAX
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function cart_link_fragment( $fragments ) { ob_start(); $this->astra_get_cart_link(); $fragments['a.cart-container'] = ob_get_clean(); return $fragments; }
Expand full source code Collapse full source code View on Trac