Product::retail_price()
Summary
Get the retail price (MSRP) of the product
Return
(string) The formatted currency string for the product's retail price
Source
File: src/BigCommerce/Post_Types/Product/Product.php
public function retail_price() { /** * Filter the retail price of the product * * @param float $retail_price The retail price of the product * @param Product $product The product object */ $price = apply_filters( 'bigcommerce/produce/retail_price/data', (float) $this->get_property( 'retail_price' ), $this ); if ( $price ) { /** * Filter the formatted retail price for a product * * @param string $retail_price The formatted retail price * @param Product $product The product object */ return apply_filters( 'bigcommerce/product/retail_price/formatted', $this->format_currency( $price ), $this ); } return ''; }