There has been a lot of discussion about this lately.
You can use the X-cart product configurator, but most agree that this module fails to deliver a good user experience for most cases.
Check the options discussed in this thread:
http://forum.x-cart.com/showthread.php?t=69029