Giter Site home page Giter Site logo

etailer_trademecategory's Introduction

Trade Me Category for OpenMage / Magento 1

This extension creates a category attribute for mapping to Trade Me categories.

Adds support for Trade Me Category Name, Number and Path per magento category (configured per store).

Trade Me category details can be found here: https://developer.trademe.co.nz/api-reference/catalogue-methods/retrieve-general-categories/

A shell script is included to create Magento categories from the Trade Me API with these mappings pre-filled.

$ cd shell
$ php -f trademe_category.php

Create Trade Me categories inside an existing category structure from the Trade Me public API:
https://developer.trademe.co.nz/api-reference/catalogue-methods/retrieve-general-categories/

WARNING: This doesn't de-duplicate. If the categories already exist it will make new ones anyway. URL keys may overlap.

Usage:  php -f trademe_category.php -- [options]

  --catid <id>             Target Magento category ID to create the structure under

  --tmjson <url>           Trade Me JSON url e.g. https://api.trademe.co.nz/v1/Categories.json
                           or https://api.trademe.co.nz/v1/Categories/0187-.json (for a subset)

  --active                 Set category to active? (default: false)

  --menu                   Set category to include in menu? (default: false)

  --exclude                Comma separated list of Trade Me category "Numbers" to exclude
                           (default: 0001-,0350-,5000-)

  help                     This help

etailer_trademecategory's People

Contributors

rjocoleman avatar

Watchers

 avatar  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.