Skip to content

og:description Not loading as shortDescription attribute is no-longer available in product. #2496

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

Closed
magearray opened this issue Nov 24, 2015 · 4 comments

Comments

@magearray
Copy link

vendor\magento\module-catalog\view\frontend\templates\product\view\opengraph\general.phtml

in this file meta Tag is getting content from product ShortDescription

meta property="og:description" content="stripTags($block->getProduct()->getShortDescription()); ?>"

But as we seen in Product there is no ShortDescription Attribute available in Magento 2.0.0 CE.

so, as we share product link on Facebook (or Social Media) it won't fetch description as Meta tag is empty due to above reason.

@dmitrii-fediuk
Copy link

Actually, Magento 2 Release has the short_description attribute: https://github.com/magento/magento2/blob/2.0.0/app/code/Magento/Catalog/Setup/InstallData.php#L265
The getShortDescription is just a magic method to access the short_description object property.

@magearray
Copy link
Author

Yes, you are right but in back-end there is no box to add short description so how they get this short_description.
i am aware of magic method to access the short_description.

@dmitrii-fediuk
Copy link

You are wrong again. There IS an input for the short description in the backend.

@dmitrii-fediuk
Copy link

https://mage2.pro/t/252

magento-engcom-team pushed a commit that referenced this issue May 7, 2018
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

2 participants