• Resolved DRHughes00

    (@drhughes00)


    Not an issue to be resolved, more of a “why?”

    I have stock scripts that talk to my online site and update the site when stock or prices change.

    Initially, I thought that I could take the [‘attributes’] array and that would give me all the data needed to access the [‘variations’] array. I’d assumed, wrongly, that [‘attributes’][0] would equate to [‘variations’][0].

    Of course, it doesn’t. And I’m puzzled why it does not. The variations appear to be in the reverse order to the attributes – is this intended?

    As I said initially, this is not an issue to be “resolved” – I re-wrote my scripts to find the variation id in a different way, but I am still puzzled.

    Dennis

    https://www.ads-software.com/plugins/woocommerce/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Variation order not matching attribute order’ is closed to new replies.