PHP Class WC_Product_Simple

The default product type kinda product.
Author: WooThemes
Inheritance: extends WC_Product
显示文件 Open project: woocommerce/woocommerce Class Usage Examples

Public Methods

Method Description
__construct ( mixed $product ) Initialize simple product.
add_to_cart_text ( ) : string Get the add to cart button text.
add_to_cart_url ( ) : string Get the add to url used mainly in loops.
get_type ( ) : string Get internal type.

Method Details

__construct() public method

Initialize simple product.
public __construct ( mixed $product )
$product mixed

add_to_cart_text() public method

Get the add to cart button text.
public add_to_cart_text ( ) : string
return string

add_to_cart_url() public method

Get the add to url used mainly in loops.
public add_to_cart_url ( ) : string
return string

get_type() public method

Get internal type.
public get_type ( ) : string
return string