Author Topic: Add a “Details” button beneath the “Add to Cart” on in mod_virtuemart_latestprod  (Read 2284 times)


  • Beginner
  • *
  • Posts: 8
I would like to modify the file: "mod_virtuemart_latestprod.php" under "modules/mod_virtuemart_latestprod/" in order to show beneath the button "Add to cart" a second button called "Details". "Details" should have to very same link of the product's image and lead so the the product's flypage.
Given the following code, which is responsible for the layout of the module, I'm having trouble understanding what to do next.

Code: [Select]
elseif( $display_style== "horizontal" ) {

    if( $i == 0 )

        echo "<tr>\n";

    echo "<td align=\"center\">";

    $ps_product->show_snapshot($db->f("product_sku"), $show_price, $show_addtocart);
    echo "</td>\n";

    if( ($i+1) == $max_items )

        echo "</tr>\n";
Thanks in advance