test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • attilio_sal Friend
    #148919

    Hi, i need to limit max number of lastest products to display with vmproductslide (for instance 20 lastest products).
    How can i do this, perhaps from sql query?

    Anonymous Moderator
    #333821

    Hi attilio_sal

    For the case, please open modulesmod_ja_vmproductslideja_vmproductslideapplication.php file, find following code section:

    $query .= ($this->_typeproduct) ? (($this->_typeproduct == 1 ) ? ' AND p.product_special ="Y" ORDER BY p.product_name DESC ' : 'ORDER BY p.cdate DESC ') : 'ORDER BY p.product_name DESC ';

    and change to:


    $query .= ($this->_typeproduct) ? (($this->_typeproduct == 1 ) ? ' AND p.product_special ="Y" ORDER BY p.product_name DESC ' : 'ORDER BY p.cdate DESC ') : 'ORDER BY p.product_name DESC ';

    $query .= " LIMIT 0, 20";

    attilio_sal Friend
    #333847

    Thanks, this is exactly what i needed

    spyros Friend
    #346191

    Hi i tried this code but when the slide ends in ie8 instead of showing the products in the slide it loads the main page in every product placeholder in the module. if you try to load the page in firefox when the slide ends the browser tries to reload the whole page and you get an blank page.

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

This topic contains 4 replies, has 3 voices, and was last updated by  spyros 14 years, 6 months ago.

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