Change a currency symbol

Add the following snippet to your themes functions.php file or your custom plugin.


Read more

WooCommerce – change QTY triggers AJAX call in cart

my functions.php looks like this

My cart-qty-ajax.js looks like this.


Read more

Break a string without losing html tags in PHP

$pos = strpos(preg_replace(‘/<.*?>/’, ”, $text), ‘Find Word’); $page_body = _html_substr($text,$pos);

Read more