VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: balai on April 11, 2012, 19:52:23 PM

Title: API Suggestion getProducts not to always load JQuery functions
Post by: balai on April 11, 2012, 19:52:23 PM
Hi

I have noticed that every call to the $productModel->getProducts always generates a series of jquery functions to the document's head.

I think that the calls mainly regard the customfields but if you just want to use some product info like salesPrice or the product decription there is no need to call those JQuery functions.
Also why i need to load always the JQuery library in my extensions since i don't need that library?

I think that an extra boolean param should be added to the getProducts function which will regard the loading or not of those jquery functions