flyeralarm / reseller-api Goto Github PK
View Code? Open in Web Editor NEWPHP Binding for the FLYERALARM Reseller API.
License: MIT License
PHP Binding for the FLYERALARM Reseller API.
License: MIT License
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
Create Article:
We need a possibility to get the data like your company provide with this calculator:
http://printcalculation.com/default
Example configuration:
product
to value 3-in-1-Ladekabel als Schlüsselanhänger
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 | ||
... | ... | ... | ||
... | ... | ... | ||
... | ... | ... |
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
}
}
}
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.