apopular Posted May 17, 2015 Posted May 17, 2015 This is my new header_tags.php <?php /* /catalog/includes/header_tags.php WebMakers.com Added: Header Tags Generator v2.0 Add META TAGS and Modify TITLE NOTE: Globally replace all fields in products table with current product name just to get things started: In phpMyAdmin use: UPDATE products_description set PRODUCTS_HEAD_TITLE_TAG = PRODUCTS_NAME Shoppe Enhancement Controller - Copyright (c) 2003 WebMakers.com Linda McGrath - osCommerce@[member=webmakers].com */ require(DIR_WS_LANGUAGES . $language . '/' . 'header_tags.php'); $tags_array = array(); // Define specific settings per page: switch (true) { // ALLPRODS.PHP case (strstr($_SERVER['PHP_SELF'],FILENAME_ALLPRODS) or strstr($PHP_SELF,FILENAME_ALLPRODS) ): $the_category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'"); $the_category = tep_db_fetch_array($the_category_query); $the_manufacturers_query= tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "'"); $the_manufacturers = tep_db_fetch_array($the_manufacturers_query); if (HTDA_ALLPRODS_ON=='1') { $tags_array['desc']= HEAD_DESC_TAG_ALLPRODS . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= HEAD_DESC_TAG_ALLPRODS; } if (HTKA_ALLPRODS_ON=='1') { $tags_array['keywords']= HEAD_KEY_TAG_ALL . ' ' . HEAD_KEY_TAG_ALLPRODS; } else { $tags_array['keywords']= HEAD_KEY_TAG_ALLPRODS; } if (HTTA_ALLPRODS_ON=='1') { $tags_array['title']= HEAD_TITLE_TAG_ALLPRODS . ' ' . HEAD_TITLE_TAG_ALL . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name']; } else { $tags_array['title']= HEAD_TITLE_TAG_ALLPRODS; } break; // products_all.PHP case (strstr($_SERVER['PHP_SELF'],FILENAME_PRODUCTS_ALL) or strstr($PHP_SELF,FILENAME_PRODUCTS_ALL) ): $the_category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'"); $the_category = tep_db_fetch_array($the_category_query); $the_manufacturers_query= tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "'"); $the_manufacturers = tep_db_fetch_array($the_manufacturers_query); if (HTDA_PRODUCTS_ALL_ON=='1') { $tags_array['desc']= HEAD_DESC_TAG_PRODUCTS_ALL . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= HEAD_DESC_TAG_PRODUCTS_ALL; } if (HTKA_PRODUCTS_ALL_ON=='1') { $tags_array['keywords']= HEAD_KEY_TAG_ALL . ' ' . HEAD_KEY_TAG_PRODUCTS_ALL; } else { $tags_array['keywords']= HEAD_KEY_TAG_PRODUCTS_ALL; } if (HTTA_ALLPRODS_ON=='1') { $tags_array['title']= HEAD_TITLE_TAG_PRODUCTS_ALL . ' ' . HEAD_TITLE_TAG_ALL . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name']; } else { $tags_array['title']= HEAD_TITLE_TAG_PRODUCTS_ALL; } break; // INDEX.PHP case (strstr($_SERVER['PHP_SELF'],FILENAME_DEFAULT) or strstr($PHP_SELF,FILENAME_DEFAULT) ): $the_category_query = tep_db_query("select categories_name, categories_htc_title_tag, categories_htc_desc_tag, categories_htc_keywords_tag from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' and language_id = '" . (int)$languages_id . "'"); $the_category = tep_db_fetch_array($the_category_query); $the_manufacturers_query= tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); $the_manufacturers = tep_db_fetch_array($the_manufacturers_query); $showCatTags = false; if ($category_depth == 'nested' || ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id']))) $showCatTags = true; if (HTDA_DEFAULT_ON=='1') { if ($showCatTags == true) { if (HTTA_CAT_DEFAULT_ON=='1') { $tags_array['desc']= $the_category['categories_htc_desc_tag'] . ' ' . HEAD_DESC_TAG_DEFAULT . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= $the_category['categories_htc_desc_tag'] . ' ' . HEAD_DESC_TAG_ALL; } } else { $tags_array['desc']= HEAD_DESC_TAG_DEFAULT . ' ' . HEAD_DESC_TAG_ALL; } } else { if ($showCatTags == true) { if (HTTA_CAT_DEFAULT_ON=='1') { $tags_array['desc']= $the_category['categories_htc_desc_tag'] . ' ' . HEAD_DESC_TAG_DEFAULT; } else { $tags_array['desc']= $the_category['categories_htc_desc_tag']; } } else { $tags_array['desc']= HEAD_DESC_TAG_DEFAULT; } } if (HTKA_DEFAULT_ON=='1') { if ($showCatTags == true) { if (HTTA_CAT_DEFAULT_ON=='1') { $tags_array['keywords']= $the_category['categories_htc_keywords_tag'] . ' ' . HEAD_KEY_TAG_ALL . ' ' . HEAD_KEY_TAG_DEFAULT; } else { $tags_array['keywords']= $the_category['categories_htc_keywords_tag'] . ' ' . HEAD_KEY_TAG_DEFAULT; } } else { $tags_array['keywords']= HEAD_KEY_TAG_ALL . ' ' . HEAD_KEY_TAG_DEFAULT; } } else { if ($showCatTags == true) { if (HTTA_CAT_DEFAULT_ON=='1') { $tags_array['keywords']= $the_category['categories_htc_keywords_tag'] . ' ' . HEAD_KEY_TAG_DEFAULT; } else { $tags_array['keywords']= $the_category['categories_htc_keywords_tag']; } } else { $tags_array['keywords']= HEAD_KEY_TAG_DEFAULT; } } if (HTTA_DEFAULT_ON=='1') { if ($showCatTags == true) { if (HTTA_CAT_DEFAULT_ON=='1') { $tags_array['title']= $the_category['categories_htc_title_tag'] .' '. HEAD_TITLE_TAG_DEFAULT . " " . $the_manufacturers['manufacturers_name'] . ' - ' . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= $the_category['categories_htc_title_tag'] .' '. $the_manufacturers['manufacturers_name'] . ' - ' . HEAD_TITLE_TAG_ALL; } } else { $tags_array['title']= HEAD_TITLE_TAG_DEFAULT . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name'] . ' - ' . HEAD_TITLE_TAG_ALL; } } else { if ($showCatTags == true) { if (HTTA_CAT_DEFAULT_ON=='1') { $tags_array['title']= $the_category['categories_htc_title_tag'] . ' ' . HEAD_TITLE_TAG_DEFAULT; } else { $tags_array['title']= $the_category['categories_htc_title_tag']; } } else { $tags_array['title']= HEAD_TITLE_TAG_DEFAULT; } } break; // PRODUCT_INFO.PHP case ( strstr($_SERVER['PHP_SELF'],FILENAME_PRODUCT_INFO) or strstr($PHP_SELF,FILENAME_PRODUCT_INFO) ): // $the_product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_keywords_tag, pd.products_head_desc_tag, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "'"); $the_product_info_query = tep_db_query("select pd.language_id, p.products_id, pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_keywords_tag, pd.products_head_desc_tag, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "'" . " and pd.language_id ='" . $languages_id . "'"); $the_product_info = tep_db_fetch_array($the_product_info_query); if (empty($the_product_info['products_head_desc_tag'])) { $tags_array['desc']= HEAD_DESC_TAG_ALL; } else { if ( HTDA_PRODUCT_INFO_ON=='0' ) { $tags_array['desc']= $the_product_info['products_head_desc_tag'] . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= $the_product_info['products_head_desc_tag']; } } if (empty($the_product_info['products_head_keywords_tag'])) { $tags_array['keywords']= HEAD_KEY_TAG_ALL; } else { if ( HTKA_PRODUCT_INFO_ON=='1' ) { $tags_array['keywords']= $the_product_info['products_head_keywords_tag'] . ' ' . HEAD_KEY_TAG_ALL; } else { $tags_array['keywords']= $the_product_info['products_head_keywords_tag']; } } if (empty($the_product_info['products_head_title_tag'])) { $tags_array['title']= HEAD_TITLE_TAG_ALL; } else { if ( HTTA_PRODUCT_INFO_ON=='1' ) { $tags_array['title']= clean_html_comments($the_product_info['products_head_title_tag']) . ' ' . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= clean_html_comments($the_product_info['products_head_title_tag']); } } break; // PRODUCTS_NEW.PHP case ( strstr($_SERVER['PHP_SELF'],FILENAME_PRODUCTS_NEW) or strstr($PHP_SELF,FILENAME_PRODUCTS_NEW) ): if ( HEAD_DESC_TAG_WHATS_NEW!='' ) { if ( HTDA_WHATS_NEW_ON=='1' ) { $tags_array['desc']= HEAD_DESC_TAG_WHATS_NEW . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= HEAD_DESC_TAG_WHATS_NEW; } } else { $tags_array['desc']= HEAD_DESC_TAG_ALL; } if ( HEAD_KEY_TAG_WHATS_NEW!='' ) { if ( HTKA_WHATS_NEW_ON=='1' ) { $tags_array['keywords']= HEAD_KEY_TAG_WHATS_NEW . ' ' . HEAD_KEY_TAG_ALL; } else { $tags_array['keywords']= HEAD_KEY_TAG_WHATS_NEW; } } else { $tags_array['keywords']= HEAD_KEY_TAG_ALL; } if ( HEAD_TITLE_TAG_WHATS_NEW!='' ) { if ( HTTA_WHATS_NEW_ON=='1' ) { $tags_array['title']= HEAD_TITLE_TAG_WHATS_NEW . ' ' . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= HEAD_TITLE_TAG_WHATS_NEW; } } else { $tags_array['title']= HEAD_TITLE_TAG_ALL; } break; // SPECIALS.PHP case ( strstr($_SERVER['PHP_SELF'],FILENAME_SPECIALS) or strstr($PHP_SELF,FILENAME_SPECIALS) ): if ( HEAD_DESC_TAG_SPECIALS!='' ) { if ( HTDA_SPECIALS_ON=='1' ) { $tags_array['desc']= HEAD_DESC_TAG_SPECIALS . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= HEAD_DESC_TAG_SPECIALS; } } else { $tags_array['desc']= HEAD_DESC_TAG_ALL; } if ( HEAD_KEY_TAG_SPECIALS=='' ) { // Build a list of ALL specials product names to put in keywords $new = tep_db_query("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and s.status = '1' order by s.specials_date_added DESC "); $row = 0; $the_specials=''; while ($new_values = tep_db_fetch_array($new)) { $the_specials .= clean_html_comments($new_values['products_name']) . ', '; } if ( HTKA_SPECIALS_ON=='1' ) { $tags_array['keywords']= $the_specials . ' ' . HEAD_KEY_TAG_ALL; } else { $tags_array['keywords']= $the_specials; } } else { $tags_array['keywords']= HEAD_KEY_TAG_SPECIALS . ' ' . HEAD_KEY_TAG_ALL; } if ( HEAD_TITLE_TAG_SPECIALS!='' ) { if ( HTTA_SPECIALS_ON=='1' ) { $tags_array['title']= HEAD_TITLE_TAG_SPECIALS . ' ' . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= HEAD_TITLE_TAG_SPECIALS; } } else { $tags_array['title']= HEAD_TITLE_TAG_ALL; } break; // PRODUCTS_REVIEWS_INFO.PHP and PRODUCTS_REVIEWS.PHP case((basename($PHP_SELF)==FILENAME_PRODUCT_REVIEWS) or (basename($PHP_SELF)==FILENAME_PRODUCT_REVIEWS_INFO)): if ( HEAD_DESC_TAG_PRODUCT_REVIEWS_INFO=='' ) { if ( HTDA_PRODUCT_REVIEWS_INFO_ON=='1' ) { $tags_array['desc']= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['desc']= HEAD_DESC_TAG_PRODUCT_REVIEWS_INFO; } if ( HEAD_KEY_TAG_PRODUCT_REVIEWS_INFO=='' ) { if ( HTKA_PRODUCT_REVIEWS_INFO_ON=='1' ) { $tags_array['keywords']= tep_get_header_tag_products_keywords($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_KEY_TAG_ALL; } else { $tags_array['keywords']= tep_get_header_tag_products_keywords($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['keywords']= HEAD_KEY_TAG_PRODUCT_REVIEWS_INFO; } if ( HEAD_TITLE_TAG_PRODUCT_REVIEWS_INFO=='' ) { if ( HTTA_PRODUCT_REVIEWS_INFO_ON=='1' ) { $tags_array['title']= ' Reviews: ' . tep_get_header_tag_products_title($HTTP_GET_VARS['reviews_id']) . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= tep_get_header_tag_products_title($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['title']= HEAD_TITLE_TAG_PRODUCT_REVIEWS_INFO; } break; // PRODUCTS_REVIEWS_WRITE.PHP case((basename($PHP_SELF)==FILENAME_PRODUCT_REVIEWS_WRITE)): if ( HEAD_DESC_TAG_PRODUCT_REVIEWS_WRITE=='' ) { if ( HTDA_PRODUCT_REVIEWS_WRITE_ON=='1' ) { $tags_array['desc']= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['desc']= HEAD_DESC_TAG_PRODUCT_REVIEWS_WRITE; } if ( HEAD_KEY_TAG_PRODUCT_REVIEWS_WRITE=='' ) { if ( HTKA_PRODUCT_REVIEWS_WRITE_ON=='1' ) { $tags_array['keywords']= tep_get_header_tag_products_keywords($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_KEY_TAG_ALL; } else { $tags_array['keywords']= tep_get_header_tag_products_keywords($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['keywords']= HEAD_KEY_TAG_PRODUCT_REVIEWS_WRITE; } if ( HEAD_TITLE_TAG_PRODUCT_REVIEWS_WRITE=='' ) { if ( HTTA_PRODUCT_REVIEWS_WRITE_ON=='1' ) { $tags_array['title']= ' Reviews: ' . tep_get_header_tag_products_title($HTTP_GET_VARS['reviews_id']) . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= tep_get_header_tag_products_title($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['title']= HEAD_TITLE_TAG_PRODUCT_REVIEWS_WRITE; } break; // about_us.PHP - was default.php case (strstr($_SERVER['PHP_SELF'],FILENAME_ABOUT_US) or strstr($PHP_SELF, FILENAME_ABOUT_US) ): $tags_array = tep_header_tag_page(HTTA_ABOUTUS_ON, HEAD_TITLE_TAG_ABOUTUS, HTDA_ABOUTUS_ON, HEAD_DESC_TAG_ABOUTUS, HTKA_ABOUTUS_ON, HEAD_KEY_TAG_ABOUTUS ); break; // ALL OTHER PAGES NOT DEFINED ABOVE default: // ALLPRODS.PHP case (strstr($_SERVER['PHP_SELF'],FILENAME_ALLPRODS) or strstr($PHP_SELF,FILENAME_ALLPRODS) ): $the_category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'"); $the_category = tep_db_fetch_array($the_category_query); $the_manufacturers_query= tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "'"); $the_manufacturers = tep_db_fetch_array($the_manufacturers_query); if (HTDA_ALLPRODS_ON=='1') { $tags_array['desc']= HEAD_DESC_TAG_ALLPRODS . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= HEAD_DESC_TAG_ALLPRODS; } if (HTKA_ALLPRODS_ON=='1') { $tags_array['keywords']= HEAD_KEY_TAG_ALL . ' ' . HEAD_KEY_TAG_ALLPRODS; } else { $tags_array['keywords']= HEAD_KEY_TAG_ALLPRODS; } if (HTTA_ALLPRODS_ON=='1') { $tags_array['title']= HEAD_TITLE_TAG_ALLPRODS . ' ' . HEAD_TITLE_TAG_ALL . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name']; } else { $tags_array['title']= HEAD_TITLE_TAG_ALLPRODS; } break; $tags_array['desc'] = HEAD_DESC_TAG_ALL; $tags_array['keywords'] = HEAD_KEY_TAG_ALL; $tags_array['title'] = HEAD_TITLE_TAG_ALL; break; } echo ' <title>' . $tags_array['title'] . '</title>' . "\n"; echo ' <meta name=”TITLE” content=”' . $tags_array['title'] . '"></title>' . "\n"; echo ' <meta name="Description" content="' . $tags_array['desc'] . '">' . "\n"; echo ' <meta name="Keywords" content="' . $tags_array['keywords'] . '">' . "\n"; echo ' <meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '">'."\n";?> <!-- NEW CODE --> <link rel="canonical" href="<?php CanonicalUrl(); ?>"> <meta name=”REVISIT-AFTER” content=”7 Days” /> <meta name=”AUDIENCE” content=”all” /> <meta name=”LANGUAGE” content=”pt-BR” /> <meta name=”DISTRIBUTION” content=”Global” /> <meta name=”ROBOTS” content=”index,follow” /> <!-- Código para Google Authorship e Publisher --> <!--change 110426154172147356046 to your profile--> <link rel=”author” href=”https://plus.google.com/11042615573490573409046/posts“/> <link rel=”publisher” href=”https://plus.google.com/110573485738147356046/“/> <!-- Código do Schema.org também para o Google+ --> <meta itemprop=”name” content=”<?php echo $tags_array['title']; ?>“> <meta itemprop=”description” content=”<? echo $tags_array['desc']; ?>“> <meta itemprop=”image” content=” ######### HOW TO ADD THE IMAGE URL OF THE ACTUAL PRODUCT_INFO“> <meta property="og:title" content="<?php echo $tags_array['title']; ?>"> <meta property="og:image" content=" ######### HOW TO ADD THE IMAGE URL OF THE ACTUAL PRODUCT_INFO?"> <meta property="og:description" content="<? echo $tags_array['desc']; ?>"> <!-- Social: Twitter --> <meta name="twitter:card" content="######### HOW TO ADD THE IMAGE URL OF THE ACTUAL PRODUCT_INFO"> <meta name="twitter:site" content="@apopular"> <meta name="twitter:creator" content="Apopular"> <meta name="twitter:title" content="<?php echo $tags_array['title']; ?>"> <meta name="twitter:description" content="<? echo $tags_array['desc']; ?>"> <meta name="twitter:image:src" content="https://www.apopular.com.br/images/apopular.png"> <!-- Social: Facebook / Open Graph --> <meta property="fb:admins" content="105475342809" /> <meta property="fb:app_id" content="13857238409573298088"> <meta property="og:url" content="<?php CanonicalUrl(); ?>"> <meta property="og:type" content="website"> <meta property="og:site_name" content="Apopular"> <meta property="article:author" content="https://www.facebook.com/xxxxxxxxxxxxxxxxx"> <meta property="article:publisher" content="https://www.facebook.com/xxxxxxxxxxxxxxxxx"> <!-- bing site verification --> <meta name="msvalidate.01" content="EBF33DFFD6D0xxxxxxxxxxxxxx"> <!-- google analitic --> <script type="text/javascript"> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-xxxxxxxx-1', 'auto'); ga('send', 'pageview'); </script> <!-- Google end --> The new part code <!-- NEW CODE --> <link rel="canonical" href="<?php CanonicalUrl(); ?>"> <meta name=”REVISIT-AFTER” content=”7 Days” /> <meta name=”AUDIENCE” content=”all” /> <meta name=”LANGUAGE” content=”pt-BR” /> <meta name=”DISTRIBUTION” content=”Global” /> <meta name=”ROBOTS” content=”index,follow” /> <!-- Código para Google Authorship e Publisher --> <!--change 110426154172147356046 to your profile--> <link rel=”author” href=”https://plus.google.com/11042615573490573409046/posts“/> <link rel=”publisher” href=”https://plus.google.com/110573485738147356046/“/> <!-- Código do Schema.org também para o Google+ --> <meta itemprop=”name” content=”<?php echo $tags_array['title']; ?>“> <meta itemprop=”description” content=”<? echo $tags_array['desc']; ?>“> <meta itemprop=”image” content=” ######### HOW TO ADD THE IMAGE URL OF THE ACTUAL PRODUCT_INFO“> <meta property="og:title" content="<?php echo $tags_array['title']; ?>"> <meta property="og:image" content=" ######### HOW TO ADD THE IMAGE URL OF THE ACTUAL PRODUCT_INFO?"> <meta property="og:description" content="<? echo $tags_array['desc']; ?>"> <!-- Social: Twitter --> <meta name="twitter:card" content="######### HOW TO ADD THE IMAGE URL OF THE ACTUAL PRODUCT_INFO"> <meta name="twitter:site" content="@apopular"> <meta name="twitter:creator" content="Apopular"> <meta name="twitter:title" content="<?php echo $tags_array['title']; ?>"> <meta name="twitter:description" content="<? echo $tags_array['desc']; ?>"> <meta name="twitter:image:src" content="https://www.apopular.com.br/images/apopular.png"> <!-- Social: Facebook / Open Graph --> <meta property="fb:admins" content="105475342809" /> <meta property="fb:app_id" content="13857238409573298088"> <meta property="og:url" content="<?php CanonicalUrl(); ?>"> <meta property="og:type" content="website"> <meta property="og:site_name" content="Apopular"> <meta property="article:author" content="https://www.facebook.com/xxxxxxxxxxxxxxxxx"> <meta property="article:publisher" content="https://www.facebook.com/xxxxxxxxxxxxxxxxx"> <!-- bing site verification --> <meta name="msvalidate.01" content="EBF33DFFD6D0xxxxxxxxxxxxxx"> <!-- google analitic --> <script type="text/javascript"> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-xxxxxxxx-1', 'auto'); ga('send', 'pageview'); </script> <!-- Google end --> Anybody can hel-me ? How to add the url image in product-info page? change: All <meta name="twitter:card" content="######### HOW TO ADD THE IMAGE URL OF THE ACTUAL PRODUCT_INFO"> to image url thank you to help and your time, good week Marcelo Brazil I did, helped or traslate. http://addons.oscommerce.com/profile/104964 My english it´s só poor, but of you need help in portuguese, like shipping and payment that´s make a diference in brazil, come one, Obrigado (thank´s)
Jack_mcs Posted May 18, 2015 Posted May 18, 2015 That's a file, at least in part. of the Header Tags Controller addon, which I stopped support for about eight years ago. I suggest upgrading to Header Tags SEO. It has its own social tags code so you shouldn't need to try to add them as you are. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
apopular Posted May 18, 2015 Author Posted May 18, 2015 hi jack i have in my osc 2.3.3 www.loja2online.com.br but this file i use in osc 2.2 www.apopular.com.br, can you help me to find the tag to image? I did, helped or traslate. http://addons.oscommerce.com/profile/104964 My english it´s só poor, but of you need help in portuguese, like shipping and payment that´s make a diference in brazil, come one, Obrigado (thank´s)
Jack_mcs Posted May 18, 2015 Posted May 18, 2015 You can use the code, or part of it at least, that is in either the includes/modules/header_tags_opengraph.php or includes/modules/header_tags_social_bookmarks.php file from Header Tags SEO. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
apopular Posted June 10, 2015 Author Posted June 10, 2015 @@Jack_mcs o tried but i can't cal the image in this url, i dont know why, i can see the url in product_info, when i put the same code in footer.php, but when i added the same code in header_tags doesn´t show I did, helped or traslate. http://addons.oscommerce.com/profile/104964 My english it´s só poor, but of you need help in portuguese, like shipping and payment that´s make a diference in brazil, come one, Obrigado (thank´s)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.