Giter Club home page Giter Club logo

Comments (6)

davidtsadler avatar davidtsadler commented on August 24, 2024

Do you have an example item number?

from ebay-sdk-php.

tusharpragma avatar tusharpragma commented on August 24, 2024

Yes.Item number : 322134970015

from ebay-sdk-php.

davidtsadler avatar davidtsadler commented on August 24, 2024

I've tried getting the item using your example code and it's working for me.

foreach ($response->Item->ItemSpecifics->NameValueList as $nameValue) {
    if ($nameValue->Name === 'EAN') {
        printf("EAN found: %s\n", $nameValue->Value[0]);
    }
}

The one thing to keep in mind is that a seller can provide more than one value for an item specific hence why I use $nameValue->Value[0] in the above example.

from ebay-sdk-php.

tusharpragma avatar tusharpragma commented on August 24, 2024

Sorry , i had set the custom attributes for item. Can you please try now ? Item have the defualt specific EAN , but it is not getting the specific list .

from ebay-sdk-php.

davidtsadler avatar davidtsadler commented on August 24, 2024

In that case the EAN won't be found in the item specifics but in the ProductListingDetails field. For some reason the eBay documentation is not showing that the EAN field will be returned in GetItem, but it does work.

You need to ensure that you set DetailLevel to either ItemReturnAttributes or ReturnAll otherwise eBay will not return the ProductListingDetails field.

$request->DetailLevel = ['ItemReturnAttributes'];
.
.
.
printf("EAN found: %s\n", $response->Item->ProductListingDetails->EAN);

from ebay-sdk-php.

tusharpragma avatar tusharpragma commented on August 24, 2024

Yes .It's working . Thank you .

from ebay-sdk-php.

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.