Search:  

Previous pageTechniques & KB Articles Next page
Setting a Sale View to auto-submit 

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>

           
 

DATA

Managing Data

Tables

Referential Integrity 

Data Entry Forms

Queries and Views

Custom Views

 

USERS & SECURITY

Users & Permissions

User Group Manager 

User Registration

Access Codes & Agreements

Personalizing Experience

Managing Profiles

 

SaaS

SaaS Server

SaaS Site Manager

SaaS Client Accounting

SaaS Templates & Clones

SaaS Self Service

Associates System 

 

CMS

User Editable pages

CSS Editor

Editing Pages

Direct URLs

Using Javascript & JQuery

Content Approval & Workflow

 

WEB

Key Concepts

Components

Understanding Embeds

Site Building

Themes System

SEO Optimization

 
           
 
clearString   neatComponents™    © Enstar LLC  1999-2019 All Rights Reserved      Terms of Use      Privacy & Cookies      Contact us...
 
 
 
 

 

Docs HomePrint:   Print this page