Sort products by custom meta key in Woocommerce archives

I want to sorting product by discount percentage by high to low or low to high. I am using urna theme but sorting not working properly. I want it discount percentage wise if discount percentage...

add woocommerce product sorting to custom order + price

by default custom order + name is set in my woocommerce product sorting. we have products with certain order and we want when someone enters the category to sort items first by the order we have...

How to add custom sorting with multi meta key for Woocommerce in functions.php?

I am working on the WooCommerce which the product comes with custom fields (Field's Name : year). And I want to make a custom sorting for my shop which the product should be sorting by Year and...

Woocommerce Widget Product order by title

My initial goal is to be able to display Woocommerce Products in the sidebar, sorted by Title. Currently the only sorting options in this widget are Date, Price, Random and Sales. I was able to...

Woocommerce - filter by featured products in admin

Since version 3.0 Woocommerce removed sorting option for featured products on the backend. I tried this solution here but it seems to be not working any more...

Woocommerce - how to sort multiple size attributes for product page

I have more than 500 of size attributes terms.it is hard to drag and drop each to sort it for product details page in woocommerce. Size Attributes on a product page are showing like this:- SIZE...

add sorting woocommerce products on date with check date >= today

For a customer, I build a webshop where the product type is extended with "event". An event has an event date, sometimes with more than one date (returning event). Therefore, I like to update It...

Change default sorting order for multiple specific woocommerce product categories

I'm trying to change the default orderby for multiple product categories, but can't work out how to adapt the code found here Cant change default sorting order of specific woocommerce category to...

Woocommerce, sort dropdown on shortcode based product lists

In our shop, we have a number of standard WP pages. On these pages we show ~40 products using the standard Woocommerce shortcodes. For example: [product_category category="boots"...

Sort WooCommerce Products by SKU Numeric (1.2.3.4.5.6........)

In WooCommerce Version 4.2.2 on admin products list, when I try to sort products by SKU (column), the result is: 1 10 100 101 102 103 104 ... <br> InsteadI would like it to be in natural order...

Change alphabetical sorting of attributes / variations on product page in Woocommerce shop

I have a Woocommerce shop where the different attributes / variations are ordered alphabetically when you click the 'select' on a product page. I'm currently trying to figure out how I can sort...

woocommerce sort products by in stock and out of stock in front-end

I want to show in stock products first in products category or if possible in any where and then I want to display out of stock products too after them in Woocommerce Actually there are many...

Show products by category in Woocommerce

This sounds as an easy question, but I couldn't find the right answer yet. I want all my products on my WooCommerce products page, but sorted by category. Like this: Category 01 title ...

Did i reached the limits of wordpress and woocommerce?

I know the question sounds a little weird, but, please, read along. I have a store based on wordpress, woocommerce and wpml - currently in two languages but with plans to add another 3. The theme...

Summary (mySQL) of WooCommerce Purchases Per Club Membership

I'm creating two "user admin" pages for our clubs, so they can see what each of their members are purchasing in WooCommerce. I've got most of the mySQL query complete, just need to finish some...

WordPress order posts by 2 custom fields at once

I want to order the posts by 2 custom fields in the same call. How is this possible? This next code order successfully, but only by only 1 NUMBER custom field (not...

Ajax woocommerce product grid best practice theory

First post so please be kind :) EDIT: Ok, lets try it like this to rephrase as a more focused question: (I removed the original phrasing as it would just be unnecessary reading) I am working...

WooCommerce / Wordpress - automatically use the entire email as username?

I'm finishing out a new WooCommerce build here and I figured I'd set it up to have customers use only their email addresses as login credentials with the hope that I could retire and then hide all...

WooCommerce shop page display products above $50

I have coded up a woocommerce theme and the website has a shop page. You can find out the shop page http://bit.ly/1TSMKrV Now, I need few things to happen on this page The products which are...

Is there a way to get all the category slug of a woocommerce product

I'm making a dynamic galery of products with categories using Isotope and Woocommerce on wordpress , to sort the products I use their category slug but when a product has more than one category I...

Woocommerce Make Products in Category Equivalent to Ten Items

I'm using Woocommerce to create a request system of sorts for a music archive. I am trying to set up the cart so that there are no more than ten items allowed. I was able to find a solution to...

How do you order by 2 meta values in Wordpress?

I am using Woocommerce, although my question relates to WP_Query in general. I am creating a custom WP_Query loop for bestselling products and I want to allow users to be able to sort the results...

Filter products by price range using WooCommerce wc_get_products

I'm getting a bunch of paginated variable products using wc_get_products(). And I would like to only get products in a given price-range. The problem is that there are a lot of products, so only...

WooCommerce cart order limit based on product category quantity, weight and different products

I'm stumped at the moment as I've looked everywhere online as to how to limit the amount of products in your cart based on the quantity of the product category, the total weight of the cart and...

Variations not showing in second language (WPML and Woo Commerce)

The variation is not showing in the second language using wpml and woocommerce. I checked with the multiple site for this. They suggested to upgrade wpml and woo commerce multilinguial plugin,...

Woocommerce(wordpress) and opencart integration

I'm working in a project for a client in which I have to set up 5 different sites(in wordpress); each having a shop page. This client has an already existing online store built on opencart. Now...

change Related Products in woocommerce

As you know, woocommerce filters related products according to their tags and categories. Because of that, in a big shopping website with so many products, most of the time, it shows irrelevant...

Run a counter on Woocommerce Categories

I have developed a custom template in my theme where I want to call on certain Woocommerce Categories to display in different parts of the page. I know I can use this shortcode: &lt;?php echo...

Add custom class to links if product is out of stock in WooCommerce

In WooCommerce, do you know of a way to add a class to a &lt;a&gt; html element (product link) if the product is out of stock? Basically, I have product links on a page, and each link goes to a...

Select BACS account to show in thankyou page in WooCommerce

I have a WooCommerce store in which one product can be personalized by more than one artist. Every artist have their own bank account to receive their payment; so I need the bank account that...