Thanks for a guide. Just did a mod/patch and it is working:
If I missed something, please send a comment.
GOAL:
modify XC_SEO to work with a custom variable called "retailcatid".
( i.e., "c-XXXX-r-XXXX.html" something like that for "cat=XXX&retailcat=XXXX")
BACKGROUND:
I pull additional products with this variable. i.e. "cat=XXX&retailcat=XXX"
MODS:
1. .htaccess : ADDED
Code:
RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)-r-([0-9]+)\.html$ $1home.php?cat=$2&retailcat=$3 [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)-r-([0-9]+)-p-([0-9]+)\.html$ $1home.php?cat=$2&retailcat=$3&page=$4 [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-up-c-([0-9]+)-r-([0-9]+)-p-([0-9]+)\.html$ $1home.php?sort=$2&sort_direction=0&cat=$3&retailcat=$4&page=$5 [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-down-c-([0-9]+)-r-([0-9]+)-p-([0-9]+)\.html$ $1home.php?sort=$2&sort_direction=1&cat=$3&retailcat=$4&page=$5 [QSA,L]
2. modules/XC_SEO/outputfilter.seo.php
ADDED to class variable declaration
ADDED to function seo_filter()
Code:
$this->_ret_prefix = $this->_name_delim.'r'.$this->_name_delim;
ADDED to function _category_filename
Code:
if ($options['retailcat'])
$options['result_title'] .= $this->_ret_prefix.$options['retailcat'];