These problems are usually easier to solve looking at the reciprocal case. Let's see the probability $p$ of getting $8$ shoes such that there is $0$, or $1$ pairs, then what you are looking for will be $1-p$.
The probability of getting $0$ pairs can be calculated by: for the first shoe, $40$ posibilities, for the second shoe $38$ (we eliminate the pair of the shoe we chose), then $36$, and so on:
$$p_0=\frac{40\cdot 38\cdot 36\cdot 34\cdot 32\cdot30\cdot28\cdot26}{8!P}$$
where $P$ is the total number of posibilities that you have correctly calculated, and $8!$ compensates for the posible permutations of the already selected shoes.
To get only $1$ pair, we have to choose a pair, there are $20$, and of the remaining $38$ shoes, do the same as before to choose the other $6$ shoes, so the probability is:
$$p_1 = \frac{20\cdot 38\cdot 36\cdot 34\cdot 32\cdot 30\cdot 28}{6!P}$$
The probability you're looking for is:
$$1-p_0-p_1\approx 0.13$$