定制 onestartup/shop 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

onestartup/shop

Composer 安装命令:

composer require onestartup/shop

包简介

store for websites onestartup

README 文档

README

onestartup/shop is a module e-commerce

Installation

  • Run this in the terminal
composer require onestartup/shop
  • if wish config payments paypal, run this:
composer require paypal/rest-api-sdk-php:*
  • after add the ServiceProvider to the providers array in config/app.php
Onestartup\Shop\ShopServiceProvider::class,
  • Run migration
php artisan migrate
  • add next lines to app/User.php
public function productsShop()
{
    return $this->hasMany('Onestartup\Shop\Model\ProductShop', 'user_id');
}
  • run command for publish views
php artisan vendor:publish --provider="Onestartup\Shop\ShopServiceProvider"
  • run command for publish config file
php artisan vendor:publish --tag=config 
  • run serv
php artisan serve
  • test in this route how admin user
http://localhost:8000/admin/shop/product
  • test in this route
http://localhost:8000/productos
  • add to .env file de keys
PK_MERCADO_PAGO=Public key
AC_MERCADO_PAGO=Access token

CLIENT_ID_PAYPAL=cliente id
SECRET_PAYPAL=secret id
PAYPAL_MODE=sandbox
  • for the search
composer require laravel/scout
composer require algolia/algoliasearch-client-php

php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"
  • env vars

    ALGOLIA_APP_ID=YourApplicationID
    ALGOLIA_SECRET=YourAdminAPIKey
    ALGOLIA_SEARCH=YourSearchOnlyAPIKey
    SCOUT_QUEUE=true
    
  • run

    php artisan scout:import 'Onestartup\Shop\Model\ProductShop'
    

Facturacion

Agregar al archivo database/seeds/DatabaseSeeder.php

	$this->call(CreateUsoCfdiCatalog::class);
    $this->call(CreateUnidadesSeed::class);
    $this->call(CreateClavesProductosSeed::class);

Correr migraciones y seeders

	php artisan migrate --seed

统计信息

  • 总下载量: 90
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2018-05-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固