I have a "Wholesaler" user. I am looking for a way to hide products with a given attribute "nonwh". Sourc..
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 ( ..
Is there a way to customise the woocommerce related products cards on the single products page and the product cards on the category pages in the functions.php file? I’m trying to change the layout from: To: Sourc..
I ask you for help please, I haven’t come out of it for hours. I set the quantity selector on the Woocommerce shop page, which automatically puts the item in the cart and / or removes it. I have a big problem, when I am on zero and I press – the numbers go negative, ..
I am making an affiliate website and I would like to remove the single product page, so that you only can see the product with the title and prices. And when you click on it, I want that the product is redirected to the affiliate page. However it does not work. i have switched of ..
I am making an affiliate website and I would like to remove the single product page, so that you only can see the product with the title and prices. And when you click on it, I want that the product is redirected to the affiliate page. However it does not work. I have switched of ..
I’m currently building a website for a university project, where we need to build a unique ecommerce website using a content management system. The ‘unique’ part of this one is that the customer has the option to buy a product as a ‘gift’ for someone else, with a discounted price. I currently have a normal ..
I need to insert in a custom plugin the code to get the name of the discount codes I enter in the settings, the discount obtained with the code and the total. Based on Get coupon data from WooCommerce orders answer code, I have inserted the following code: $order = wc_get_order( $order_id ); // GET ..
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 = ..
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( ..