combindma/jumia

This package is abandoned and no longer maintained. No replacement package was suggested.

This is my package Jumia

1.0.0 2021-07-09 17:34 UTC

This package is auto-updated.

Last update: 2022-11-09 20:50:24 UTC


README

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require combindma/jumia

You can publish the config file with:

php artisan vendor:publish  --tag="jumia-config"

This is the contents of the published config file:

return [

    /*
     * The user id, should be an email used in seller center.
     */
    'user_id' => env('JUMIA_USER_ID', ''),

    /*
     * The api url under which data will be sent.
     */
    'api_url' => env('JUMIA_API_URL', 'https://sellercenter-api.jumia.ma'),

    /*
     * The api key used for authentication.
     */
    'api_key' => env('JUMIA_API_KEY', null),

    /*
     * Enable or disable sync with the seller center. Useful for local development.
     */
    'enabled' => env('JUMIA_SYNC_ENABLED', false),

    /*
     * These brands will be deleted from title and description
     */
    'blackList' => [
        'daniel wellington',
        'tissot',
        'guess',
        'swatch',
        'hugo boss',
        'boss',
        'balmain',
        'longines',
        'emporio armani',
        'armani'
    ],

    /*
     * This will be added to xml feed
     */
    'default_weight' => '0.5kg',

    /*
     * This will be added to xml feed
     */
    'default_warranty_duration' => 24,

    /*
     * This will be added to the price of product
     */
    'price_commission' => 15,
];

Usage

You should create JumiaHelper to generate name, description and price.

You should also create JumiaProductAttributes trait and add it to Product Model.

Attach to Product Category these variables: meta[jumia_id_category], meta[jumia_string_category], meta[jumia_seo_category]

Add HasJumiaFeed trait to ProductController.

Add 3 methods in ProductController: addProductToJumia, syncProductWithJumia, syncProductImageWithJumia and add their routes

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.