Category : woocommerce

I am trying to change the tax rate in woocommerce if certain product ID ‘s are in the cart, I found this code and it works I just cant figure out to modify it to check for product ID’s in the cart add_action( ‘woocommerce_before_calculate_totals’, ‘apply_conditionally_zero_tax_rate’, 10, 1 ); function apply_conditionally_zero_tax_rate( $cart ) { if ( ..

Read more

I am new in wordpress and I want to show related products in product page by same category and sort by same attribute(attribute can be color,radius)etc. I am creating products using woo-commerece and using oxygen builder. Can anyone please help? my query is function custom_query( $query) { global $product; $product_tags = get_the_terms($product->ID, ‘product_cat’); $product_tag_ids = ..

Read more

I have a PHP code that allowed me to limit my woocommerce product titles to 120 characters. This works perfectly, however, I would also like to insert three dots after the shortened title as an indicator the title continues. This is the code I am currently using: add_filter( ‘the_title’, ‘shorten_woo_product_title’, 10, 2 ); function shorten_woo_product_title( ..

Read more