add_filter( "wpo_prepare_item", function ( $item, $product ) {
$item['item_cost'] = $product->get_price();
return $item;
}, 10, 2 );
add_filter( "wpo_update_cart_loaded_product", function ( $loaded_product, $item ) {
$loaded_product['item_cost'] = $item['data']->get_price();
$loaded_product['readonly_price'] = $item['data']->get_price();
return $loaded_product;
}, 10, 2 );
add_filter( 'wpo_cart_item_is_price_readonly', "__return_true", 10, 0 );Wholesale Market, By CedCommerce Print
Created by: Alex Prokaev
Modified on: Mon, 6 Jan, 2020 at 10:42 AM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.