CaptureleadsXavier is a basic Prestashop 1.6 compliant module that aims to accomplish the Ecomm360's objectives.
Main Objectives
####Part1:
- Basic Prestashop module structure named "captureleads+name".
- Ability to hook the module on left and right column, left must be default.
- Basic hello world at frontend using smarty template system.
####Part2:
- Update version to 2.x.x
- Replace part1 helloWorld for a list of the last 3 viewed products.
- Populate list with name, price and truncated short description of the products.
####Part3:
- Update version to 3.x.x
- Add block with button below the previously created list.
- Spawn fancybox upon button being clicked.
- Fancybox contains a newsletter like form (with email field and condition checkbox)
- Data must be inserted inside a module table
- On module install and upgrade the module table must be created.
Further improvements
###Further improvements:
####Fixer Upper:
- P2 - Remove unnecessary (productsViewed) query elements.
- Sanitize inputs.
- Improve file naming.
- Remove embedded CCS and JS from tpl files.
- Avoid hardcoding at ModuleFrontController (getModuleLInk).
####TODOs: #####Part2:
- Number of items shown selector (Configure).
#####Part3:
- Add check for data already on the database.
- Close fancybox after data POST.
- Add frontend feedback of the result of the form.
- Improve mail storage structure.
###Late additons
######Maybe I'll get arround to implement them, eventially:
- Continuous integration.
- Automated testing.