I want to hide specific products, based on product category for users under the age of 18. So if the user is not logged in, or if logged in but under the age of
I want to hide specific products, based on product category for users under the age of 18. So if the user is not logged in, or if logged in but under the age of
I use WooCommerce short-code [add_to_cart ] inside a widget sidebar On WordPress website to display “Add to cart” button on product pages (wanted to
I have the custom order status and it works. What I need help with here is looping through the order items and checking if any of them are on backorder and if
I'm using polylang plugin to having multi-languages website. Using WooCommerce with polylang demands duplicating each product for each language, so assuming I h
Within a plugin how do I get products using wc_get_products()? Or is there another way to do it? if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'a
I'm trying to update item price for orders with users that have a custom field marked as "true". The item price needs to be updated to a custom field that is in
This is my code $_productCollection = $block->getLoadedProductCollection()->addAttributeToSort('article_position', 'DESC'); echo '<pre>'; print_r(
I have my products available on both Amazon and a dedicated Shopify store. For customers looking to take advantage of Prime shipping over what our store can off
I own an e-Commerce business and i want to hide the products that have a stock of less than 3. This is what i came up to: add_action( 'woocommerce_product_que
I would like to show some content after the fifth product of a product category. Based on Add content in between product rows in WooCommerce archives answers co
in Wordpress I'm using Woocommerce v3.3.5 and in single product pages for variable products, When I click the add to cart button while I don't select a variatio
I display the id and sku of each variable product in the general tab - of the wp admin product data box with the following code. Any idea how to get the the var
I am trying to add a row to Single product Additional information table. Actually is there any hooks or filter to do this? I have searched the hook but can'
I am trying to create a drop down list box in woocommerce but have it populated with data from the database. I have the majority of the code working but the po
Summary) What's the time complexity of math.prod() How to improve this code to get to the pass Details) Currently working on 'Product of Array Except Self' on L
Right now i use this code, it calculates all products ratings in one category and shows it as 5/5 (200 reviews). The 200 reviews are gathered from all 10 produc
I want to add an extra text "There is an offer in this particular item etc" only for a particular product(Product Id:1) in customer-completed-order.php in WordP
In the Woocommerce single variable product pages, I would like to change the order of the sizing options on the related drop-down menu. Actually It is like thi
I want to include a simple in the edit attribute form. (/wp-admin/edit.php?post_type=product&page=product_attributes&edit=55) Is this possible? Everyt