* Changing meta title of PDP; Allowing only 60 characters
* @param $product
*/
privatefunctionalterMetaTitle($product)
{
$pageConfig=$this->resultPage->getConfig();
$title=$product->getMetaTitle();
if(!$title){
$pageConfig->getTitle()->set('$'.$product->getFinalPrice().' - '.$product->getName().' Online at '.$this->urlInterface->getBaseUrl());
}
}
/**
* Changing meta description of PDP; Allowing only 60 characters
* @param $product
*/
privatefunctionalterMetaDescription($product)
{
$pageConfig=$this->resultPage->getConfig();
$description=$product->getMetaDescription();
if(!$description){
$pageConfig->setDescription('Buy '.$product->getName().' Online at the Price of $'.$product->getFinalPrice().' at '.$this->urlInterface->getBaseUrl().'.'.' You Will Get the Best Service and Worldwide Free Shipping for Orders $69+.');
}
}
/**
* Changing meta keyword of PDP; Allowing only 60 characters