Where/how do I put this backend code?

Can someone help me understand where to put code snippets?
I found my way to Dashboard → Settings → Custom Code and can figure out how to put the code on the “Cart page” page, but what about the “Backend code”?
Gah I feel claustrophobic. I’m used to hosting my own, doing everything through Wordpress and such, but this stuff is suffocating and so confusing.

I need to have minimum order quantity. I want to be able to sell my fabrics in 10 cm increments, but I’m not gonna stand there and cut 10 cm, so the minimum has to be half a meter (50 cm).

I found this, which seems to do what I want I think, if someone could just help me with where to put the code :slight_smile:

The feature you want is not yet available. You can vote for this feature here .

Meanwhile, you can achieve what you want using Velo…

You can check the amount ordered from the cart, and then notify the user that they haven’t ordered the minimum. See the Minimum Order Total for Shipping example. Instead of checking for the total amount to be paid , you can check if each item in the cart is the minimum quantity . If the quantity ordered is not the minimum, then reject the order and display the message to the user.