Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • we2solutions Friend
    #170095

    Hi All,

    I found this small hack for display short description in virtumart module JA Mesolite II –

    <?php
    // This is to get the product’s Short Description w/out hacking the ps_product product_snapshot
    $db = new ps_DB;
    $q = “SELECT product_s_desc FROM #__{vm}_product WHERE product_id=’$product_id'”;
    $db->query( $q );
    $db->next_record();
    echo ‘<br /><div style=”width:180px;text-align:left;padding: 2px;”>’.$db->f(“product_s_desc”).'</div>’;
    ?>

    using <div style=”width:180px;text-align:left;padding: 2px;”> we can set width to the box.and also make alignments to the product.

    Hope it will help you.

    Thanks

    tulio Friend
    #422554

    Thanks a lot.

    Tulio

    we2solutions Friend
    #429647

    Forgot to show the file path 🙂

    Modify the “product snapshot” template. The file is:
    /components/com_virtuemart/themes/default/templates/common/productsnapshot.tpl.php

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  we2solutions 12 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum