GithubHelp home page GithubHelp logo

havill / thebase2eccube Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 46 KB

Converts THE BASE product CSV export output to EC-CUBE 4 CSV for import

Home Page: https://thebase.in/

License: GNU General Public License v3.0

Awk 72.79% C 19.15% Makefile 1.16% Shell 6.90%
ec-cube4 ec-cube migration-tool migration

thebase2eccube's Introduction

thebase2eccube

Converts THE BASE product CSV export output to EC-CUBE 4 CSV for import

THE BASE → EC-CUBE 4.x Product CSV list converter Copyright 2020, Eido Inoue

An AWK program that will read CSV exported by THE BASE (an ASP hosted e-Commerce solution for Japan) to EC-CUBE (an open source as well as hosted e-Commerce solution primarily used in Japan)

NOTES:

  • CSV input file must be UTF-8 encoding and the unicode character set with no byte order mark. Note that the default output format for exported japanese CSV files is usually shift-jis, So you will need to pre-convert the file using iconv.
  • The default output encoding is UTF-8 with no BOM (byte order mark U+FEFF). Japanese ASP/SAAS systems, even ones that work in Unicode normally, often expect Shift-JIS for CSV import
  • CSV files usually have a CRLF for the newline, even on Linux systems. If you are running AWK/GAWK on a Windows system, you may need to set the special BINMODE variable to "3" on The command line to keep windows from attempting to silently convert the end-of-lines chars.

PREREQUISITES:

  • This script uses GNU specific AWK extensions. It probably won't won't on POSIX or other AWKs
  • The script assumes that THE BASE stores all images in the cloud in the same place. Tweak the global AWK variable if the images are elsewhere.
  • The EC-CUBE mapping for 公開ステータス mapping should be "1" for 公開 (public), in order to match THE BASE's idea of a publicly listed item. This is not a problem if you're using the default/demo mappings for EC-CUBE (ex. EC-CUBE 4.x's demo "GELATO" site)
  • You will need a Linux environment with standard development tools (GNU make, gcc, iconv, wget, etc).

USAGE:

  • From the base directory of the bash script, run the bash script with two arguments:

    1. the first argument is the path to the base directory of your EC-CUBE 4 installation. The subdirectories /html/upload/save_image should be present underneath it.
    2. The second argument is the Shift-JIS CRLF encoded CSV file output by THE BASE App Apps一覧 / CSV商品管理App / CSVダウンロード / 登録済み商品の情報を編集するためのCSVファイル / ダウンロードする

    Example:

    $ ./thebase2eccube.bash /mnt/c/xampp/htdocs shop-example-com-19701231235959.csv
    

thebase2eccube's People

Contributors

havill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.