-
Zen Cart Product Tags (and Tag Cloud): Support Thread
Coming soon! I'm wrapping up the distribution for the Zen Cart Product's "Tag Cloud" plugin.
This plugin, like its WordPress equivalent, enables your store to display a "Tag Cloud" sidebox through which your customers can search for your products using their defined "tags".
The admin-level handling uses a bit of AJAX to allow you to easily define those tags. The plugin requires a couple of admin-level core-file edits, for Zen Cart 1.5.6 and later, to add notifications that are already "baked into" Zen Cart 1.5.7 and later to enable those definitions.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
I've just submitted v1.0.0 to the Zen Cart moderators for review; I'll post back here when it's available for download (https://www.zen-cart.com/downloads.php?do=file&id=2262).
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
lat9
Now available for download.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Hello. I have just installed the plugin. It's hard to say why at the moment but it seems to get negatively affected the site's "search by keyword" functionality. The feature doesn't work any longer, in fact it completely crashed. The advanced search gives you the following message: "WARNING: An Error occurred, please refresh the page and try again".http://ingars.org/
Here you can compare. http://ingars.000webhostapp.com/. There is no plugin installed
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
Ingar
Hello. I have just installed the plugin. It's hard to say why at the moment but it seems to get negatively affected the site's "search by keyword" functionality. The feature doesn't work any longer, in fact it completely crashed. The advanced search gives you the following message: "WARNING: An Error occurred, please refresh the page and try again".
http://ingars.org/
Here you can compare.
http://ingars.000webhostapp.com/. There is no plugin installed
FWIW, I just tried an "advanced search" with no warning on the ingars.org site. When you saw that error message, did you find an associated myDEBUG*.log file in the store's /logs sub-directory?
-
2 Attachment(s)
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Just experimenting looking for mouse.
Attachment 18770
But in fact there is a mouse on sale. See the other hoster
Attachment 18771
than you choose hardware + include subcategories checker and finally the warning message. I'll pull out the log.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
What version of Zen Cart is in use? Did that fluorspar template make any changes to the default /includes/modules/pages/advanced_search_result/header_php.php file?
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Here is the myDEBUG
Code:
[28-Dec-2019 14:55:53 UTC] Request URI: /index.php?main_page=advanced_search_result&keyword=IntelliMouse&search_in_description=1&categories_id=1&inc_subcat=1&manufacturers_id=&pfrom=&pto=&dfrom=&dto=, IP address:
#1 trigger_error() called at [/.../..../public_html/includes/classes/db/mysql/query_factory.php:171]
#2 queryFactory->show_error() called at [/...../....../public_html/includes/classes/db/mysql/query_factory.php:143]
#3 queryFactory->set_error() called at [/...../...../public_html/includes/classes/db/mysql/query_factory.php:270]
#4 queryFactory->Execute() called at [/....../....../public_html/includes/classes/split_page_results.php:78]
#5 splitPageResults->__construct() called at [/...../....../public_html/includes/modules/pages/advanced_search_result/header_php.php:476]
#6 require(/...../...../public_html/includes/modules/pages/advanced_search_result/header_php.php) called at [/....../....../public_html/index.php:36]
--> PHP Fatal error: 1305:FUNCTION .................17OR does not exist :: select count(distinct p.products_id) as total FROM (zen_products p LEFT JOIN zen_manufacturers m USING(manufacturers_id), zen_products_description pd, zen_categories c, zen_tags t, zen_products_to_categories p2c ) LEFT JOIN zen_meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 LEFT JOIN zen_tags_to_products t2p ON t2p.tag_mapping_id = p.products_id WHERE (p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND p2c.products_id = p.products_id AND p2c.products_id = pd.products_id AND (p2c.categories_id = 1 OR p2c.categories_id in ( 4, 5, 6, 7, 8, 9, 16, 17OR ( t.tag_id = t2p.tag_id AND t.languages_id = 1 AND t.tag_name LIKE '%intellimouse%') )) AND ((pd.products_name LIKE '%intellimouse%' OR p.products_model LIKE '%intellimouse%' OR m.manufacturers_name LIKE '%intellimouse%' OR (mtpd.metatags_keywords LIKE '%intellimouse%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%intellimouse%' AND mtpd.metatags_description !='') OR pd.products_description LIKE '%intellimouse%') OR ( t.tag_id = t2p.tag_id AND t.languages_id = 1 AND t.tag_name LIKE '%intellimouse%') )) ==> (as called by) /............/............../public_html/includes/classes/split_page_results.php on line 78 <== in /......../............./public_html/includes/classes/db/mysql/query_factory.php on line 171.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
lat9
What version of Zen Cart is in use? Did that fluorspar template make any changes to the default /includes/modules/pages/advanced_search_result/header_php.php file?
The v1.5.6c. I don't know. Will check it out.
-
1 Attachment(s)
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
No it appears the template does not have "advanced_search_result" folder at all.
Attachment 18773
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
Ingar
Here is the myDEBUG
Code:
[28-Dec-2019 14:55:53 UTC] Request URI: /index.php?main_page=advanced_search_result&keyword=IntelliMouse&search_in_description=1&categories_id=1&inc_subcat=1&manufacturers_id=&pfrom=&pto=&dfrom=&dto=, IP address:
#1 trigger_error() called at [/.../..../public_html/includes/classes/db/mysql/query_factory.php:171]
#2 queryFactory->show_error() called at [/...../....../public_html/includes/classes/db/mysql/query_factory.php:143]
#3 queryFactory->set_error() called at [/...../...../public_html/includes/classes/db/mysql/query_factory.php:270]
#4 queryFactory->Execute() called at [/....../....../public_html/includes/classes/split_page_results.php:78]
#5 splitPageResults->__construct() called at [/...../....../public_html/includes/modules/pages/advanced_search_result/header_php.php:476]
#6 require(/...../...../public_html/includes/modules/pages/advanced_search_result/header_php.php) called at [/....../....../public_html/index.php:36]
--> PHP Fatal error: 1305:FUNCTION .................17OR does not exist :: select count(distinct p.products_id) as total FROM (zen_products p LEFT JOIN zen_manufacturers m USING(manufacturers_id), zen_products_description pd, zen_categories c, zen_tags t, zen_products_to_categories p2c ) LEFT JOIN zen_meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 LEFT JOIN zen_tags_to_products t2p ON t2p.tag_mapping_id = p.products_id WHERE (p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND p2c.products_id = p.products_id AND p2c.products_id = pd.products_id AND (p2c.categories_id = 1 OR p2c.categories_id in ( 4, 5, 6, 7, 8, 9, 16, 17OR ( t.tag_id = t2p.tag_id AND t.languages_id = 1 AND t.tag_name LIKE '%intellimouse%') )) AND ((pd.products_name LIKE '%intellimouse%' OR p.products_model LIKE '%intellimouse%' OR m.manufacturers_name LIKE '%intellimouse%' OR (mtpd.metatags_keywords LIKE '%intellimouse%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%intellimouse%' AND mtpd.metatags_description !='') OR pd.products_description LIKE '%intellimouse%') OR ( t.tag_id = t2p.tag_id AND t.languages_id = 1 AND t.tag_name LIKE '%intellimouse%') )) ==> (as called by) /............/............../public_html/includes/classes/split_page_results.php on line 78 <== in /......../............./public_html/includes/classes/db/mysql/query_factory.php on line 171.
Thanks, that's a big help. I should have a correction available 'soon'.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
lat9
Thanks, that's a big help. I should have a correction available 'soon'.
... and 'soon' is now. I've created an issue on the plugin's GitHub to track the change. You can edit your copy of /includes/classes/observers/auto.zen_tags_search.php, replacing the following 'case' section to correct the issue:
Code:
case 'NOTIFY_SEARCH_WHERE_STRING':
global $keywords, $where_str;
if ($this->tID !== false) {
$p2c_str = 'p2c.categories_id = c.categories_id';
$p2c_pos = strpos($where_str, $p2c_str);
$GLOBALS['where_str'] = substr($GLOBALS['where_str'], 0, $p2c_pos + strlen($p2c_str)) . " AND t2p.tag_id = {$this->tID} )";
} else {
if (!empty($GLOBALS['keywords']) && isset($_GET['keyword']) && zen_parse_search_string(stripslashes($_GET['keyword']), $search_keywords)) {
$tags_where = 'AND ((t.tag_id = t2p.tag_id AND (';
foreach ($search_keywords as $current_keyword) {
switch ($current_keyword) {
case '(':
case ')':
case 'and':
case 'or':
$tags_where .= " $current_keyword ";
break;
default:
$tags_where .= "t.tag_name LIKE '%:keywords%'";
$tags_where = $GLOBALS['db']->bindVars($tags_where, ':keywords', $current_keyword, 'noquotestring');
break;
}
}
$GLOBALS['where_str'] = str_replace('AND ((', $tags_where . ')) OR (', $GLOBALS['where_str']);
}
}
break;
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Hi there. Yep this time I got no warning but still there is no "mouse" on the site neither the "pakkard" I am afraid, while on the other these items are on the search results list.
-
1 Attachment(s)
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
No while you search mouse in mice there is no warning and no mouse, Attachment 18775
but when you try to search it in hardware you receive the warning :laugh: Funny
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Here is the whole file edited. I guess might have made a mistake somewhere:
Code:
<?php
// -----
// Part of the "Zen Tags" plugin for Zen Cart v1.5.6 (and later)
// Copyright (C) 2018-2019, Vinos de Frutas Tropicales (lat9)
// @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
//
class zcObserverZenTagsSearch extends base
{
public function __construct()
{
if (defined('ZEN_TAGS_ENABLE') && ZEN_TAGS_ENABLE == 'true') {
$this->tID = (isset($_GET['tID']) && ((int)$_GET['tID']) > 0) ? ((int)$_GET['tID']) : false;
$this->order_by = '';
$this->search_tags = (defined('ZEN_TAGS_SEARCH_ALWAYS') && ZEN_TAGS_SEARCH_ALWAYS == 'true');
if ($this->tID !== false || $this->search_tags) {
$this->attach(
$this,
array(
'NOTIFY_SEARCH_ORDERBY_STRING',
'NOTIFY_SEARCH_FROM_STRING',
'NOTIFY_SEARCH_WHERE_STRING',
'NOTIFY_SEARCH_SELECT_STRING'
)
);
}
}
}
public function update(&$class, $eventID)
{
switch ($eventID) {
case 'NOTIFY_SEARCH_SELECT_STRING':
break;
// -----
//
case 'NOTIFY_SEARCH_FROM_STRING':
if ($this->tID === false) {
$GLOBALS['from_str'] = $this->insertAfter($GLOBALS['from_str'], ' c,', ' ' . TABLE_TAGS . ' t, ');
}
$GLOBALS['from_str'] .= PHP_EOL . "LEFT JOIN " . TABLE_TAGS_TO_PRODUCTS . ' t2p ON t2p.tag_mapping_id = p.products_id ';
break;
case 'NOTIFY_SEARCH_WHERE_STRING':
global $keywords, $where_str;
if ($this->tID !== false) {
$p2c_str = 'p2c.categories_id = c.categories_id';
$p2c_pos = strpos($where_str, $p2c_str);
$GLOBALS['where_str'] = substr($GLOBALS['where_str'], 0, $p2c_pos + strlen($p2c_str)) . " AND t2p.tag_id = {$this->tID} )";
} else {
if (!empty($GLOBALS['keywords']) && isset($_GET['keyword']) && zen_parse_search_string(stripslashes($_GET['keyword']), $search_keywords)) {
$tags_where = 'AND ((t.tag_id = t2p.tag_id AND (';
foreach ($search_keywords as $current_keyword) {
switch ($current_keyword) {
case '(':
case ')':
case 'and':
case 'or':
$tags_where .= " $current_keyword ";
break;
default:
$tags_where .= "t.tag_name LIKE '%:keywords%'";
$tags_where = $GLOBALS['db']->bindVars($tags_where, ':keywords', $current_keyword, 'noquotestring');
break;
}
}
$GLOBALS['where_str'] = str_replace('AND ((', $tags_where . ')) OR (', $GLOBALS['where_str']);
}
}
break;
case 'NOTIFY_SEARCH_ORDERBY_STRING':
// -----
// If this search was initiated by the "Tag Cloud" sidebox, the search is modified to search **only**
// for products matching the submitted 'tag-id'. Modify the 'keywords', displayed on the advanced_search_results
// page to indicate that the search was for the tag-name submitted.
//
if ($this->tID !== false) {
$GLOBALS['keywords'] = sprintf(ZEN_TAG_SEARCH_IS_TAG, (string)$_GET['keyword']);
}
$GLOBALS['listing_sql'] = str_ireplace('order by', 'order by' . $this->order_by, $GLOBALS['listing_sql']);
break;
default:
break;
}
}
protected function insertAfter($the_string, $insert_after, $insert_string)
{
$insert_pos = strpos($the_string, $insert_after);
if ($insert_pos === false) {
trigger_error("Missing 'anchor' string ($insert_after) from 'base' string ($the_string); the search does not include any tags.", E_USER_WARNING);
} else {
$the_string = substr_replace($the_string, $insert_string, $insert_pos + strlen($insert_after), 0);
}
return $the_string;
}
}
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Yep, you dropped a couple of bits. Try this instead:
Code:
<?php
// -----
// Part of the "Zen Tags" plugin for Zen Cart v1.5.6 (and later)
// Copyright (C) 2018-2019, Vinos de Frutas Tropicales (lat9)
// @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
//
class zcObserverZenTagsSearch extends base
{
public function __construct()
{
if (defined('ZEN_TAGS_ENABLE') && ZEN_TAGS_ENABLE == 'true') {
$this->tID = (isset($_GET['tID']) && ((int)$_GET['tID']) > 0) ? ((int)$_GET['tID']) : false;
$this->order_by = '';
if ($this->tID !== false || (defined('ZEN_TAGS_SEARCH_ALWAYS') && ZEN_TAGS_SEARCH_ALWAYS == 'true')) {
$this->attach(
$this,
array(
'NOTIFY_SEARCH_ORDERBY_STRING',
'NOTIFY_SEARCH_FROM_STRING',
'NOTIFY_SEARCH_WHERE_STRING',
'NOTIFY_SEARCH_SELECT_STRING'
)
);
}
}
}
public function update(&$class, $eventID)
{
switch ($eventID) {
case 'NOTIFY_SEARCH_SELECT_STRING':
if (!empty($GLOBALS['keywords']) && !empty($_GET['keyword']) && zen_parse_search_string(stripslashes($_GET['keyword']), $search_keywords)) {
$in_tag_select = '';
foreach ($search_keywords as $current_keyword) {
switch ($current_keyword) {
case '(':
case ')':
case 'and':
case 'or': //- Fall-through from above ...
$in_tag_select .= " $current_keyword ";
break;
default:
$in_tag_select .= "t.tag_name LIKE '%:keywords%'";
$in_tag_select = $GLOBALS['db']->bindVars($in_tag_select, ':keywords', $current_keyword, 'noquotestring');
break;
}
}
$GLOBALS['select_str'] .= ", IF (t2p.tag_mapping_id = p.products_id and t2p.tag_id = t.tag_id AND ($in_tag_select), 1, 0) AS in_tag ";
$this->order_by = ' in_tag DESC,';
}
break;
case 'NOTIFY_SEARCH_FROM_STRING':
$GLOBALS['from_str'] = $this->insertAfter($GLOBALS['from_str'], ' c,', ' ' . TABLE_TAGS . ' t, ');
$GLOBALS['from_str'] .= PHP_EOL . "LEFT JOIN " . TABLE_TAGS_TO_PRODUCTS . ' t2p ON t2p.tag_mapping_id = p.products_id ';
break;
case 'NOTIFY_SEARCH_WHERE_STRING':
global $keywords, $where_str;
if ($this->tID !== false) {
$p2c_str = 'p2c.categories_id = c.categories_id';
$p2c_pos = strpos($where_str, $p2c_str);
$GLOBALS['where_str'] = substr($GLOBALS['where_str'], 0, $p2c_pos + strlen($p2c_str)) . " AND t2p.tag_id = {$this->tID} )";
} else {
if (!empty($GLOBALS['keywords']) && isset($_GET['keyword']) && zen_parse_search_string(stripslashes($_GET['keyword']), $search_keywords)) {
$tags_where = 'AND ((t.tag_id = t2p.tag_id AND (';
foreach ($search_keywords as $current_keyword) {
switch ($current_keyword) {
case '(':
case ')':
case 'and':
case 'or':
$tags_where .= " $current_keyword ";
break;
default:
$tags_where .= "t.tag_name LIKE '%:keywords%'";
$tags_where = $GLOBALS['db']->bindVars($tags_where, ':keywords', $current_keyword, 'noquotestring');
break;
}
}
$GLOBALS['where_str'] = str_replace('AND ((', $tags_where . ')) OR (', $GLOBALS['where_str']);
}
}
break;
case 'NOTIFY_SEARCH_ORDERBY_STRING':
if ($this->tID !== false) {
$GLOBALS['keywords'] = "tag ({$GLOBALS['keywords']})";
}
$GLOBALS['listing_sql'] = str_ireplace('order by', 'order by' . $this->order_by, $GLOBALS['listing_sql']);
break;
default:
break;
}
}
protected function insertAfter($the_string, $insert_after, $insert_string)
{
$insert_pos = strpos($the_string, $insert_after);
if ($insert_pos === false) {
trigger_error("Missing 'anchor' string ($insert_after) from 'base' string ($the_string); the search does not include any tags.", E_USER_WARNING);
} else {
$the_string = substr_replace($the_string, $insert_string, $insert_pos + strlen($insert_after), 0);
}
return $the_string;
}
}
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
No, unfortunately "There is no product that matches the search criteria" as yet.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
@Ingar, please check your Private Messages (PMs).
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Thanks to @Ingar for access to his site so that I could "see" what was going on. I've just submitted v1.0.1 of the plugin to the Zen Cart moderators for review and will post back here when it's available for download.
This release contains changes associated with the following GitHub issues:
#5: Advanced Search: Correct MySQL error when sub-categories included.
#6: Advanced Search: Correct "no search results returned" when no tags are defined.
#7: Don't display Tag Cloud sidebox if no tags are defined.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Thank you @lat9 Everything works as it supposed to. Great contribution!
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
lat9
Thanks to @Ingar for access to his site so that I could "see" what was going on. I've just submitted v1.0.1 of the plugin to the Zen Cart moderators for review and will post back here when it's available for download.
This release contains changes associated with the following GitHub issues:
#5: Advanced Search: Correct MySQL error when sub-categories included.
#6: Advanced Search: Correct "no search results returned" when no tags are defined.
#7: Don't display Tag Cloud sidebox if no tags are defined.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2262
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Hello there,
Thanks for making this module! I just wondred, when using DBio importer, is there a way to import tags that are phrases of two words or more? I can set them in admin but it doesn't seem to like them (which makes sense). Wasn't sure if there was a symbol that would act as a space? Thanks in advance.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
HeathenMagic
Hello there,
Thanks for making this module! I just wondred, when using DBio importer, is there a way to import tags that are phrases of two words or more? I can set them in admin but it doesn't seem to like them (which makes sense). Wasn't sure if there was a symbol that would act as a space? Thanks in advance.
FWIW, I normally use a hyphen (-) to make kinda-sorta-not-exactly phrases (like the in-core tag on my website).
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
lat9
FWIW, I normally use a hyphen (-) to make kinda-sorta-not-exactly phrases (like the in-core tag on my website).
Thanks for that. I did think of a hyphen but wasn't sure if it would mess with the SEO or the module functionality. Though I title most images like this, so think hyphens must be okay.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Cindy how would I get the tags related to a product to display below actual product?
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
Nick1973
Cindy how would I get the tags related to a product to display below actual product?
Good idea, Nick. I've created a GitHub issue (https://github.com/lat9/ZenTags/issues/8) to track this change request.
I'm assuming that your request is for inclusion on a product's details (e.g. product_info) page.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
lat9
Good idea, Nick. I've created a GitHub issue (
https://github.com/lat9/ZenTags/issues/8) to track this change request.
I'm
assuming that your request is for inclusion on a product's details (e.g. product_info) page.
Yes on the product info page. The idea being that google will come along and pick up the associated keywords and then rank each product in the associated searches when someone searches on a specific term.
Here's another one for you. On the advanced search result page after you click on a tag it just says Advanced Search Result in the H1 tag.
It might be good to include the keyword term in the Advanced Search Result H1 tag. So you would have
HTML Code:
<h1>Advanced Search Result - My Keyword Term from the Tag Cloud</h1>
I am also wondering if it would be beneficial to include these pages associated with the tag cloud in the website XML Sitemap with the Sitemap XML module.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
Nick1973
Yes on the product info page. The idea being that google will come along and pick up the associated keywords and then rank each product in the associated searches when someone searches on a specific term.
Here's another one for you. On the advanced search result page after you click on a tag it just says Advanced Search Result in the H1 tag.
It might be good to include the keyword term in the Advanced Search Result H1 tag. So you would have
HTML Code:
<h1>Advanced Search Result - My Keyword Term from the Tag Cloud</h1>
I am also wondering if it would be beneficial to include these pages associated with the tag cloud in the website XML Sitemap with the Sitemap XML module.
Nick, I'll note that the breadcrumbs for the search page already include the search term; see https://vinosdefrutastropicales.com/...&keyword=debug.
Regarding the Sitemap XML information, I don't see what 'group' a collection of searchable products would fall into.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
lat9
Nick, I'll note that the breadcrumbs for the search page already include the search term; see
https://vinosdefrutastropicales.com/...&keyword=debug.
Regarding the Sitemap XML information, I don't see what 'group' a collection of searchable products would fall into.
Yeah I have it working on my site https://venturedesignandprint.co.uk
It's working a treat by the way. Do you think having the search term in the breadcrumbs is enough to make the actual search page an individual page for google ranking?
I'm not sure how you would do the sitemap, but I was thinking of each individual search term defined leading to the search page in the sitemap.
As an example I have 'Custom Business Cards' set up as a tag, and the link goes to https://venturedesignandprint.co.uk/...siness%20cards
So it would be the search link that appears in the sitemap xml file. Not the individual products for that term. I suppose you could categorise them as something like 'Tagged Products' and 'sitemaptaggedproducts.xml' with a list of the tag links for google to crawl.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
You are watching NOTIFY_MODULES_UPDATE_PRODUCT_END but not taking action when it fires. This seems like a bug.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
swguy
You are watching NOTIFY_MODULES_UPDATE_PRODUCT_END but not taking action when it fires. This seems like a bug.
Huh? Lines 49-55 of the plugin's admin observer read
Code:
// -----
// If a product is being updated, update its tag names as well.
//
case 'NOTIFY_MODULES_UPDATE_PRODUCT_END':
$zen_tags = new ZenTags();
$zen_tags->updateProductTagInputs((int)$p1a['products_id']);
break;
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Is this unreleased code? I think what's in the Plugin Library is different.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
swguy
Is this unreleased code? I think what's in the Plugin Library is different.
Nope, that was the precurser; the plugin library is current and that notification was in the previous (unreleased) version. It's benign as zc157 added a better set of notifications.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Am I looking at the wrong thing? When I go to Github to look at
YOUR_ADMIN/includes/classes/observers/ZenTagsAdminObserver.php
I am on
https://github.com/lat9/ZenTags/blob...inObserver.php
and that case statement isn't there.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
swguy
Yes, but it's benign. Additional notifications were added in zc157 making that notification no longer needed/used.
-
Zen Cart Product Tags (and Tag Cloud): Support Thread
Hello, we have installed the plug in, but the zen tag side box does not appear, we have checked the installed files several times and they are all there, zen 157d version. waiting for a codial greeting
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
giancalr
Hello, we have installed the plug in, but the zen tag side box does not appear, we have checked the installed files several times and they are all there, zen 157d version. waiting for a codial greeting
Have you edited any products to add tags? The sidebox won't display if either the plugin is not enabled via configuration or there are no tags available. See My Site (in my signature) to see how it displays on zc157d.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Thanks for the quick reply, yes I have everything enabled and inserted meta tags in the products. but it still does not appear.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
giancalr
Thanks for the quick reply, yes I have everything enabled and inserted meta tags in the products. but it still does not appear.
ZenTags doesn't use the products' meta-tags, it uses the product-tags that you supply when you edit a product.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
hello, thanks ok now it works,
I noticed that there are additional fields, EAN, Google Product Category, MNP, are they always part of the plug in?
Do these tags have an influence on search engines for positioning and seo? Thank you
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
giancalr
hello, thanks ok now it works,
I noticed that there are additional fields, EAN, Google Product Category, MNP, are they always part of the plug in?
Do these tags have an influence on search engines for positioning and seo? Thank you
None of the additional fields you identified are provided or used by the plugin. The tags provide an alternate method for customers to search for your products; they are not included in a specific product's meta-data and, thus, provide no influence on search engines.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Hello, thanks, for the info, but so the plug in has no purpose, the tag cloud in wordpress have a specific function of creating an ad hoc link to index and position in search engines, it would be advisable to have the plug in do this job , customers just need to search with the search box. Cordial greetings
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
v2.0.0 of Zen Cart Products' Tags is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2262
This release contains changes associated with these GitHub issues:
#8: Include product's tags on the product's details-page.
#9: Drop support for Zen Cart versions prior to 1.5.8a.
#10: Use zen_cfg_read_only for the plugin's installed-version configuration.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Hello there,
I am not sure if its a php thing, I am on 7.x as still sorting out minpr issues with php 8 switch. But I get the following error with 2.0:-
Quote:
PHP Fatal error: Uncaught Error: Call to undefined method ZenTags::getProductTagLinks() in /***/public_html/includes/modules/pages/product_info/header_php_product_info_zen_tags.php:14
I disabled that file for now as getting logs every few seconds. Site seems to still work though, just warning log.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
HeathenMagic
Hello there,
I am not sure if its a php thing, I am on 7.x as still sorting out minpr issues with php 8 switch. But I get the following error with 2.0:-
I disabled that file for now as getting logs every few seconds. Site seems to still work though, just warning log.
Yep, that function doesn't exist, nor is the output of that header-file used anywhere!
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Hello, i have the same debug, work on php8.2, 1.5.8a, the product info page can't open.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
joeyzone
Hello, i have the same debug, work on php8.2, 1.5.8a, the product info page can't open.
Right, just remove the file /includes/modules/pages/product_info/header_php_product_info_zen_tags.php
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Hi there,
Thanks for the plugin. It seems to be working out ok until I click on a product I then get the following error.
Code:
PHP Fatal error: Uncaught Error: Call to undefined method ZenTags::getProductTagLinks() in C:\xampp\htdocs\***\****\includes\modules\pages\product_info\header_php_product_info_zen_tags.php:14
Using:
Zen Cart v2.1.0
PHP: 8.2
Thanks for any assistance
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
Shifty_J
Hi there,
Thanks for the plugin. It seems to be working out ok until I click on a product I then get the following error.
Code:
PHP Fatal error: Uncaught Error: Call to undefined method ZenTags::getProductTagLinks() in C:\xampp\htdocs\***\****\includes\modules\pages\product_info\header_php_product_info_zen_tags.php:14
Using:
Zen Cart v2.1.0
PHP: 8.2
Thanks for any assistance
Scroll up this page a bit and start reading from post #44 as this issue has been raised previously.
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
oh my. My apologies. Thank you for the reply
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
Quote:
Originally Posted by
simon1066
Scroll up this page a bit and start reading from post #44 as this issue has been raised previously.
Actually this issue here is that I'd forgotten to include that method in the ZenTags class; see this (https://github.com/lat9/ZenTags/issues/11) GitHub issue for tracking.
The output of that call is used by the optional edit to the site's active template: https://github.com/lat9/ZenTags/wiki...ation%22-pages
-
Re: Zen Cart Product Tags (and Tag Cloud): Support Thread
v2.0.1 of the plugin is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2262
This release contains changes associated with the following GitHub issues:
#11: Update ZenTags class to include previously-missed method, corrects PHP fatal error on product-information page(s)
#12: Remove use of E_USER_ERROR, deprecated in PHP 8.4.