If I have a store that offers flat rate shipping of $10 and free shipping for orders over $100 and a customer orders over $100 it doesn't make much sense for them to have to see both free shipping and flat rate shipping on the checkout page. Why would a user even choose flat rate shipping?  How can I use a filter to detect if free shipping is available, filter the flat rate shipping label so it says something like flat rate shipping (free), and then disable the free shipping method.  The end result is that if a user orders less than $100 they see flat rate shipping $10 and if they order over $100 they see flat rate shipping (free!).
I would like to know if it is possible to enable free shipping with Woo Commerce only if certain items (or items of certain categories / shipping classes) are included in the cart.  The Free Shipping option only activates on the basis of cart value or via a coupon code so I investigated Flat Rate shipping and discovered that it prioritises the most expensive shipping class over the cheaper ones. This means the free shipping class I created never overrides the default charge.  I understand the logic behind this but it's the opposite of what I need as the idea is to incentivise purchases of higher profit margin products by eliminating delivery charges when they're included in an order.  I don't know if what I am trying to achieve is simply not possible within Woo Commerce. A coupon that only applies to certain products / categories seems to be the closest I can get but I'd rather not force users to enter a code at checkout.  Does anybody know if there any simpler ways to give users who purchase certain products free shipping?
extended stars-and-bars problem(where the upper limit of the variable is bounded) Did Obi-Wan Kenobi ever become more powerful? In Star wars: IV A New Hope, Obi-Wan says to Darth Vader:     You can't win, Darth. If you strike me down, I shall become more powerful than you could possibly imagine.    What did he mean by this? Was he bluffing? Was he alluding to him being able to help Luke as a Force Ghost? Or was he talking on behalf of The Force? I need to host several Apache virtual hosts with SSL from a single IP.  Now - I understand that because SSL wraps around the HTTP request, there's no way to know which host is being requested until a public key has been sent to the client first. This essentially breaks the possibility of SSL virtual hosts using a standard SSL certificate.  I have obtained a Unified Communications Certificate (UCC), otherwise known as a Subject Alternative Name (SAN) certificate. This allows me to serve the same certificate for multiple domains.  I would like this to be the certificate served by Apache for any SSL request - and then have Apache resolve the virtual host as usual, once the encryption has been established.  How should I configure Apache for this? I have tried to research how this can be done, but all I can find are quotes which say that it is possible, but no specifics:    wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI     While Apache can renegotiate the SSL   connection later after seeing the   hostname in the request (and does),   that's too late to pick the right   server certificate to use to match the   request hostname during the initial   handshake, resulting in browser   warnings/errors about certificates   having the wrong hostname in them.   serverfault.com/questions/48334/apache-virtual-hosts-with-ssl     Incidentally, it is possible to have   multiple SSL-secured named virtual   hosts on a single IP address - I do it   on my website - but it produces all   sorts of warnings in the Apache logs,   and certificate warnings in the   browser. I certainly wouldn't   recommend it for a production site   that needs to look clean.   -David Jul 31 at 4:58   www.digicert.com/subject-alternative-name.htm     Virtual Host Multiple SSL sites on a single   IP address. Hosting multiple   SSL-enabled sites on a single server   typically requires a unique IP address   per site, but a certificate with   Subject Alternative Names can solve   this problem. Microsoft IIS 6 and   Apache are both able to Virtual Host   HTTPS sites using Unified   Communications SSL, also known as SAN   certificates.     Please help. Guarding against cryptanalytic breakthroughs: combining multiple hash functions Finding $\lim\limits_{n \rightarrow \infty}\left(\int_0^1(f(x))^n\,\mathrm dx\right)^\frac{1}{n}$ for continuous $f:[0,1]\to[0,\infty)$ Find $$\lim_{n \rightarrow \infty}\left(\int_0^1(f(x))^n\,\mathrm dx\right)^\frac{1}{n}$$if $f:[0,1]\rightarrow(0,\infty)$ is a continuous function.   My attempt:  Say $f(x)$ has a max. value $M$. Then $$\left(\int_0^1(f(x))^ndx\right)^\frac{1}{n}\leq\left(\int_0^1M^ndx\right)^\frac{1}{n} =M$$  I cannot figure out what to do next. How to sort this JSON I know I can become root (super user) via the su command but I have to authorize it after entering the commands. Is there a way I can become root and authorize (with password) in one line Mountain Bike on Paved Roads I'm an occasional biker. I bought a mountain bike (nothing fancy) with the idea that I might use it off-road or on mountain trails (of which there are many here in Calgary). However, since I've bought it I've done nothing but bike in the city on streets and paved bike trails.  Is there anything worth doing to my bike to convert it to something more suited to urban biking? In particular, the tires have me wondering; they have large rubber off-roading lugs that surely aren't doing me any favors on pavement. I'm not looking to spend a tons of money on a retrofit, but will do so if its worthwhile. Would the latter be an issue with the funding body, when the project proposal and budget only covers the expenses for hiring one postdoc? Note: it is the supervisors who got the grants, not the postdocs themselves. Is there any way to have BibTeX or biblatex insert a bibliography without having citations in the body of the document itself? Maybe a way to hide the in-text citations, so that BibTeX still sees them and includes them in the bibliography, but does not print them in the body? Prove that there exist two integers such that i - j is divisible by n. Here's the full question:  Prove that, for any $n + 1$ integers, $\{x_0, x_1, x_2, . . . , x_n\}$, there exist two integers $x_i$ and $x_j$ with $i \neq j$ such that $x_i − x_j$ is divisible by $n$.  Now, the integers aren't necessarily consecutive, positive, or without repeats. I've tried breaking this into cases, such as "$x_i = x_j, \dfrac{0}{n} = 0$" etc. But I don't think it's possible to exhaust the cases.  I feel like there should be an easy way to contradict this one, by saying that $x_i - x_j$ isn't divisible by $n$. But I just wasn't getting anywhere with that one.  I thought about using induction, but I would have just as hard a time proving this for $n$ integers before $n+1$ integers, so I don't think it would be possible for me to do it that way.  If anyone could help out, that would be wonderful. I'm pretty stuck here. I am aware of the basics of evolutionary theory, however I don't understand how mutations can add genes over time.   Am I correct in thinking that creatures within the same species who mutate to have an additional gene in their genome would normally be infertile?  Or am I misunderstanding that?  Can someone explain the process of the creation of genetic material through evolution?  Citation to a decent academic paper or book on the matter would be appreciated too. Checking to see if a DateTime variable has had a value assigned When does a .com domain become available after it expires? (With status clientTransferProhibited) I have an equation contained inside \[...\], which automatically makes a \sum with sub- and superscripts turn big--so that the summation sign looks awkward inside parenthesis.  Any idea how to make the parenthesis completely enclose the whole summation?  \documentclass{article} \begin{document} We have: \[ \sum_{i=1}^n i = (\sum_{i=1}^{n-1} i) + n = \frac{(n-1)(n)}{2} + n = \frac{n(n+1)}{2} \] \end{document} Browse for Servers does not display local instance I just installed SQL Server and SQL Server Management Studio but it doesn't show anything in servers list and I don't know how to connect to it.  This shows that I have installed SQL Server:        But in this image you can see that my Browse for Servers dialog is empty:        Network servers is empty too. Why can I only change my Stack Overflow name once every 30 days? Injective functions also surjective? Is it true that for each set $M$ a given injective function $f: M \rightarrow M$ is surjective, too?  Can someone explain why it is true or not and give an example? Theorem. Let $X$ and $Y$ be sets with $X$ nonempty. Then (P) there exists an injection $f:X\rightarrow Y$ if and only if (Q) there exists a surjection $g:Y\rightarrow X$.  For the P $\implies$ Q part, I know you can get a surjection $Y\to X$ by mapping $y$ to $x$ if $y=f(x)$ for some $x\in X$ and mapping $y$ to some arbitrary $\alpha\in X$ if $y\in Y\setminus f(X)$. But I don't know about the Q $\implies$ P part.  Could someone give an elementary proof of the theorem? The phrase "let alone" I notice that "let alone" is used in sentences that have a comma. The structure of the sentence is what comes before the comma is some kind of negative statement. Right after the comma is "let alone," followed by the rest of the sentence.  What does "let alone" mean here? Does it mean the same thing as "or even?" Can someone explain this phrase and sentences that have it?