PHP code example of framecreative / wc-toolkit
1. Go to this page and download the library: Download framecreative/wc-toolkit library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
framecreative / wc-toolkit example snippets
add_filter('woocommerce_fragments_data', function($fragments)
{
$fragments['span.js-cart-total'] = '<span class="js-cart-total">' . WC()->cart->get_cart_total() . '</span>';
return $fragments;
}
);