Support » Plugin: Woo Variations Table » Dimensions outputting array, here’s the fix

  • I had to edit the file woo-variations-table.php in order to fix my problem. This may help you, too. I asked on Stack Exchange as I wasn’t familiar with Django. See that page for full details. Essentially this {{entry[column.key]}} was outputting a full array:

    { “length”: “”, “width”: “69.2”, “height”: “32” }

    The answer was to edit that to this:

    {{entry[column.key][‘width’]}} x {{entry[column.key][‘height’]}} cm.

    And now all is well in my world.

    Be happy for ever,

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thanks for the fix. I am having this issue too. I don’t want to edit this plugin, but I do need this fixed. Can the plugin author please jump on this?

    More info on the bug as I saw it: the first time I activated the plugin it was working correctly. Then I changed some column display settings and the array appeared.

Viewing 1 replies (of 1 total)
  • The topic ‘Dimensions outputting array, here’s the fix’ is closed to new replies.