Apply product group's capacity

This commit is contained in:
Timur Gogolev 2021-10-07 15:34:29 +03:00 committed by And Finally
parent 038ca86abb
commit 7e428cfbbf
1 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,8 @@ class WC_Admin_Addons {
<div class="addon-product-group__items">
<ul class="<?php echo esc_attr( $product_list_classes ); ?>">
<?php
foreach ( $block->items as $item ) {
$products = array_slice( $block->items, 0, $capacity );
foreach ( $products as $item ) {
self::render_product_card( $item );
}
?>