when i use the categorylist action, some categories work and other just direct to single products for no reason. why is this happening.
also, is there a setting, or URL in general, for seo friendly URLs for categories?
products and category lists
Re: products and category lists
can nobody help here? surely someone should know the solution to this
Re: products and category lists
More info = More help...
Re: products and category lists
ok.
i have used the following to call the categories:
and the list outputs ok in theory, however, the links to those categories is the problem. here are examples:
link 1:
link 2:
The categorylist template code is:
i have used the following to call the categories:
Code: Select all
{Products action='categorylist' categorylisttemplate='sidebar' summarytemplate='summary'}
link 1:
this link technically works and goes to a category. what i want to do here is change this URL to the following:/index.php?mact=Products,cntnt01,default,1&cntnt01categorylisttemplate=sidebar&cntnt01summarytemplate=summary&cntnt01categoryid=3&cntnt01returnid=67&page=67
or something similar/category/category_name
link 2:
this goes directly to a product, which isn't even in that category. the category for link 2 has 2 products and the link it has directs to a product in another category. out of the XXX categories, this happens 7 times in no particular order./products/product_id/name-of-product
The categorylist template code is:
Code: Select all
{foreach from=$categorylist item='obj'}<a href="{$obj->summary_url}">{$obj->name}</a> ({$obj->count})<br />
{/foreach}
Re: products and category lists
Have you set pretty URLs in your config.php with hierarchy=true and do you use .htaccess?
Re: products and category lists
yes and yes. htaccess doesn't seem to interact with it
Code: Select all
RewriteEngine On
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]
#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]