WooCommerce-价格未使用数量选择器更新

时间:2019-07-15 07:40:51

标签: wordpress woocommerce

我正在测试我的WooCommerce商店,但确实发现了一个错误,即使用数量选择器时我的价格没有更新。

这是我用来显示价格的代码:

// Main Price
$prices = array( $product->get_variation_price( 'min', true ), $product->get_variation_price( 'max', true ) );
$price = $prices[0] !== $prices[1] ? sprintf( __( '%s', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );

// Sale Price
$prices = array( $product->get_variation_regular_price( 'min', true ), $product->get_variation_regular_price( 'max', true ) );
sort( $prices );
$saleprice = $prices[0] !== $prices[1] ? sprintf( __( '%s', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );

我只使用可变产品。

此网站网址:https://www.kiepbakspecialist.nl/development/?product=tramag-kiepbak

有人知道为什么数量选择器不起作用吗?

0 个答案:

没有答案