At the moment the integration of the cart widget requires the following changes in the code of the vendor (preferably in the layout file):
...
Configuration of the cart widget at the moment is done via global javascript object (window.affilicon
). The following properties are available:
Property | Description |
---|---|
countryId | Country ID |
formConfig | Corresponds to the form |
configuration of a product in the my ™ area defined by the product ID. | |
vendor | Vendor ID |
Custom styles
Custom styles can be applied by directly adjusting CSS on the vendor's side. For example, here are some CSS selectors and their corresponding elements:
Element | Selector |
---|---|
Cart container heading | cart-container .cd-cart-container .cart-heading |
Purchase button (Buy now) | cart-container .cd-cart .purchase-button |
Product name in the cart | cart-container .product-name |
Product price in the cart | cart-container .product-price |
Add to cart button | add-to-cart-button .cart-button |