GemRock Posted June 6, 2012 Author Share Posted June 6, 2012 (edited) i think i have missed afew posts (no email notification sent to me). for osc 2.3.1, you add this code to template__top.php between <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> and the 'base href' bit. changes to the application_top.php is the same as in osc 2.2. the results can be seen in my demo osc231 shop (accessed from my profile). <?php if (stristr($_SERVER['PHP_SELF'],'index.php')) { ?> <title><?php echo (strlen($title_tag) > 1) ? $title_tag . ' - ' . TITLE : $title_home_default . ' - ' . TITLE; ?></title> <meta name="description" content="<?php echo (strlen(strip_tags($desc_tag)) < 5)? $desc_home_default : strip_tags($desc_tag); ?>"> <meta name="keywords" content="<?php echo (strlen(strip_tags($keywords_tag)) < 5) ? $kws_home_default : strip_tags($keywords_tag); ?>"> <?php }else if(stristr($_SERVER['PHP_SELF'],'product_info.php')){ ?> <title><?php echo ((strlen($categories['categories_name']) > 1) || (strlen($manufacturers['manufacturers_name']) > 1)) ? $header_tags['products_name'] . ' -' . $breadcrumb_tags->trail_tags(' ') . ' ' . TITLE : TITLE; ?> </title> <meta name="description" content="<?php echo $header_tags['desc_tag']; ?>"> <meta name="keywords" content="<?php echo $header_tags[keywords_tag]; ?>"> <link rel="canonical" href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO,'products_id='. (int)$HTTP_GET_VARS['products_id']); ?>" /> <?php }else{ ?> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <?php } ?> for websites using sts, refer to the above. Ken Edited June 6, 2012 by GemRock Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
GemRock Posted June 6, 2012 Author Share Posted June 6, 2012 for the admin side of osc2.3.1, just comment out the column_left so that it looks like this: <!-- left_navigation //--> <?php // require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> in the two files: header_tags_edit.php and header_tags_category_edit.php Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
marcusmay Posted June 17, 2012 Share Posted June 17, 2012 Hi, Ken Many thanks for excellent contrib. Installation on OSC 2.3.1 and runs well How can I remove shop name from the title tag, even from the category title tag? greeting Marcus Quote Link to comment Share on other sites More sharing options...
Diegosa Posted September 7, 2012 Share Posted September 7, 2012 Hello, I wanted to know if this contribution is compatible with OSC 2.3.3? Someone already tested it on this version? regards Quote Link to comment Share on other sites More sharing options...
rafsan Posted October 29, 2012 Share Posted October 29, 2012 Hello, i've installed contribution in oscommerce 2.3.1, and make modification in template_top.php. This don't work for me. The code i get in my web page is: <html dir="LTR" lang="es"><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Solotextilhogar</title> <meta name="description" content=""> <meta name="keywords" content=""> <base href="http://www.solotextilhogar.com/" /> There is the meta tag description and keywords, but there isn't any description or keywords. ¿can someone help me? ¿can somebody write this wonderful contribution for oscommerce 2.3.1? Thans to everybody Quote Link to comment Share on other sites More sharing options...
rafsan Posted October 29, 2012 Share Posted October 29, 2012 Sorry, i forget to mention. If i make the modification to index.php. the web dont work nothing. Quote Link to comment Share on other sites More sharing options...
depieri Posted January 13, 2014 Share Posted January 13, 2014 (edited) Hi Guys, does anybody know why it appears "Untitled Document" in the beggining of google description? http://parisbolsas.com.br/imagens_mailing/untitled.jpg[/img] Edited January 13, 2014 by depieri Quote Link to comment Share on other sites More sharing options...
depieri Posted January 13, 2014 Share Posted January 13, 2014 (edited) Hi Guys, does anybody know why it appears "Untitled Document" in the beggining of google description? http://parisbolsas.com.br/imagens_mailing/untitled.jpg Edited January 13, 2014 by depieri Quote Link to comment Share on other sites More sharing options...
Psytanium Posted February 10, 2015 Share Posted February 10, 2015 <meta name="description" content=""><meta name="keywords" content=""> anyone here ? osc2.3.3.4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.