定制 magicalella/yii2-prestashop 二次开发

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

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

magicalella/yii2-prestashop

最新稳定版本:v1.0.0

Composer 安装命令:

composer require magicalella/yii2-prestashop

包简介

Prestashop component for Yii 2 framework

README 文档

README

Modulo per integrare la Yii con Prestashop

Prestashop Technical API Documentation

Installation

The preferred way to install this extension is through composer.

Run

composer require "magicalella/yii2-prestashop" "*"

or add

"magicalella/yii2-prestashop": "*"

to the require section of your composer.json file.

Usage

  1. Add component to your config file
'components' => [
    // ...
    'prestashop' => [
        'class' => 'magicalella\prestashop\Prestashop',
        'url' => 'URL Site prestashop',
        'key' => 'API Keyu WebService PS',
        'debug' => true/false,
        'version' => 'version PS'
    ],
]
  1. Add new contact to Prestashop . Patch a contact by email. If contact does not exists, it is created
$prestashop = Yii::$app->prestashop;
$prestashop->$url = $this->$url;
$prestashop->key = $this->key;
$prestashop->debug = $this->debug;
try
 {
    $xml = $prestashop->get(['resource' => 'orders','limit'=> $off_set.','.$limit,'sort'=>'id_ASC']);
 }
catch (BridgePSException $ex)
 {
    echo 'Error : '.$ex->getMessage();
}

Check Prestashop Technical API Documentation for all available options.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-21