If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / manufacturers meta-tags(keywords and title and description)

manufacturers meta-tags(keywords and title and description)

Started by danilovig on 5 Jun 2009, 4:04 PM · Views: 15,212

Results 41 to 55 of 55
14 Apr 2016, 1:49 PM
#41
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

manufacturers meta-tags(keywords and title and description)

@delia, it's actually more of a problem for the site itself if DB_CHARSET isn't defined. Thanks for identifying that this can occur, but right now I'm not planning any action for the plugin.

14 Apr 2016, 2:26 PM
#42
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: manufacturers meta-tags(keywords and title and description)

Most plugins define the char set as utf8 nowadays. This isn't about what's best for the site but about getting it to install without issue. Having to edit files and manually find and install the sql is doable but a pain in the neck for me. Average site owner will just freak.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

14 Apr 2016, 3:19 PM
#43
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: manufacturers meta-tags(keywords and title and description)

@delia, that's where the zc_install script's addition of the "Update Configuration Files" (or some similar wording) comes into play. No need to hand-edit the file, just run the upgrade script, but there are many things that can go very wrong in a store that's forcing a ***utf8 ***table into a ***latin1 ***store.

10 Mar 2017, 8:32 AM
#44
this_side_up avatar

this_side_up

New Zenner

Join Date:
Nov 2006
Posts:
57
Plugin Contributions:
0

Re: manufacturers meta-tags(keywords and title and description)

lat9:

The only other thing you could do is to determine what Simple SEO URLs is doing to the title tag (possibly some configuration switch that controls your html_header.php file's operation?) and change the behavior there.

Hello, I have the same issue with the missing meta info between the tags. I'm not able to find the problem. I used to have this seo module but have uninstalled it a while back. Everything installed ok, no problems zen v1.5.1. Any ideas on where should look in the core or overide files to see if possibly some other mod is to blame? Thank you

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="" />
10 Mar 2017, 2:06 PM
#45
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: manufacturers meta-tags(keywords and title and description)

@this side up, it sounds like there might be "remnants" of the Simple SEO URLs in your store's file-system.

11 Mar 2017, 8:19 AM
#46
this_side_up avatar

this_side_up

New Zenner

Join Date:
Nov 2006
Posts:
57
Plugin Contributions:
0

Re: manufacturers meta-tags(keywords and title and description)

lat9:

@this side up, it sounds like there might be "remnants" of the Simple SEO URLs in your store's file-system.

Thank you. I'll have a look again at those ssu files (been through them a few times already and did not find anything). I suspect that it is to blame but cant find the problem. Hopefully something turns up.

29 Oct 2025, 8:18 PM
#47
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: manufacturers meta-tags(keywords and title and description)

... and a decade later, v3.0.0 of the "Manufacturers Metatags" is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=932

Converted to an encapsulated plugin supporting zc210+; requires a notification to be added to admin/manufacturers.php for Zen Cart versions prior to 2.2.0.

30 Oct 2025, 4:48 PM
#48
yesaul avatar

yesaul

New Zenner

Join Date:
Apr 2011
Location:
Espoo, Finland
Posts:
73
Plugin Contributions:
0

Re: manufacturers meta-tags(keywords and title and description)

File auto.manufacturers_metatags.php :

    public function notify_module_start_meta_tags(&$class, string $e, string $current_page_base, string &$meta_tag_page_name, bool &$meta_tags_over_ride): void
    {

...

  $this->manufacturersName = $name->fields['manufacturers_name'];

        $meta_tag_page_name = 'index_manufacturers';
        $this->attach($this, [
            'NOTIFY_MODULE_META_TAGS_UNSPECIFIEDPAGE',
        ]);
    }

    public function notify_module_meta_tags_unspecifiedpage(&$class, string $e, $unused, string $metatag_page_name, bool &$meta_tags_over_ride, string &$metatags_title, string &$metatags_description, string &$metatags_keywords): void
    {
        $metatags_title = ($this->metaTags['metatags_title'] === '') ? $this->manufacturers_name : $this->metaTags['metatags_title'];
        zen_define_default('META_TAG_TITLE', str_replace(["'", '"'], '', strip_tags($metatags_title . PRIMARY_SECTION . TITLE . TAGLINE)));

        $metatags_keywords = ($this->metaTags['metatags_keywords'] === '') ? $this->manufacturers_name . METATAGS_DIVIDER . KEYWORDS : $this->metaTags['metatags_keywords'];
        zen_define_default('META_TAG_KEYWORDS', str_replace(["'", '"'], '', strip_tags($metatags_keywords)));

        $metatags_description = ($this->metaTags['metatags_description'] === '') ? $this->manufacturers_name . SECONDARY_SECTION . KEYWORDS : $this->metaTags['metatags_description'];
        zen_define_default('META_TAG_DESCRIPTION', str_replace(["'", '"'], '', strip_tags(TITLE . PRIMARY_SECTION . $metatags_description)));
    }
}
31 Oct 2025, 9:24 AM
#49
yesaul avatar

yesaul

New Zenner

Join Date:
Apr 2011
Location:
Espoo, Finland
Posts:
73
Plugin Contributions:
0

Re: manufacturers meta-tags(keywords and title and description)

File auto.manufacturers_metatags_admin.php:

