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

Custom properties field is empty in collection from collections dictionary #355

Open
tuviks opened this issue May 7, 2020 · 3 comments
Open

Comments

@tuviks
Copy link

tuviks commented May 7, 2020

Could you help me? I don't know what to do. I have added property "DisplayName" for Category, filled this for Drones category, restarted IIS and site (from settings) and I have no any custom property for this collection on the home page (I have added line "{{ collections | json }}")

Version info:

  • Browser version: Google Chrome 81.0.4044.138
  • Platform version: 2.13.62
  • Module version: 2.23.34

Expected behavior

Properties field is not empty for collection item on home page

Actual behavior

Properties filed is always empty

Steps to reproduce

  1. Add Property for Category named "DisplayName"
  2. Fill DisplayName for one of category
  3. Add {{ collections | json }} to the top of index.liquid
  4. Load home page, find category with filled DisplayName property, find Properties field

image
image
image

@lnetrebskii
Copy link
Contributor

Task https://virtocommerce.atlassian.net/browse/VP-2237 has been created

@tuviks
Copy link
Author

tuviks commented May 8, 2020

@lnetrebskii Thank you! Could you say when you plan to fix this and how could I track this to update my platform and package versions?

@yecli
Copy link
Contributor

yecli commented Oct 20, 2020

Hi @tuviks
Maybe the problem is that categories are loaded without properties by default.
If there is the case, you could set ResponseGroup to e.g. Info, WithPropertiesmanually using the liquid paginate filter.
This link could be useful for setting responseGroup in the liquid template:
https://www.virtocommerce.org/t/how-to-flexibly-manage-data-completeness-in-liquid-templates/146
The part you are interested in is here:

{{ paginator =  collection.products | paginate number_of_products_to_fetch '{ "ResponseGroup" : "Default, ItemProperties" }' }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants