Download
You can download each file at this address:Three variants, one of them current
Historically, there are three ways to include WEBSALE JavaScript. This is the most important point on this page, because your choice determines how much you load.The WS modules were extracted from the system library and have since been available as standalone files. To integrate individual modules, you need neither the system library nor the core library nor their design component.For new shops, the WS modules are therefore the right approach.
WS modules
The basic component comes first
The module and design basic components must be loaded once before all other WS modules.
The basic component provides two functions:
ws_showJSOnlyClass shows a div area only when JavaScript is active, and ws_registerLimitTextarea displays the remaining characters of a textarea.
The individual modules
All of the following modules require the jQuery library and the basic component, unless the table states otherwise.
Three modules have different prerequisites:
The design component of the product comparison has the version identifier
1.8.3, although the module component is 1.8.4. The same applies to SEO content, whose design component is independently at 1.0.0. Both are stated this way in the previous documentation. Check in the PageSpeed tool which version your shop actually offers.Additional modules
These modules belong to individual functions and require the jQuery library or the WEBSALE system library.User Detection and Mobile Detection
ws-user_detection contains two redirects: to a matching subshop based on a country check via GeoIP, and to an optimized shop variant if one exists for the device used.
ws-mobile_detection contains only the device redirect and is no longer being developed. Use ws-user_detection instead.
Changes to direct order
Direct order is the only module with a documented change history.System library and core library
Both variants are legacy. They bundle several modules in one file and each requires the matching design componentws-design-<Version>.js.
In version 1.8.3, both contain the same functions:
- Load static page content via AJAX
- Load dependent variants of a product via AJAX
- Product comparison
- Add products to the shopping cart via AJAX
- Add products to the wish list via AJAX
- Recommend a product via AJAX
- Input-dependent address data control
- Automatically show
divcontainers when JavaScript is active - Dynamically display the remaining characters of a textarea
- econda Cross Sell
- The functions
ws_AjaxLoadTemplateandws_AjaxLoadTemplatePOST
Older versions of both libraries remain available but contain fewer functions. Versions 1.8.0 and 1.1.0 include jQuery 1.4.2 and Colorbox 1.3.6.
ws_AjaxLoadTemplatePOST was only added in 1.8.3, and input-dependent address data control in 1.8.2.You can see which versions your shop offers in the PageSpeed tool.