WooCommerce Quality Selector

add_action( ‘woocommerce_after_add_to_cart_quantity’, ‘ts_quantity_plus_sign’ ); function ts_quantity_plus_sign() { echo ‘+‘; } add_action( ‘woocommerce_before_add_to_cart_quantity’, ‘ts_quantity_minus_sign’ ); function ts_quantity_minus_sign() { echo ‘–‘; } add_action( ‘wp_footer’, ‘ts_quantity_plus_minus’ ); function ts_quantity_plus_minus() { // To run this on the single product page if ( ! is_product()…Continue reading

Cookies Banner Styling

.cmplz-header::before { content: ”; width: 75px; height: 60px; background-image: url(“/wp-content/uploads/2023/12/cookies-img.png”); background-size: contain; } .cmplz-cookiebanner .cmplz-title { font-weight: 700 !important; } .cmplz-cookiebanner, .cmplz-btn { border-radius: 0.5rem !important; } .cmplz-cookiebanner .cmplz-links .cmplz-link { margin: 0.5rem !important; } :root { –cmplz-manage-consent-offset: -10px !important;…Continue reading

Customer Order Note for WooCommerce Products

// Display custom field on single product page function d_extra_product_field(){ $value = isset( $_POST[‘extra_product_field’] ) ? sanitize_text_field( $_POST[‘extra_product_field’] ) : ”; printf( ‘ %s ‘, __( ‘Customisation note:’ ), esc_attr( $value ) ); } add_action( ‘woocommerce_after_add_to_cart_button’, ‘d_extra_product_field’, 9 ); //…Continue reading