Unique Titles for Product Category Pages

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
montedavis
Forum Members
Forum Members
Posts: 64
Joined: Wed Jul 03, 2013 7:44 pm

Unique Titles for Product Category Pages

Post by montedavis »

Hello,

I'm not able to add unique titles and to my products category pages (the pages that display all of the products in a category).

For example I have a category named "shoes" and it displays 5 shoe products. I'm able to produce unique titles for the individual 5 products but not for the "shoes" category.

I can add field data to categories in the admin and get the field data to show on the category list page (the page that lists all of the categories) but not on the individual category page.

Any help would be appreciated.

Thanks.

Monte
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1791
Joined: Wed Feb 25, 2009 4:25 am

Re: Unique Titles for Product Category Pages

Post by DIGI3 »

I'm not too familiar with Products but I did a bit of testing. If you put {get_template_vars} in the template you'll see the category fielddefs are accessible from each product. There might be a better way but it's a start - in your item category loop you can get the fielddef value with something like:
{foreach from=$category->data item='field'}
{$field.field_value}
{/foreach}

Remember you can use {$field|print_r} to see what else is available to $field, or any other array.

If you only want to display the fielddef info for the category you're showing, you'll need to do it a bit differently.
Not getting the answer you need? CMSMS support options
montedavis
Forum Members
Forum Members
Posts: 64
Joined: Wed Jul 03, 2013 7:44 pm

Re: Unique Titles for Product Category Pages

Post by montedavis »

Thank you! I'll give this a try.
Post Reply

Return to “Modules/Add-Ons”