Date: Fri, 29 Mar 2024 06:56:25 +0000 (UTC) Message-ID: <548365423.13.1711695385369@91f1ba32f6b7> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_12_2052955941.1711695385369" ------=_Part_12_2052955941.1711695385369 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
templates/comm=
on/js/cart.js
library usage to integrate with HostBill Cart API =
;To setup cart connection you need to call HBCart.init(cartO= bjct, settings)
$(functio= n () { HBCart.init({}, { categoryId: 1, url: 'http://your.hostbill.url/', language: 'English' }) })
Triggered on window.document object
$(documen= t).on('cart.ready', function(){ =09//render cart })
All methods listed below will refresh HBCart.cart object.
Each of those also returns a object that can be used to bind callback funct=
ions, example:
HBCart.Ap= i.setProduct(id).done(function(cart){ =09//re-render configuration })