An alternative to focus stacking is to tilt the plane of focus so that it is parallel to the object you are trying to photograph. Usually the plane of sharpest focus is parallel to the film/sensor plane of the camera, however by tilting the lens relative to the camera the plane of focus can be tilted so that it is aligned with the longest axis of your subject, ensuring more of the object is contained within the depth of field.
This can be done with a special purpose (or homemade) tilt-shift lens, or if you are doing lots of product photography, a macro bellows setup might be more appropriate.
This approach is more difficult to learn and more expensive than focus stacking, and offers a finite increase in apparent depth of field but usually allows you to get the detail you need in a single capture with no post production.