<?php
// -----
// Part of the Manufacturers Metatags plugin by lat9 ([email protected]).
// Copyright (C) 2025, Vinos de Frutas Tropicales
//
// Last updated: v3.0.0
//
use Zencart\Plugins\Catalog\ManufacturersMetatags\ManufacturersMetatags;

class zcObserverManufacturersMetatagsAdmin extends \base
{
    public function __construct()
    {
        $this->attach($this, [
            'NOTIFY_ADMIN_MANUFACTURERS_INSERT_UPDATE_COMPLETE',    //- Note: [B]Added in zc220[/B]
            'NOTIFY_ADMIN_MANUFACTURERS_NEW',
            'NOTIFY_ADMIN_MANUFACTURERS_EDIT',
        ]);
    }
...

No such notifier in current v 210...

NOTIFY_ADMIN_MANUFACTURERS_INSERT_UPDATE could be used (adding to $sql_data_array) ??

31 Oct 2025, 9:39 AM
#50
yesaul avatar

yesaul

New Zenner

Join Date:
Apr 2011
Location:
Espoo, Finland
Posts:
73
Plugin Contributions:
0

Re: manufacturers meta-tags(keywords and title and description)

NOTIFY_ADMIN_MANUFACTURERS_INSERT_UPDATE could be used (adding to $sql_data_array) ??
Bad idea, sorry (data in TABLE_MANUFACTURERS_INFO for different languages must be written)

31 Oct 2025, 1:13 PM
#51
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: manufacturers meta-tags(keywords and title and description)

yesaul:

File auto.manufacturers_metatags.php :

public function notify_module_start_meta_tags(&$class, string $e, string $current_page_base, string &$meta_tag_page_name, bool &$meta_tags_over_ride): void
{

...

$this->manufacturersName = $name->fields['manufacturers_name'];

    $meta_tag_page_name = 'index_manufacturers';
    $this->attach($this, [
        'NOTIFY_MODULE_META_TAGS_UNSPECIFIEDPAGE',
    ]);
}

public function notify_module_meta_tags_unspecifiedpage(&$class, string $e, $unused, string $metatag_page_name, bool &$meta_tags_over_ride, string &$metatags_title, string &$metatags_description, string &$metatags_keywords): void
{
    $metatags_title = ($this->metaTags['metatags_title'] === '') ? $this->manufacturers_name : $this->metaTags['metatags_title'];
    zen_define_default('META_TAG_TITLE', str_replace(["'", '"'], '', strip_tags($metatags_title . PRIMARY_SECTION . TITLE . TAGLINE)));

    $metatags_keywords = ($this->metaTags['metatags_keywords'] === '') ? $this->manufacturers_name . METATAGS_DIVIDER . KEYWORDS : $this->metaTags['metatags_keywords'];
    zen_define_default('META_TAG_KEYWORDS', str_replace(["'", '"'], '', strip_tags($metatags_keywords)));

    $metatags_description = ($this->metaTags['metatags_description'] === '') ? $this->manufacturers_name . SECONDARY_SECTION . KEYWORDS : $this->metaTags['metatags_description'];
    zen_define_default('META_TAG_DESCRIPTION', str_replace(["'", '"'], '', strip_tags(TITLE . PRIMARY_SECTION . $metatags_description)));
}

}


Yep, the manufacturers_name should be replaced by manufacturersName.
31 Oct 2025, 1:15 PM
#52
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: manufacturers meta-tags(keywords and title and description)

yesaul:

File auto.manufacturers_metatags_admin.php:

<?php // ----- // Part of the Manufacturers Metatags plugin by lat9 ([email protected]). // Copyright (C) 2025, Vinos de Frutas Tropicales // // Last updated: v3.0.0 // use Zencart\Plugins\Catalog\ManufacturersMetatags\ManufacturersMetatags; class zcObserverManufacturersMetatagsAdmin extends \base { public function __construct() { $this->attach($this, [ 'NOTIFY_ADMIN_MANUFACTURERS_INSERT_UPDATE_COMPLETE', //- Note: [B]Added in zc220[/B] 'NOTIFY_ADMIN_MANUFACTURERS_NEW', 'NOTIFY_ADMIN_MANUFACTURERS_EDIT', ]); } ... ``` > > No such notifier in current v 210... > > NOTIFY_ADMIN_MANUFACTURERS_INSERT_UPDATE could be used (adding to $sql_data_array) ?? Like that comment indicates, the notification was added for the upcoming zc220. See also the readme: <https://htmlpreview.github.io/?https://github.com/lat9/manufacturers_metatags/blob/master/readme.html> That notification needs to be added to the admin's manufacturers.php.
31 Oct 2025, 1:42 PM
#53
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: manufacturers meta-tags(keywords and title and description)

Is this plugin not something that should be in the core/is it not of general use?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

31 Oct 2025, 2:09 PM
#54
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: manufacturers meta-tags(keywords and title and description)

torvista:

Is this plugin not something that should be in the core/is it not of general use?

I dunno; submit a change request to the zen-cart GitHub to gauge interest.

1 Nov 2025, 1:25 PM
#55
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: manufacturers meta-tags(keywords and title and description)

v3.0.1 of the plugin is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=932

This release corrects these GitHub issues:

#9: Correct storefront language loading
#8: Correct misspelling of variable name