How do you display / extract the last (final) subcategory name in the following tree (path) by itself?
Code:index.php?main_page=index&cPath=9_18_20
How do you display / extract the last (final) subcategory name in the following tree (path) by itself?
Code:index.php?main_page=index&cPath=9_18_20
Using Zen Cart 1.5.1
A little more information about what you want to do and why. Do you want the last subcategory category name to appear in the URL?
If my breadcrumbs reads Home > Men's Shirts > T-shirts > V-Neck
I need to display V-Neck dynamically in my subcategory description, on the product listing page.
I hope i am making sense . Thank you of the reply.
Using Zen Cart 1.5.1
If I understand, it should do that already if you have the settings right and your template allows it. Please provide a link to the site.
Site is not live yet.
This would be in addition to the existing subcategory name encapsulated in <h1>. I need to duplicated the name of subcategory encapsulated in <he> in other ares of the page.
How can the name of subcategory being displayed on the product listing page, be replicated on that same page?
Using Zen Cart 1.5.1
This is what puts the content into the <h1>, and it will do the same elsewhere on the page.PHP Code:<?php echo $breadcrumb->last(); ?>
You will need to edit /includes/templates/your_template/templates/tpl_index_product_list.php (copy from /template_default/ if you don't already have a custom copy).
Last edited by gjh42; 30 Oct 2013 at 02:19 AM.