Missing Meta Keys on WooCommerce orders

I have a WPML problem with order language being ignored, and according to WPML it is because there is no meta keys in the metabox on orders. I only see attributes. Especially wpml_languages are missing.

I have a fresh install with the same theme, the same WP version and the same plugins – here I do not have this problem.

I have 3 sites from the same DB copy, one local, one for testing and one live. Everyone has this problem.

Have tried switching to a default theme, disabling all plugins, updating everything, etc. Nothing helps.

Any idea what could be causing this?

WooCommerce – Display Product image and name on Orders page

I used the solution here (linked below). It works great. However, it glitches when displaying an order containing a product that has since been deleted. Is there a way to modify the code so that on products that have been deleted it just shows nothing instead of a huge paragraph of gibberish? Just curious!

Original solution was by @meloman : Display order items names in WooCommerce admin orders list

Can a familiar give orders to minions of their wizard?

A wizard has a familiar and some other minions. Let’s go with a summoned monster and a non-intelligent undead minion. Can the familiar give commands to these other minions?

Does it matter if the wizard is present? (Like if they get teleported away) Does it matter if the wizard is conscious? Does it matter if the familiar can speak? Does it matter if how the wizard is controlling the undead (create undead vs command undead)?

Any other edge cases one can think of?

Woocommerce Custom product fields need to be editable after purchase in View Orders Page

I am Using https://stackoverflow.com/questions/46612499/display-a-custom-field-value-in-woocommerce-orders-edit-view/#answer-46615303 answer code, which works fine.

I want to display that checkout custom fields on My Account > View Order Pages, to allow customer to edit its value after purchase, so Customers can change and save the custom field value.

Any help?

Show only the products and orders of the current user – woocomerce

I am new to woocommerce and I have an online store, my store has several user roles, one of these roles is the provider role, and I want that when I log in a user with a supplier profile can only see their products and the orders of their products

and seen the wp-vendors plugin but I don’t want to use this pligin

Enumerate all valid orders of subset sums

Given an positive integer $ n$ , we define an order of subset sums to be a sequence of all subsets of $ \{1,\ldots,n\}$ . For example, when $ n=2$ , the sequence $ \emptyset,\{1\},\{2\},\{1,2\}$ is an order of subset sums.

We call an order of subset sums $ S_1,\ldots,S_{2^n}$ valid if there exist real numbers $ 0<x_1<\cdots<x_n$ such that $ \sum_{i\in S_1}x_i<\cdots<\sum_{i\in S_{2^n}}x_i$ . For example, when $ n=2$ , the sequence $ \emptyset,\{1\},\{2\},\{1,2\}$ is a valid order of subset sums, but the sequence $ \emptyset,\{1\},\{1,2\},\{1\}$ is not a valid order of subset sums because we cannot make $ x_1+x_2<x_1$ .

The question is, given $ n$ , how to enumerate all possible valid orders of subset sums. I know this problem cannot be solved in time polynomial in $ n$ , because there may be exponentially many valid orders of subset sums, so an algorithm with exponential time is welcome.

A trivial algorithm would be to iterate over all possible orders of subset sums, and check for each one if it is valid. But I cannot even find an (efficient) way to check if an order of subset sums is valid.

Understanding of big-O massively improved when I began thinking of orders as sets. How to apply the same approach to big-Theta?

Today I revisited the topic of runtime complexity orders – big-O and big-$ \Theta$ . I finally fully understood what the formal definition of big-O meant but more importantly I realised that big-O orders can be considered sets.

For example, $ n^3 + 3n + 1$ can be considered an element of set $ O(n^3)$ . Moreover, $ O(1)$ is a subset of $ O(n)$ is a subset of $ O(n^2)$ , etc.

This got me thinking about big-Theta which is also obviously a set. What I found confusing is how each big-Theta order relates to each other. i.e. I believe that $ \Theta(n^3)$ is not a subset of $ \Theta(n^4)$ . I played around with Desmos (graph visualiser) for a while and I failed to find how each big-Theta order relates to other orders. A simple example Big-Theta example graphs shows that although $ f(n) = 2n$ is in $ \Theta(n)$ and $ g(n) = 2n^2$ is in $ \Theta(n^2)$ , the graphs in $ \Theta(n)$ are obviously not in $ \Theta(n^2)$ . I kind of understand this visually, if I think about how different graphs and bounds might look like but I am having a hard time getting a solid explanation of why it is the way it is.

So, my questions are:

  1. Is what I wrote about big-O correct?
  2. How do big-Theta sets relate to each other, if they relate at all?
  3. Why do they relate to each other the way they do? The explanation is probably derivable from the formal definition of big-Theta (might be wrong here) and if someone could relate the explanation back to that definition it would be great.
  4. Is this also the reason why big-O is better for analysing complexity? Because it is easier to compare it to other runtimes?

How many times does a Mature Animal Companion attack per encounter without orders?

The Mature Animal Companion feat for Rangers (CRB p173) is really ambigious:

If you have the Hunt Prey action, your animal companion assaults the prey even without your orders. During an encounter, even if you don’t use the Command an Animal action, your animal companion can still use 1 action that round on your turn to Stride toward or Strike your prey.
(emphasis mine)

It makes a lot more sense with use instead of have, otherwise I might not even have a Prey for it to Strike.
But in that case, next round, when the Prey is still alive, will my Animal Companion just stand around?