by Nick | Feb 6, 2025 | Code
Add this to the functions.php file and then add the shortcode of [dividebyklarna] to get it to show up. function wpb_nick_klarna() { global $product; $klarnaprice = get_post_meta( get_the_ID(), '_regular_price', true); $klarnasaleprice = get_post_meta( get_the_ID(),...
by Nick | Feb 6, 2025 | Code
Add this to the functions.php file and then add the shortcode of [dividebypaypal] to get it to show up. // function that runs when shortcode is called function wpb_nick_paypal() { global $product; $paypalprice = get_post_meta( get_the_ID(), '_regular_price', true);...
by Nick | Jun 22, 2022 | Code
Add this to the functions.php file and then add the shortcode of [shippingleft] to get it to show up. function how_much_shipping_is_left() { $min_amount = 100; //change this to your free shipping threshold $current = WC()->cart->subtotal; if ( $current <...
by Nick | Feb 15, 2022 | Code
Add this to the functions.php to hide Klarna payment method if the order total is under £35 //hide klarna if order total is under £35 add_filter( 'woocommerce_available_payment_gateways', 'rudr_turn_off_cod' ); function rudr_turn_off_cod( $available_gateways ) { if(...
by Nick | Jan 21, 2021 | Code
Use this to find all the additional image sizes your site is using /* Output all image sizes on the frontend ---------------------------------------------------------------------------------------------------- */ add_action('init', 'get_all_image_sizes'); function...
Recent Comments