Keep in mind that even if we comment the cssSite line in virtuemart.php
there are some modules like mod_virtuemart_cart, mod_virtuemart_category, mod_virtuemart_product that also contain these lines.
vmJsApi::jQuery();
vmJsApi::jPrice();
vmJsApi::cssSite();
As a result, the default assets of virtuemart will again be loaded.
Hi,
unfortunatelly, this is true. Even if I commented these lines in virtuemart.php file I'm still getting some. About CSS code it can be easy overrided by putting my own CSS file just below < jdoc:include type="head" / > - just like
grtrustme mentioned in his other post. Web browser will use my classes instead the default VM2 css classes - I can also use my own css classes in HTML overrides so, the default css won't be used. But this solution works for CSS only. What if I will try to add my own JS (lets say for more images in product details)?
I guess there is no good solution at the moment to do that.
Also, I'm sure that a number of developers (including me) wants to use MooTools js framework only to make the stores works faster. Now, my template loads both JQuery and mootools. In this case old VM is better.
You can disable the vm js completly and use your own file (look in the config).
I dont know if you can overrde the assets with joomla native methods.
Please, belive me I tried that and the only one thing I'm getting is JQuery loaded from my server instead google apis plus below lines still appears on my html source code:
<script src="/joomla170vm2rc2/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
<script src="/joomla170vm2rc2/components/com_virtuemart/assets/js/facebox.js" type="text/javascript"></script>
<script src="/joomla170vm2rc2/components/com_virtuemart/assets/js/vmprices.js" type="text/javascript"></script>
In general VM2 is great but the themes solutions were better developed in VM 1.x. So, the question is: Is there any chance to fix that till VM2 stable will be released?
Thank you