frederic-benoist / fbsample-botraining

PrestaShop 1.7 Back Office sample module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PrestaShop 1.7 Back Office sample module

Add old back office controller with legacy and Smarty. Add new back office controller with Symfony and Twig. Create new console command. Use Doctrine DBAL repository. With simple phpunit test.

==For PrestaShop Development training only.==

Prerequisites

  • You need a shop with PrestaShop 1.7.5.0 or higher.
  • You need access to the shell of your server.
  • You need composer.

You must install the test tools.

$cd prestashop_root_directory
$composer install

Installing

  • Download or clone module into modules directory of your PrestaShop installation
  • Install module from Back Office

Run the tests

$cd prestashop_root_directory/modules/fbsample_botraining
$./../../vendor/bin/phpunit --testdox

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

Licensing

This source file is subject to the Academic Free License (AFL 3.0) that is available through the world-wide-web at this URL: http://opensource.org/licenses/afl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@prestashop.com so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade this module to newer versions in the future. If you wish to customize PrestaShop for your needs please refer to http://www.prestashop.com for more information.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

PrestaShop 1.7 Back Office sample module


Languages

Language:PHP 69.7%Language:Twig 21.0%Language:CSS 4.8%Language:Smarty 4.6%