-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Meta tile and meta descriptions missing in category object #2074
Comments
Currently the Magento meta_* fields are not used (we do generate meta from description and title fields) in Category.js (either in Product.js) but I belive this can Ben easily fixed - @patzick can you take a look at it? |
@pkarw but what about the steps that I took to add an attribute to the category object, are they correct? Because i've also tried this with non meta attributes like description and image, and it also didn't work. |
@Tjitse-E do You have these fields filled correctly in Elastic? If so, then after adding them to |
@pkarw i've checked with Kibana, and I've noticed that some of the categories indeed have meta_title and meta_description fields now, and they are also available in the category object. However, this isn't the case for all the categories, in some categories the data is still missing. Maybe I will have to completely destroy and rebuild the elastic indexes? What would be the best way to do this? |
@Tjitse-E I checked this issue and in my opinion passing data from elasticsearch to VS store works ok. I added some meta_title and meta_description fields to categories and products and this shows in vuex and in computed properties eg: https://prnt.sc/m5ez7l Steps that you did are ok and this should works so in my opinion there is something wrong with elasticsearch indexes but I havn't knowled to help with ES. |
I changed the generation of title and description meta tags. Now this tags will be generated based on meta_title and meta_description fields if this fields occurs. |
Steps to reproduce the issue
Current behavior
Visit a frontend category and check the category computed property. The meta title and description are missing.
Expected behavior
After adding the (category) meta_title and meta_description these attributes should be available in the category object
Can you handle fixing this bug by yourself?
No, i'm also not sure that this is a bug. Maybe i'm doing something wrong?
Environment details
Additional information
Related issue: #1383
The text was updated successfully, but these errors were encountered: