mobilecart/corebundle

基于Symfony构建的电子商务购物车

安装: 531

依赖项: 0

建议者: 0

安全: 0

星星: 1

关注者: 2

分支: 1

开放问题: 0

类型:symfony-bundle

dev-master 2018-03-30 13:14 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:52:59 UTC


README

这是Mobile Cart的核心。

Mobile Cart是一个使用PHP构建的电子商务购物车软件包,基于Symfony框架。

管理员主题在此

https://github.com/mobilecart/mobilecartadminbundle

默认前端主题在此

https://github.com/mobilecart/mobilecartfrontendbundle

指南

在安装了Symfony 2.8之后

现在,我们可以安装Mobile Cart

$ composer require mobilecart/corebundle:dev-master

将此包安装到Symfony 2.8中(将包添加到app/AppKernel.php中)

$bundles = array(

...

new MobileCart\CoreBundle\MobileCartCoreBundle(),

);

运行一些控制台命令

$ ./app/console doctrine:schema:create

$ ./app/console cart:init:itemvarsets

$ ./app/console cart:ref:regions

$ cp vendor/mobilecart/corebundle/Resources/config/security.yml ./app/config/

$ cp vendor/mobilecart/corebundle/Resources/config/routing.yml ./app/config/

$ ./app/console cart:create:adminuser admin@fake.com passw0rd

$ ./app/console cart:create:customer customer@fake.com passw0rd

接下来,我们可以安装管理员和前端主题

$ composer require mobilecart/adminbundle:dev-master

$ composer require mobilecart/frontendbundle:dev-master

将这些包安装到Symfony 2.8中(将包添加到app/AppKernel.php中)

$bundles = array(

...

new MobileCart\CoreBundle\MobileCartAdminBundle(),

new MobileCart\CoreBundle\MobileCartFrontendBundle(),

);

$ ./app/console assets:install --symlink

...

注意:如果您收到类似“ORDER BY子句不在SELECT列表中,引用了不在SELECT列表中的列X;这与DISTINCT不兼容”的错误,这是因为在Doctrine 2.5.x的Paginator尚未处理此特定于MySQL 5.7的“错误”。