VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: patrik60 on March 01, 2013, 16:40:24 PM

Title: Product link
Post by: patrik60 on March 01, 2013, 16:40:24 PM
Hello
I have bought the sprint extension to generate a pricelist of my products. I have tried to link the products in the list to the detail view by using the following code:

<?php
$product
->url JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id); 
?>

<a href="<?php echo $product->url ?>"><?php echo $product->product_name ?></a>


It works fine as long as a product has an image. If there is no product image the link only leads to the category overview. Since the developer of the extension couldn't help me I'm asking here in the general questions board. Maybe someone could give me a hint.

Regards
Patrik
Title: Re: Product link
Post by: patrik60 on March 18, 2013, 19:06:50 PM
Does anybody have an idea?

VM 2.0.20b
J 2.5.9
Title: Re: Product link
Post by: PRO on March 18, 2013, 19:23:18 PM
I dont see how this could be the case.

There is NOTHING about the image in that code above.

Title: Re: Product link
Post by: patrik60 on March 18, 2013, 20:07:43 PM
QuoteThere is NOTHING about the image in that code above

Yes, and this is a correct code as it is used in most VM modules or third developer extensions to link a product. Just in gSprint it doesn't work. So there must be somewhere else in a file some code which prevents this common code to work correctly.