I have some issues that can be covered within one forum post & may need some custom support if you can afford the time to help me?
I modified the category template some time ago so that the manufacturer description displays on manufacturer products pages.
This modification was done in puremart 3.4 and carried through to the latest version were we are now running vm 2.0.22c & puremart 3.8 - see below for the code modifications
1 - Manufacturer Title.
If all site and browser cache is cleared and you visit our site and view a manufacturer page. More often than not the manufacturer title will not show for the page. but upon refreshing the manufacturer title shows up OK.
2 - Category Details
I'm assuming because of the modification, now when we add a category description, this also shows in brand/manufacturer pages above the manufacturer title. Even though the category description may have nothing to do with that brand/manufacturer at all.
Ive attached a screenshot of the about brand link. the highlighted text, is from another category & should not be displayed here.
If I have messed up with my modifications or they are not compatible with latest versions of puremart & vm2.0.22c then this is what I want
1 - Category/brand title to always show at top/1st place & then the descriptions
2 - In Manufacturer product details pages, I want the manufacturer description to be displayed, below the title.
Thanks Andy
This is a chunk of code from puremart/com_virtuemart/category/default.php around line 177. You can my modification commented.
/ Separator
$verticalseparator = " vertical-separator";
?>
<!-- Removed & Added to the top of this file so that titles always display in the first/top position
<?php if ($this->search ==null) { ?>
<div class="FlexibleCategiryTitle">
<span class="FlexibleCategiryTitleSPAN"><?php echo $this->category->category_name; ?></span>
</div>
<?php } else { ?>
<div class="FlexibleCategiryTitle">
<span class="FlexibleCategiryTitleSPAN"><?php echo JText::_('COM_VIRTUEMART_SEARCH') ?>: <?php echo $this->keyword; ?></span>
</div>
<?php } ?> -->
<!--ConCom Add Manufacturer Description-->
<?php
$jinput = JFactory::getApplication()->input;
$trigger="virtuemart_manufacturer_id";
$mid = $jinput->get->get($trigger);
if (!empty($mid))
{
echo '<div class="manufacturer-description" style="font-size:12px;">';
echo '<p>'.$this->products[0]->mf_desc.'</p>';
echo '</div>';
}
?>
<!--ConCom END Add Manufacturer Description-->
<div class="orderby-displaynumber">
<div class="width60 floatleft">