Question : Customising featured Products on the browse page in joomla/virtuemart

Hi

I'm trying to add the product details link, which hyperlinks to the flypage (product details page) to the featured products that appear at the bottom of the browse page in virtuemart.

It's the same product details link that is displayed below the short description on the browse page (product list page) [Product details...] When the link is clicked you are taken to the flypage (Product details page)

This is how the code appears on the browse page:

1:
2:
3:
    <div><?php echo $product_s_desc ?><br />
      <a href="<?php echo $product_flypage ?>">[<?php echo $product_details ?>...]</a>
    </div>


and this is how the code appears on the featured products template:

 
1:
2:
3:
<?php echo $featured['product_s_desc'] ?><br />
          "the product details link would go here" 
            <?php echo $featured['form_addtocart'] 


I've tried
1:
<a href="<?php echo $featured['flypage'] ?>">[<?php echo $featured['product_details'] ?>...]</a>

but I get the following error message:

Undefined index: product details

Can anyone help me with this?

I'm using joomla 1.5 version 1.5.18, Virtuemart 1.1.4 and wamp 2.0 localhost installation.

Answer : Customising featured Products on the browse page in joomla/virtuemart

Hi webjinks

Thanks for the reply

The outer brackets are part of the text that appears in the browser:
[Product Details...]

I've come up with an alternative solution which works.  I added the text [Product Details...] to the page and then attached the hyperlink to it.

1:
2:
3:
<?php echo $featured['product_s_desc'] ?><br />
<a href="<?php $sess->purl(URL."index.php?option=com_virtuemart&amp;page=shop.product_details&amp;flypage=".$featured["flypage"]."&amp;product_id=".$featured["product_id"]) ?>">[Product Details...]</a>
            <?php echo $featured['form_addtocart']?>
Random Solutions  
 
programming4us programming4us