Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

categoryId doesn't work in product-summary.shelf ? #36

Open
khrizzcristian opened this issue Feb 3, 2021 · 0 comments
Open

categoryId doesn't work in product-summary.shelf ? #36

khrizzcristian opened this issue Feb 3, 2021 · 0 comments
Labels
question Further information is requested

Comments

@khrizzcristian
Copy link

Hello. I have the following code on category page in product-summary.shelf:

"product-summary.shelf": {
    "children": [
       "stack-layout#prodsum",
       "product-price-savings#summary",
       "add-to-cart-button",
       "product-summary-name",
       "condition-layout.product#autor",
       "product-rating-inline",
       "flex-layout.row#selling-price-savings"
    ],
    "props": {
      "blockClass": "summaryShelfMain"
    }
  },

  "condition-layout.product#autor": {
     "props": {
       "conditions": [
         { "subject": "categoryId", "arguments": { "id": "2" } }
       ],
       "Then": "product-summary-name"
     }
  },

In "Then" I put product-summary-name just for testing. In this case the name should appear twice.
categoryId = 2 can be found here: https://longo--diverta.myvtex.com/carti

And nothing happens.

I tried to filter from "Beletristica" and change the condition with id = 28 and also, nothing

@khrizzcristian khrizzcristian added the question Further information is requested label Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant