You can add size charts in any part of your shop using PHP code:
<?php do_action('yith_wcpsc_print_product_size_charts', $also_tabs, $type); ?>
This code allow you to print all size charts. Hook parameters are:
- $also_tabs: boolean, if set as true, it prints also size chart which option Display as is set as “Tab”; but not if it is set as false.
- $type: two display modes are available: “list” or “button”.
<?php do_action('yith_wcpsc_print_product_size_chart_by_id', $id, true); ?>
This code allow you to print a button that opens a specific size chart.
- $id: ID of the size chart that has to be printed.