AmirMahmood Posted November 15, 2017 Share Posted November 15, 2017 (edited) hello . in meta.php i found this line: Configuration::get('PS_META_DESCRIPTION', $context->language->id) what is PS_META_DESCRIPTION and in which table can i find it ? and where can i change it in back office ? i search "configuration" table but i can't find this it? edit: i find this line too: Configuration::get('PS_META_KEYWORDS', $context->language->id) and i can't find anything about PS_META_KEYWORDS like PS_META_DESCRIPTION. thanks. Edited November 15, 2017 by AmirMahmood (see edit history) Link to comment Share on other sites More sharing options...
Zohaib-fk Posted November 16, 2017 Share Posted November 16, 2017 Hi, meta description and keywords provide useful information about page to search engine bot. Description is short summary of the page and keywords are related page when people search on google to find page. In your code sample , it is related to getting those values based on store language id from configuration. Below is the example of html render using description and keywords. When you will do view source of page , this information is available on top of the page. <meta name="description" content="Short description about products and store"/> <meta name="keywords" content="keywords for search engine"/> Link to comment Share on other sites More sharing options...
AmirMahmood Posted November 16, 2017 Author Share Posted November 16, 2017 37 minutes ago, zohaib82 said: Hi, meta description and keywords provide useful information about page to search engine bot. Description is short summary of the page and keywords are related page when people search on google to find page. In your code sample , it is related to getting those values based on store language id from configuration. Below is the example of html render using description and keywords. When you will do view source of page , this information is available on top of the page. <meta name="description" content="Short description about products and store"/> <meta name="keywords" content="keywords for search engine"/> thanks zohaib. in meta.php there is below code if (empty($meta_tags['meta_description'])) { $meta_tags['meta_description'] = Configuration::get('PS_META_DESCRIPTION', $context->language->id) ? Configuration::get('PS_META_DESCRIPTION', $context->language->id) : ''; } if (empty($meta_tags['meta_keywords'])) { $meta_tags['meta_keywords'] = Configuration::get('PS_META_KEYWORDS', $context->language->id) ? Configuration::get('PS_META_KEYWORDS', $context->language->id) : ''; } it seems, when a page doesn't have any keywords or description, it tries to set "PS_META_KEYWORDS" and "PS_META_DESCRIPTION" to those. but the value of "PS_META_DESCRIPTION" and "PS_META_KEYWORDS" are empty for me and i don't know where can i change these values ? Link to comment Share on other sites More sharing options...
joseantgv Posted November 17, 2017 Share Posted November 17, 2017 (edited) On 15/11/2017 at 9:38 PM, AmirMahmood said: hello . in meta.php i found this line: Configuration::get('PS_META_DESCRIPTION', $context->language->id) what is PS_META_DESCRIPTION and in which table can i find it ? and where can i change it in back office ? i search "configuration" table but i can't find this it? edit: i find this line too: Configuration::get('PS_META_KEYWORDS', $context->language->id) and i can't find anything about PS_META_KEYWORDS like PS_META_DESCRIPTION. thanks. Hi! All the values retrieved with Configuration::get() are stored in table ps_configuration If they don't exist you can create them. Edited November 17, 2017 by joseantgv (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now