inquid/yii-woocommerce-catalog

Create a PDF catalog of your store to send to your clients through whatsapp

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2018-12-10 03:28 UTC

This package is auto-updated.

Last update: 2020-08-03 02:52:48 UTC


README

Create a PDF catalog of your store to send to your clients through whatsapp

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist inquid/yii-woocommerce-catalog "dev-master"

or add

"inquid/yii-woocommerce-catalog": "dev-master"

to the require section of your composer.json file.

Configure in your config file:

$config = [
     // ...
    'components' => [
        'yiiwoocatalog' => [
            'class' => 'inquid\yiiwoocatalog\CreateCatalog',
            'domain' => 'DOMAIN...',
            'key' => 'KEY...',
            'secret' => 'SECRET...',
        ],

Usage

Once the extension is installed, simply use it in your controller action :

<?= Yii::$app->yiiwoocatalog->getPdf(); ?>