Added refactored version to get store products

Added requires in case someone doesn't use rails