inquid/yii-woocommerce-catalog

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

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

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

This package is auto-updated.

Last update: 2024-10-29 05:34:24 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(); ?>