
Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on March 5, 2025, 10:26
Hello
Here is a sample code to get fixed prices
globalĀ $WOOCS;
if ($WOOCS->is_fixed_enabled) {
if ($WOOCS->is_multiple_allowed AND $product !== NULL AND is_object($product)) {
if ($product->is_type('variation')) {
$tmp_val = $WOOCS->_get_product_fixed_price($product, 'variation', $price, $precision);
} elseif ($product->is_type('variable')) {
$tmp_val = -1;
} else {
$tmp_val = $WOOCS->_get_product_fixed_price($product, 'single', $price, $precision);
}
if ((int) $tmp_val !== -1) {
$price = apply_filters('woocs_fixed_raw_woocommerce_price', $tmp_val, $product, $price);
}
}
}
return $price;
Hello
Here is a sample code to get fixed prices
globalĀ $WOOCS;
if ($WOOCS->is_fixed_enabled) {
if ($WOOCS->is_multiple_allowed AND $product !== NULL AND is_object($product)) {
if ($product->is_type('variation')) {
$tmp_val = $WOOCS->_get_product_fixed_price($product, 'variation', $price, $precision);
} elseif ($product->is_type('variable')) {
$tmp_val = -1;
} else {
$tmp_val = $WOOCS->_get_product_fixed_price($product, 'single', $price, $precision);
}
if ((int) $tmp_val !== -1) {
$price = apply_filters('woocs_fixed_raw_woocommerce_price', $tmp_val, $product, $price);
}
}
}
return $price;

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on March 6, 2025, 10:49
Hello
To implement this code into your custom functionality, you should hire a developer. On our side I gave all the information
Hello
To implement this code into your custom functionality, you should hire a developer. On our side I gave all the information