View Single Post
  #2  
Old 04-24-2016, 04:28 PM
  cherie's Avatar 
cherie cherie is online now
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Help with meta description conditionals

Agreed this is not the best behavior. We found it simpler to adjust the code in include/func/func.product.php after:

PHP Code:
.
    
$product['meta_description'] = trim($product['meta_description']);
    
$product['meta_keywords']    = trim($product['meta_keywords']); 
add:
PHP Code:
if (empty($product['meta_description']))
    
$product['meta_description'] = trim(strip_tags(func_query_first_cell("SELECT descr FROM $sql_tbl[products_lng_current] WHERE productid='$productid'"))); 
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote