Search:  

Setting a Sale View to auto-submit

In some cases you may want a Sale View to auto-submit - adding the default quantity of an item to the cart.

Whilst there is no specific setting to do this, you can achieve this by adding the following script to the "<Head> General" script area of the page in which the Sale View is embedded:

<script type="text/javascript"> 
/*<![CDATA[*/ 
window.onload = function(){ 
   if(document.forms.length){ 
      document.forms[0].submit();    
   } 

/*]]>*/ 
</script>

Copyright © 2023 Enstar LLC    All rights reserved Print this pageTranslate: