News:

Looking for documentation? Take a look on our wiki

Main Menu

Too much VM code in Joomla Regular pages?

Started by simper66, January 29, 2013, 15:12:50 PM

Previous topic - Next topic

simper66

VM: com_virtuemart.2.0.18a_extract_first.targz
PHP: php-5.3.20
Joomla: Joomla_2.5.8
Apache: httpd-2.2.22
MySql: mysql-5.5.29.0
Quite fresh installation

hi there,

don´t you think there is too much VM code in regular pages that don´t have nothing to do with the VM section? some way of decrease that code volume?

i mean, right click in a regular joomla article shows me the 80% of the code belong to VM...



//<![CDATA[
      vmSiteurl = 'http://localhost:9090/'; ;
vmLang = "";
vmCartText = 'fue agregado a su carro' ;
vmCartError = 'Hubo un error al actualizar su carro' ;
loadingImage = '/components/com_virtuemart/assets/images/facebox/loading.gif' ;
closeImage = '/components/com_virtuemart/assets/images/facebox/closelabel.png' ;
Virtuemart.addtocart_popup = '1' ;
faceboxHtml = '<div id="facebox" style="display:none;"><div class="popup"><div class="content"></div> <a href="#" class="close"></a></div></div>'  ;

//]]>


//<![CDATA[
jQuery(document).ready(function() {
      jQuery('#VMmenu121_6405 li.VmClose ul').hide();
      jQuery('#VMmenu121_6405 li .VmArrowdown').click(
      function() {

         if (jQuery(this).parent().next('ul').is(':hidden')) {
            jQuery('#VMmenu121_6405 ul:visible').delay(500).slideUp(500,'linear').parents('li').addClass('VmClose').removeClass('VmOpen');
            jQuery(this).parent().next('ul').slideDown(500,'linear');
            jQuery(this).parents('li').addClass('VmOpen').removeClass('VmClose');
         }
      });
   });
//]]>
........................
........................
........................
........................
........................
<div
   class="moduletable_js "><div class="module_content "
   id="module_96" tabindex="-1">
<!-- Virtuemart 2 Ajax Card -->
<div class="vmCartModule " id="vmCartModule">
   <div id="hiddencontainer" style=" display: none; ">
      <div class="container">
                    <div class="prices" style="float: right;"></div>
                  <div class="product_row">
            <span class="quantity"></span>&nbsp;x&nbsp;<span class="product_name"></span>
         </div>

         <div class="product_attributes"></div>
      </div>
   </div>
   <div class="vm_cart_products">
      <div class="container">

            </div>
   </div>

<div class="total" style="float: right;">
   </div>
<div class="total_products">Carro vacío</div>
<div class="show_cart">
   </div>
<div style="clear:both;"></div>

<noscript>
por favor espere</noscript>
</div>

</div>
</div>
   
<div
   class="moduletable_js "><div class="module_content "
   id="module_94" tabindex="-1"><!--BEGIN Search Box -->
<form action="/index.php/component/virtuemart/search" method="get">
<div class="search">
<input style="height:16px;vertical-align :middle;" name="keyword" id="mod_virtuemart_search" maxlength="20" alt="Buscar" class="inputbox" type="text" size="20" value="Search..."  onblur="if(this.value=='') this.value='Search...';" onfocus="if(this.value=='Search...') this.value='';" /></div>
      <input type="hidden" name="limitstart" value="0" />
      <input type="hidden" name="option" value="com_virtuemart" />
      <input type="hidden" name="view" value="category" />
     </form>

<!-- End Search Box -->
</div>
</div>
   
<div
   class="moduletable_js "><div class="module_content "
   id="module_92" tabindex="-1">
<!-- Currency Selector Module -->
<form action="http://localhost:9090/xxxxxxx?hitcount=0" method="post">
   <br />
   <select id="virtuemart_currency_id" name="virtuemart_currency_id" class="inputbox">
   <option value="47" selected="selected">Euro &euro;</option>
</select>
    <input class="button" type="submit" name="submit" value="Cambiar moneda" />
</form>
</div>
</div>
   
<div
   class="moduletable_js "><div class="module_content "
   id="module_97" tabindex="-1">
<ul class="VMmenu" id="VMmenu121_6405" >

<li class="VmClose">
   <div >
      <a href="/index.php/component/virtuemart/xxxxxx" >VM CATEGORIE1</a>   </div>
</li>

<li class="VmClose">
   <div >
      <a href="/index.php/component/virtuemart/xxxxx" >VM CATEGORIE2</a>   </div>
</li>

</ul>
</div>
</div>
   
                   
                </div><!-- end navi -->



in bold we can see it even write the VM categories...why? the page could begin to grow very very very much...less bandwidth...less security....