Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Vue Storefront Magento Vsbridge Indexer 1.6.0

Compare
Choose a tag to compare
@afirlejczyk afirlejczyk released this 07 Nov 12:20
· 237 commits to develop since this release
2d08499

Added

  • Add support for Visual Swatches. (#15)
    Attribute options
"options": [
    {
      "swatch": {
        "type": 1,
        "value": "#ffd500"
      },
      "value": "60",
      "label": "Yellow",
      "sort_order": 12
    },
    {
      "swatch": {
        "type": 3,
        "value": null
      },
      "value": "105",
      "label": "purple",
      "sort_order": 13
    },
    {
      "swatch": {
        "type": 2,
        "value": "/4/2/4245592.png"
      },
      "value": "106",
      "label": "File",
      "sort_order": 14
    }
]

Product configurable option values

"values": [
    {
      "value_index": "50",
      "label": "blue defaul",
      "swatch": {
        "type": 1,
        "value": "#1857f7"
      }
    },
    {
      "value_index": "49",
      "label": "Black",
      "swatch": {
        "type": 1,
        "value": "#000000"
      }
    }
  ]
  • Add new command vsbridge:index to run indexer for one product, cms block, etc.
    bin/magento vsbridge:index vsbridge_product_indexer default 1
    vsbridge_product_indexer -> indexer code
    default -> store code
    1 -> entity id (in this particular example - product id)
    Useful for testing.