定制 unopim/shopify-connector 二次开发

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

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

unopim/shopify-connector

最新稳定版本:v1.2.0

Composer 安装命令:

composer require unopim/shopify-connector

包简介

A Shopify integration package for Unopim, enabling seamless product data synchronization between Unopim and Shopify.

README 文档

README

Effortlessly integrate your Shopify store with UnoPim for seamless product data management and synchronization. You can currently export catalogs, including categories and both simple and variant products, from UnoPim to Shopify.

Requiremenets:

  • Unopim: v0.2

✨ Features

  • Sync Multiple Stores
    This feature exports products from UnoPim to Shopify and allows syncing multiple Shopify stores.

    Sync Multiple Stores Interface

  • Export Attribute Mapping
    With this module, you can map attributes to export the attribute from UnoPim to Shopify.

    Export Attribute Mapping Interface

  • Locale Mapping
    This feature allows you to map all UnoPim published locale to corresponding Shopify locale.

    Locale Mapping Interface

  • Metafields Mapping
    You can map Meta fields like strings, integers, and JSON strings to easily export product details from UnoPim to Shopify.

    Metafields Mapping Interface

  • Tags, MetaFields, and Other Settings
    This module provides additional settings for exporting products data from UnoPim to Shopify.

    Tags, MetaFields, and Other Settings Interface

  • Filter Data From Export
    Channel, Currency, and Product (SKU) are among the data that may be filtered with this module.

    Filter Data From Export Interface

  • Export Product
    This module allows you to export products from UnoPim to Shopify along with associated data, such as an attribute, image, and all.

    Export Product Interface

  • Export Category
    This module allows you to export the category to Shopify from Unopim.

    Export Category Interface

Installation with composer

  • Run the following command
composer require unopim/shopify-connector
  • Run the command to execute migrations and clear the cache.
php artisan shopify-package:install;
php artisan optimize:clear;

Enable Queue Operations

  • Start the queue to execute actions, such as job operations, by running the following command:
    php artisan queue:work
  • If the queue:work command is configured to run via a process manager like Supervisor, restart the Supervisor (or related) service after module installation to apply changes:
    sudo service supervisor restart

This ensures that the latest updates to the module are reflected in all background tasks.

Running Test Cases with composer

  1. Register Test Directory
    In the composer.json file, register the test directory under the autoload-dev psr-4 section:

    "Webkul\\Shopify\\Tests\\": "vendor/unopim/shopify-connector/tests/"
  2. Configure TestCase
    Open the tests/Pest.php file and add this line:

    uses(Webkul\Shopify\Tests\ShopifyTestCase::class)->in('../vendor/unopim/shopify-connector/tests');
  3. Dump Composer Autoload for Tests

    composer dump-autoload
  4. Run Tests
    To run tests for the Shopify package, use the following command:

    ./vendor/bin/pest ./vendor/unopim/shopify-connector/tests

Installation without composer

Download and unzip the respective extension zip. Rename the folder to Shopify and move into the packages/Webkul directory of the project's root directory.

  1. Regsiter the package provider In the config/app.php file add the below provider class under the providers key

       Webkul\Shopify\Providers\ShopifyServiceProvider::class,
  2. In the composer.json file register the test directory under the autoload psr-4 section

    "Webkul\\Shopify\\": "packages/Webkul/Shopify/src"
  3. Run below given commands

    composer dump-autoload
    php artisan shopify-package:install
    php artisan optimize:clear

Enable Queue Operations

  • Start the queue to execute actions, such as job operations, by running the following command:
    php artisan queue:work
  • If the queue:work command is configured to run via a process manager like Supervisor, restart the Supervisor (or related) service after module installation to apply changes:
    sudo service supervisor restart

This ensures that the latest updates to the module are reflected in all background tasks.

Running test cases

  1. Register Test Directory Register test directory in composer.json under the autoload-dev psr-4 section

    "Webkul\\Shopify\\Tests\\": "packages/Webkul/Shopify/tests"
  2. Configure TestCase

    • Configure the testcase in tests/Pest.php. Add the following line:
    uses(Webkul\Shopify\Tests\ShopifyTestCase::class)->in('../packages/Webkul/Shopify/tests');
  3. Dump Composer Autoload for Tests

    • Dump composer autolaod for tests directory
    composer dump-autoload;
  4. Run Tests

    • Run tests for only this package with the below command
    ./vendor/bin/pest ./packages/Webkul/Shopify/tests/Feature

统计信息

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

GitHub 信息

  • Stars: 13
  • Watchers: 2
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-14