Giter Site home page Giter Site logo

reseller-api's People

Contributors

coreyldagget avatar flyeralarm-esolutions avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

coreyldagget

reseller-api's Issues

[v1.0.3] Catalog import | receive prices for quantities also | import workflow

Hello,

first of all thx for the great Flyeralarm resellerAPi.
We are a partner of you and we currently try to implement your catalog in our system.
We where facing some problems and i want to clarify some things with this issue.

Our workflow in short:

Import

  1. We import all of your groups (orderable_via_api=true) with a daily Cron.
    --> (We want to import as much as possible but since each group needs another API call, we dont import attributes in the Cron)
  2. Now your groups are available in our Backend and we are able to setup/relate articles with them.

Create Article:

  1. The user choose a group in the dropdown
    --> We call your API for attributes
  2. User setup some attributes
    --> With each change we call your API for possible Attributes
  3. If group is fully configured we import the quantities with prices
    --> this is where it becomes strange with a messy call workflow

Expected behavior

We need a possibility to get the data like your company provide with this calculator:
http://printcalculation.com/default

Example configuration:

  1. Set dropdown product to value 3-in-1-Ladekabel als Schlüsselanhänger
  2. Set the other attribute dropdown's to whatever you want.
  3. Hit the Pricing button.

You see the expected result of:

Quantity QuantityID Standard( 15 - 17 work days) Express Overnight
100 12310640 351.26 EUR
150 12310641 521.55 EUR
200 12310642 685.52 EUR
... ... ...
... ... ...
... ... ...

Actual behavior

Within the example repository in the file public/find_product.php you provide a way to find a QuantityId.
The workflow in this example is as follows:

1 - Get all Groups by

$faApi->getProductGroupIds()

2 - Set a group from above collection.

3 - Get Group Attribute and set some

$attributeList = $faApi->getProductAttributesByProductGroup($product_group);
// Set 4184|Ausführung -> 21019|DIN-Format
$attributeList->getById(4184)->setSelection(
    $attributeList->getById(4184)->getPossibleValues()->getById(21019)
);

4 - Get possible Quantities

// Now we ask for the possible options for quantities and shipping (standard,express,overnight)
$quantities = $faApi->getAvailableQuantitiesByAttributes($product_group, $attributeList);

Result:

flyeralarm\ResellerApi\productCatalog\ProductQuantityOptionList {
  ["elements"]=>
  array(6) {
    [0]=>
    flyeralarm\ResellerApi\productCatalog\ProductQuantityOption {
      ["quantity"]=> 100
      ["shipping_options"]=>
      array(1) {
        ["standard"]=>
        flyeralarm\ResellerApi\productCatalog\ProductQuantityShippingOption {
          ["type"]=>"standard"
          ["quantityId"]=> 7826336
          ["deadline"]=> 12
          ["from"]=> 8
          ["to"]=> 9
        }
      }
    }
    ...

Questions

  • At this point we got all needed Information except the prices for the quantities! Is there another way to achieve this?
  • is there a comfortable way to import the catalog without hundreds of API calls?
    --> we nee the groups with attributes and the quantities.

Specifications

  • reseller-api v1.0.3
  • custom import implementation

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.