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

TOPIC: Product details page manufacturer logo link....

Product details page manufacturer logo link.... 10 years 7 months ago #6139

Product details page manufacturer logo links to home page ? i tried everything, need help with this...
this is how it looks in php
<?php
if (empty($this->product->mf_images[0]->file_url_thumb)) {
echo ""; // leave here empty so nothing will be visible
} else { ?><?php
$ManufacturerLink = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id . '&tmpl=component');
$ManufacturerName = $this->product->mf_name;
?>
<div class="FlexibleProductDetailsManufacturerLogoList">
<a title="<?php echo $ManufacturerName; ?>" href="<?php JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id) ?>"><img src="<?php echo $this->product->mf_images[0]->file_url_thumb; ?>" alt="<?php echo $ManufacturerName; ?>" /></a>
</div>
<?php } ?>

<?php } ?>
<?php if ($params->get('productdetails_sku',1)) { ?>
<div class="FlexibleProductDetailProductSKU"><?php echo JTEXT::_('COM_VIRTUEMART_CART_SKU');?>: <?php echo $this->product->product_sku ?></div>
<?php } ?>
Attachments:
The topic has been locked.

Product details page manufacturer logo link.... 10 years 7 months ago #6168

Hi,

Replace those lines with this:
<?php
if (empty($this->product->mf_images[0]->file_url_thumb)) {
	echo "";   // leave here empty so nothing will be visible
} else { 
	$ManufacturerLink = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id . '&tmpl=component');
	$ManufacturerName = $this->product->mf_name;
?>
	<div class="FlexibleProductDetailsManufacturerLogoList">  
    		<a title="<?php echo $ManufacturerName; ?>"  rev="iframe|550|650"  rel="facebox" href="<?php echo $ManufacturerLink ?>"><img src="<?php echo $this->product->mf_images[0]->file_url_thumb; ?>" alt="<?php echo $ManufacturerName; ?>" /></a>
	</div>
<?php } ?>
Last Edit: 10 years 7 months ago by Support.
The topic has been locked.

Product details page manufacturer logo link.... 10 years 7 months ago #6226

Hi,
it fixes the link on manufacturer's logo, in product details page, but when you click on manufacturer logo on front page ( manufacturer logo list) it should open manufacturer products not text about them and under "show all products"
i hope you understand what i want to say, thank you
The topic has been locked.

Product details page manufacturer logo link.... 10 years 7 months ago #6227

I did this:
<?php
if (empty($this->product->mf_images[0]->file_url_thumb)) {
  echo "";   // leave here empty so nothing will be visible
} else { ?><?php
$ManufacturerLink = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id . '&tmpl=component');
$ManufacturerName = $this->product->mf_name;
?>   
	 <div class="FlexibleProductDetailsManufacturerLogoList">  
    	<a title="<?php echo $ManufacturerName; ?>"   rev="iframe|550|650"  rel="facebox" href="<?php echo $ManufacturerLink ?>"><img src="<?php echo $this->product->mf_images[0]->file_url_thumb; ?>" alt="<?php echo $ManufacturerName; ?>" /></a>
    </div>
                    <?php } ?>
 
               	<?php } ?>
it opens manufacturer's products in facebox, but not from logo's list on frontpage, any solution ?
The topic has been locked.

Product details page manufacturer logo link.... 10 years 7 months ago #6243

Then use this:
<?php
if (empty($this->product->mf_images[0]->file_url_thumb)) {
  echo "";   // leave here empty so nothing will be visible
} else { ?><?php
$ManufacturerLink = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id . '&tmpl=component');
$ManufacturerName = $this->product->mf_name;
?>   
	 <div class="FlexibleProductDetailsManufacturerLogoList">  
    	<a title="<?php echo $ManufacturerName; ?>"  href="<?php echo $ManufacturerLink ?>"><img src="<?php echo $this->product->mf_images[0]->file_url_thumb; ?>" alt="<?php echo $ManufacturerName; ?>" /></a>
    </div>
                    <?php } ?>
 
               	<?php } ?>

This will open the manufacturer page in the new page and list all the products (with in the category browse page layout)

Regards.
The topic has been locked.

Product details page manufacturer logo link.... 10 years 7 months ago #6254

Your solution is not working,
Picture 1 & 2 shows what happens when you click on logo on front page ( it's suposed to open products directly without text and link to all manufacturer products)
Picture 3&4 shows what happen when you click on manufacturer logo in product details view (should show short text about manufacturer and see all products )
Attachments:
The topic has been locked.

Product details page manufacturer logo link.... 10 years 7 months ago #6262

I am kind of confused here. If you provide me your live URL, i will better assist you.

But let me give you the idea what link does what. Then you can do the configuration by yourself.
I will provide you the link by our DEMO page.

This link:
flexiblewebdesign.com/virtuemart-2-template-coolmart/index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=16&tmpl=component
show the "burberry" manufacturer page (load only component), which is ideal way of usage inside the Modal Popup

This link:
flexiblewebdesign.com/virtuemart-2-template-coolmart/index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=16
shows the "burberry" manufacturer page (loads the entire page)

This link:
flexiblewebdesign.com/virtuemart-2-template-coolmart/index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=16

Which is originally printed by this PHP line: $ManufacturerLink = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id . '');

PAY ATTENTION IT HAS view=category instead of view=manufacturer

List all the products from "Burberry" within the category browse page.

What you need is the last option, it should have view=category so it will open the category browse page and it will list all products from the specific manufacturer based on the manufacturer ID.

Understand the idea and difference between view=manufacturer and view=category parameters?

So you can do any kind of customizations and link the manufacturer links to anywhere you want by following those ideas.

Regards.
Support & Development
Last Edit: 10 years 7 months ago by Support.
The topic has been locked.

Product details page manufacturer logo link.... 10 years 7 months ago #6284

Thank you a lot for your patience, now you explained me everything, and i fixed it thanks to this answer.
Emir
The topic has been locked.

Product details page manufacturer logo link.... 10 years 7 months ago #6301

your welcome. I am glad you understood the idea and find your own solution.
I hope this topic will help others too.

Case solved. Topic is closed for clearance.

Regards.
The topic has been locked.
Time to create page: 0.155 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