Dynamic cart item pricing not working on orders in WooCommerce 3.0+
问题 I am using WooCommerce 3.0+ and I have set the product price on a certain page. $regular_price = get_post_meta( $_product->id, '_regular_price', true); $buyback_percentage = get_post_meta( $_product->id, '_goldpricelive_buy_back', true); $fixed_amount = get_post_meta( $_product->id, '_goldpricelive_fixed_amount', true); $markedup_price = get_post_meta( $_product->id, '_goldpricelive_markup', true); $buyback_price = ($regular_price - $fixed_amount)/(1 + $markedup_price/100) * (1-$buyback