Skip to main content
WEBSALE V8s delivers its JavaScript functions as individually loadable files. This page lists the available modules with their file names and prerequisites. You can find the current list in the online service area. Open the “PageSpeed-Tool” tab there; the modules and libraries are listed in the right column. Reference: JavaScript and jQuery

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.
Before setting up a redirect based on the country of origin, check with your legal advisor whether it is permissible.

Changes to direct order

Direct order is the only module with a documented change history.
When upgrading to 1.7.0, a class name changes. If your stylesheet styles direct_order_productLine, it no longer applies after the switch.

System library and core library

Both variants are legacy. They bundle several modules in one file and each requires the matching design component ws-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 div containers when JavaScript is active
  • Dynamically display the remaining characters of a textarea
  • econda Cross Sell
  • The functions ws_AjaxLoadTemplate and ws_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.

Older versions

Older versions of most modules remain available. The file name always follows the same pattern, with the version identifier before the extension. For an existing integration, you only change the number in the file name. This page states the version that the previous documentation lists as current. The list in the PageSpeed tool is authoritative.