Download the PHP package ctidigital/module-catalogjs without Composer
On this page you can find all versions of the php package ctidigital/module-catalogjs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ctidigital/module-catalogjs
More information about ctidigital/module-catalogjs
Files in ctidigital/module-catalogjs
Package module-catalogjs
Short Description Adds models that are triggered when a customer selects options on the product page.
License
Informations about the package module-catalogjs
Overview
The CatalogJS module creates several JavaScript observers on the product page. By listening to these observers, your script can respond to specific events.
The primary use case for this is to find out which option a customer has selected on a configurable product so that your component can perform its own action. For example you may want to display some specific information about the selected simple product option.
Observers
The following section documents the observers that are available and how you may use them.
configurable-option
Purpose
The configurable option observer will be updated every time a customer updates the configurable options. The observer will return the selected simple product ID. In your own UI component, you could search against a JSON object which contains the information for the simple products or you could make an AJAX request to get information about the ID.
Available Values
The following values can be subscribed to on the configurable-option
model.
Usage
qty
Purpose
The qty observer will be updated every time a customer changes the quantity box and will return the value they've entered.
Available Values
The following values can be subscribed to on the qty
model.