Magento Upsell Product Enhancement, Recommendation with PredictionIO 0.8
Clone the git repo - modman clone https://github.com/magento-hackathon/Predictionio.git
Must have an instance of PredictionIO server setup and ready to accept data. Please see the docs for information. For a simple Vagrant installation, check out https://github.com/magento-hackathon/PredictionIO-Vagrant.
Configure the module to make API calls to your instance of PredictionIO, defining the host, port and engine (name and key) and data will be recorded when the user is logged in.
When the module is disabled or the user is not logged in or PredictionIO has not returned any matching products then the module will silently revert to magento's built in upsell products allowing store admin to set these manually.
When a customer views a product page the module will make an API call to add the product to the PredictionIO server as well as record the action of view
When a customer places as an order then the module will get the parent product of the purchased simple product if available and post its ID to PredictionIO as only parent products can show the upsells.
When a customer reviews a product the module will get the average rating from all available ratings then make an API call to add the product rating to the PredictionIO server as well as record the action of rate
Sometimes customers don't login till they get to the checkout so we log the customers actions in the session to post to PredictionIO when the customer logs in.
Using the shell script included you can import all exiting sales data i.e Customers, Products and the action of conversion to kick start your data feeds. Just run the following command from your web root-
php shell/similarity.php --store store1,store2
Where --store looks for a comma seperated list of store names to import from. If you don't supply --store
then all stores in your Magento installation will be imported.