Author Topic: Jump manufacturer detail page and go directly to products  (Read 9123 times)

Alvit

  • Beginner
  • *
  • Posts: 5
Jump manufacturer detail page and go directly to products
« on: November 28, 2012, 18:31:02 pm »
Hello everyone.
Joomla 2.5.7 and Virtuemart 2.0.12f
In my website I have a menu link that shows a page with all the manufacturers.
When I click on a manufacturer, it opens a page with manufacturer's site, email and link to see all the products.
I ask if it's possible to bypass this detail page, and see directly the manufacturer's products page.
Thanks,
Daniele.

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1418
Re: Jump manufacturer detail page and go directly to products
« Reply #1 on: November 28, 2012, 20:09:42 pm »
Hi

Use the free version of that extension
http://breakdesigns.net/extensions/custom-filters

dualsim

  • Beginner
  • *
  • Posts: 4
Re: Jump manufacturer detail page and go directly to products
« Reply #2 on: November 28, 2012, 22:09:45 pm »
Yes, that is possible.

Open components\com_virtuemart\views\manufacturer\tmpl\default.php in your favorite editor.
You will find following codes between lines 70 to 75:
Code: [Select]
<div class="spacer">
<h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerURL?>"><?php echo $manufacturer->mf_name?></a>
</h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerURL?>"><?php echo $manufacturerImage;?></a>
</div>
Replace the same by:
Code: [Select]
<div class="spacer">
<h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerIncludedProductsURL?>"><?php echo $manufacturer->mf_name?></a>
</h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerIncludedProductsURL?>"><?php echo $manufacturerImage;?></a>
</div>
That;s it. You are done.

Alvit

  • Beginner
  • *
  • Posts: 5
Re: Jump manufacturer detail page and go directly to products
« Reply #3 on: November 28, 2012, 22:50:09 pm »
Hi

Use the free version of that extension
http://breakdesigns.net/extensions/custom-filters

Thanks for the advice, I already knew this module but never tried it. Seems interesting..

Yes, that is possible.

Open components\com_virtuemart\views\manufacturer\tmpl\default.php in your favorite editor.
You will find following codes between lines 70 to 75:
Code: [Select]
<div class="spacer">
<h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerURL?>"><?php echo $manufacturer->mf_name?></a>
</h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerURL?>"><?php echo $manufacturerImage;?></a>
</div>
Replace the same by:
Code: [Select]
<div class="spacer">
<h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerIncludedProductsURL?>"><?php echo $manufacturer->mf_name?></a>
</h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerIncludedProductsURL?>"><?php echo $manufacturerImage;?></a>
</div>
That;s it. You are done.

And it worksss!
Now two little more questions: is it possible, in the show all manufacturer page, to remove the manufacturer name text and leave only the image logo?
And if I create a menu item with the link to a single manufacturer page, how do I do to make the procedure asked before?
Thanks a lot for ur precious help.
Daniele.

Alvit

  • Beginner
  • *
  • Posts: 5
Re: Jump manufacturer detail page and go directly to products
« Reply #4 on: December 02, 2012, 14:19:52 pm »
People please, someone..?

sandstorm

  • Jr. Member
  • **
  • Posts: 234
    • ConCom
  • Skype Name: sandstorm871
  • VirtueMart Version: 3.0.16
Re: Jump manufacturer detail page and go directly to products
« Reply #5 on: March 25, 2013, 14:02:19 pm »
Ive done this now and if anyone is interested here the code that I placed in the category Template

Just after this code in your category template after the title (or wherever you want the manufacturer description)

Add this;

Code: [Select]
<?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
J3.6.4 / PHP7.0.12
VM3.0.16

yosandra

  • Beginner
  • *
  • Posts: 34
Re: Jump manufacturer detail page and go directly to products
« Reply #6 on: May 02, 2013, 11:00:32 am »
Hello! How can I display the manufacturer products without link in the manufacturer details page?
http://tiendanueva.negre.es/tienda-online/marcas/and-tradition.html
there's only a link that brings to the manufacturer products but I want to display below directly.

I think I need to change:

<a title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturerImage;?></a>
            
               <a title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturer->mf_name; ?></a>

with the code that displays the manufacturers products, but HOW?

Kind regards,

Bit Stupid

  • Beginner
  • *
  • Posts: 13
Re: Jump manufacturer detail page and go directly to products
« Reply #7 on: October 04, 2013, 14:55:52 pm »
Legend dualsim Thanks for this much need help.  PS I am now onto latest 2.0.24 and this is still working thank god.

Balai, I too was aware of Custom filters, but because I had already hacked to show add to cart function on the category view page this was not working anymore for me (but I did prefer its design!

chinsen

  • Beginner
  • *
  • Posts: 5
Re: Jump manufacturer detail page and go directly to products
« Reply #8 on: December 08, 2014, 15:52:45 pm »
Yes, that is possible.

Open components\com_virtuemart\views\manufacturer\tmpl\default.php in your favorite editor.
You will find following codes between lines 70 to 75:
Code: [Select]
<div class="spacer">
<h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerURL?>"><?php echo $manufacturer->mf_name?></a>
</h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerURL?>"><?php echo $manufacturerImage;?></a>
</div>
Replace the same by:
Code: [Select]
<div class="spacer">
<h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerIncludedProductsURL?>"><?php echo $manufacturer->mf_name?></a>
</h2>
<a title="<?php echo $manufacturer->mf_name?>" href="<?php echo $manufacturerIncludedProductsURL?>"><?php echo $manufacturerImage;?></a>
</div>
That;s it. You are done.

Thanks so much for this, it works like a dream. I know this is from ages back, but it still works.

Is there a way to do the same for Menu links? i.e VirtueMart Manufacturer Details Layout menu items still go to the manufacturer details page. Is it possible to skip the details page with these links too?

Thanks a ton Dualsim!

sunilk

  • Beginner
  • *
  • Posts: 3
Re: Jump manufacturer detail page and go directly to products
« Reply #9 on: January 09, 2015, 15:34:23 pm »
Hi Team


It is displaying a button to show the products.
I want to display all the product directly in this page.

I tried to change the code as per the forum but it is not working.

Please send me the procedure . How can i display products in the manufacturer page.

Thanks