Giter Site home page Giter Site logo

Comments (7)

jasonknight avatar jasonknight commented on September 26, 2024

Hi,

Just to be sure, you want the base_url for all of the image links?

from woocommerce-json-api.

tubiz avatar tubiz commented on September 26, 2024

Yes.

from woocommerce-json-api.

jasonknight avatar jasonknight commented on September 26, 2024

This is now there as base_url.

from woocommerce-json-api.

tubiz avatar tubiz commented on September 26, 2024

Thanks.
But just one more request
In the featured image array, under metadata the file is returned as 2013/08/Mens-Athletic-Fit.jpg can it be returned as just the file name.
This is how it is returned

  [metadata] => Array
                                        (
                                            [width] => 360
                                            [height] => 360
                                            [file] => 2013/08/Mens-Athletic-Fit.jpg
                                            [sizes] => Array

But i want it to be returned as

  [metadata] => Array
                                        (
                                            [width] => 360
                                            [height] => 360
                                            [file] => Mens-Athletic-Fit.jpg
                                            [sizes] => Array

from woocommerce-json-api.

jasonknight avatar jasonknight commented on September 26, 2024

It could yes. I will look into it.

from woocommerce-json-api.

jasonknight avatar jasonknight commented on September 26, 2024

The problem is that this would serious complicate writing, because the basedir of the file is variable, you might want to switch it to another image...I will try to add a url key that has a full url to the image for display purposes.

from woocommerce-json-api.

jasonknight avatar jasonknight commented on September 26, 2024

Now you will have a url entry for each metadata entry, including the thumbnails

                  "shop_single": {
                        "file": "codestatistics-300x300.jpg",
                        "width": 300,
                        "height": 300,
                        "mime-type": "image\/jpeg",
                        "url": "http:\/\/woo.localhost\/wp-content\/uploads\/2013\/09\/codestatistics-300x300.jpg"
                    }

from woocommerce-json-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.