Comments (3)
Closing for now as the product show should be able to get the data you have. Let me know if you still need it
from magento-laravel-api.
Hi, @jeroencusters
We don't currently offer that endpoint but since that is a native Magento API feature, we are welcome to PRs.
In it's current state, to retrieve special prices, it would look something like this:
$magento->api('products/special-price-information')->post('', [
"skus" => [
"24-WB06",
"240-LV06",
"24-WG080",
],
]);
I understand this isn't very intuitive with the extra post('', [..
as we are already using products()
API. I'll work on this soon but otherwise, feel free to open a PR for the endpoint within products()
so it would be a bit cleaner.
would end up looking a lot cleaner by doing something like:
$magento->api('products')->specialPriceInformation([
"24-WB06",
"240-LV06",
"24-WG080",
]);
from magento-laravel-api.
@ahinkle thanks for your help. This call with the extra post will do for now. I will only use this for individual SKU together with $magento->api('products')->show($sku) since the special price custom_attribute of product doesn't show the validity dates.
from magento-laravel-api.
Related Issues (20)
- Resolve custom attribute values
- Use Magento:: facade HOT 1
- Install Laravel 8.0 HOT 2
- Filtering data HOT 2
- Order Show undefined HOT 1
- Improve Documentation Readability HOT 2
- Add docblock helpers to specify API methods
- Add a nopages method for Orders? HOT 2
- SKU with slash HOT 6
- Changes to use configs from constructor for multiple stores purpose. HOT 3
- Order Create (PUT) method HOT 1
- Change order status HOT 1
- Update documentation to include links to the official Magento documentation
- Update documentation to correct the static method calls of non static methods HOT 1
- Posting data into magento. HOT 1
- oauth support HOT 2
- Magento 2.4.4 support HOT 4
- laravel 9 support HOT 1
- Looking for maintainers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento-laravel-api.