Skip to content

Widget

The integration of the widget requires to edit themes and templates in WooCommerce. At this moment, WooCommerce provides two ways to customize the appearance of your store (theming): using Block Theme Development or Classic Theme Development.

You will need to edit your theme and add custom PHP code to add the widget on the product page. The objective is to make the page both (1) import the script and (2) instantiate the HTML custom element. Please refer to the general Widget section for instructions on what the page should include.

Through PHP code, you will need to retrieve the product information that is needed to populate the widget instantiation, such as product ID, available sizes, etc., as well as global information, such as the current language of the website.