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

TOPIC: Manufacturer as Text link - No Logo

Manufacturer as Text link - No Logo 11 years 1 month ago #3481

I'm not using manufacturer Logo.
But just want a direct text link to the manufacturer products page (not description page) from within the productdetails page.

I have modified the manufacturer links as below, but it just doesn't work - tried with SEF off and on.
When SEF is off it just refreshes the page with exact same link?

This is what Im using;
<?php if ($params->get('productdetails_manufacturer',1)) { ?>   
                <?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">  
    	See other products from 
    	<a title="<?php echo $ManufacturerName; ?>"   href="<?php JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id) ?>">
		<?php echo $ManufacturerName; ?>
		</a>
    </div>
                    <?php  //  } ?>
 
               	<?php } ?>

I'm only guessing that its a problem with this, but just cant see?
<a title="<?php echo $ManufacturerName; ?>"   href="<?php JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id) ?>">
		<?php echo $ManufacturerName; ?>
		</a>
The topic has been locked.

Manufacturer as Text link - No Logo 11 years 1 month ago #3496

There is at least two recent topics on this that I have dealt with - please use the search..

Cheers
The topic has been locked.

Manufacturer as Text link - No Logo 11 years 1 month ago #3614

Thanks!
I had used the search and one of the posts was mine that was closed before I could test properly. The code in my first post doesn't seem to work & I don't really understand why?

I managed to do this now by defininhg a variable like this:
$ManufacturerProd = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id);

and then used that in href property so I ended up with this & this works well & tested properly this time, so feel free to mark this solved!
<?php
$ManufacturerProd = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id);
$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">  
    	See other products from 
    	<a title="<?php echo $ManufacturerName; ?>"   href="<?php echo $ManufacturerProd ?>">
		<?php echo $ManufacturerName; ?>
		</a>
    </div>
                    <?php  //  } ?>
 
               	<?php } ?>
The topic has been locked.

Manufacturer as Text link - No Logo 11 years 1 month ago #3618

Oky doky - topic cloesed..

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