Code Monkey home page Code Monkey logo

Comments (3)

ahinkle avatar ahinkle commented on July 29, 2024 1

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.

ahinkle avatar ahinkle commented on July 29, 2024

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.

jeroencusters avatar jeroencusters commented on July 29, 2024

@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)

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.