Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Manufacturers Details Page

Manufacturers Details Page 11 years 1 month ago #3589

If we create a Virtuemart Link to Manufacturers page, this creates a link to all manufacturers, which when you click on a specific manufacturer, it takes you to the details page for that manufacturer, which is just logo and description - no products.

I want to go straight to manufacturer page with all the products associated with that manufacturer.

I have found the link for this and created some manual links, which takes me to the puremart theme page listing all the products for that manufacturer- nice!

but what i want is also the manufacturer description & logo if available to display abouve the products in the puremart manufacturer products page.

Is this a setting Ive missed somewhere or do we need to modify the manufacturer product details page?

If so what would I need to add?

Thanks in advance,
Andy
The administrator has disabled public write access.

Manufacturers Details Page 11 years 1 month ago #3595

Hi Andy,

No - there's no code for this - the view is just a standard category view (templates/YOUR_TEMPLATE/html/com_virtuemart/category/default.php) with a manufacturer filter applied (e.g. &virtuemart_manufacturer_id=5) - as per normal VM

You would need to detect this JRequest and do the appropriate sql or what ever to return the name, logo and desc in the head of the template.. around line 175 in the default template

Cheers
The administrator has disabled public write access.

Add Manufacturer Description in Category 11 years 1 month ago #3684

Ive done this now and if anyone is interested here the code that I placed in the category Template

Just after this code around line 180 - 190
<span class="FlexibleCategiryTitleSPAN"><?php echo JText::_('COM_VIRTUEMART_SEARCH') ?>: <?php echo $this->keyword; ?></span>
    </div>
<?php } ?>

Add this;
<?php
$jinput = JFactory::getApplication()->input;
 $trigger="virtuemart_manufacturer_id";
 $mid = $jinput->get->get($trigger);
 if (!empty($mid))
{
echo '<div class="manufacturer-description>';
   echo '<p>'.$this->products[0]->mf_desc.'</p>';
echo '</div>';
}
 
?>

Does this look OK?
Anybody come up with a simpler solution?

Thanks

AC
Last Edit: 11 years 1 month ago by Andy Connell.
The administrator has disabled public write access.

Add Manufacturer Description in Category 11 years 1 month ago #3697

If it works well done -

cheers
The administrator has disabled public write access.
Time to create page: 0.129 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo