Автор
Andrey
(@andrey1haletskiy)
Может быть этот код как то поменять?
Файл: yith-woocommerce-wishlist/templates/wishlist-view.php
<!-- [1-я часть кода в этом файле] -->
<?php if ( $show_quantity ) : ?>
<?php $column_count ++; ?>
<th class="product-quantity">
<span class="nobr">
<?php echo esc_html( apply_filters( 'yith_wcwl_wishlist_view_quantity_heading', __( 'Quantity', 'yith-woocommerce-wishlist' ), $wishlist ) ); ?>
</span>
</th>
<?php endif; ?>
<!-- [2-я часть кода в этом файле] -->
<?php if ( $show_quantity ) : ?>
<td class="product-quantity"><!-- кол-во штук -->
<?php do_action( 'yith_wcwl_table_before_product_quantity', $item, $wishlist ); ?>
<?php if ( ! $no_interactions && $wishlist->current_user_can( 'update_quantity' ) ) : ?>
<input type="number" min="1" step="1" name="items[<?php echo esc_attr( $item->get_product_id() ); ?>][quantity]" value="<?php echo esc_attr( $item->get_quantity() ); ?>"/>
<?php else : ?>
<?php echo esc_html( $item->get_quantity() ); ?>
<?php endif; ?>
<?php do_action( 'yith_wcwl_table_after_product_quantity', $item, $wishlist ); ?>
</td>
<?php endif; ?>
Как изменить цену с изменением кол-ва единиц 1-го продукта на стр. «Избранные продукты», плагина «YITH WooCommerce Wishlist»?
Видимо купить премиальную версию этого плагина.
Там же русским по белому написано, что цена только за одну единицу продукта и не меняется при изменении кол-ва.
Таков функционал плагина.
Если вас он не устраивает, подберите плагин, который устраивает вас полностью.