Class WC_Product_Simple

Simple Product Class

The default product type kinda product.

WC_Product
Extended by WC_Product_Simple
Package: WooCommerce\Classes\Products
Category: Class
Author: WooThemes
Version: 2.0.0
Class: WC_Product_Simple
Located at includes/class-wc-product-simple.php

Methods summary

public
# __construct( mixed $product )

__construct function.

__construct function.

Parameters

$product
mixed
$product

Overrides

WC_Product::__construct
public string
# add_to_cart_url( )

Get the add to url used mainly in loops.

Get the add to url used mainly in loops.

Returns

string

Overrides

WC_Product::add_to_cart_url
public string
# add_to_cart_text( )

Get the add to cart button text

Get the add to cart button text

Returns

string

Overrides

WC_Product::add_to_cart_text
public string
# get_title( )

Get the title of the post.

Get the title of the post.

Returns

string

Overrides

WC_Product::get_title
public
# grouped_product_sync( )

Sync grouped products with the children lowest price (so they can be sorted by price accurately).

Sync grouped products with the children lowest price (so they can be sorted by price accurately).

Methods inherited from WC_Product

__get(), __isset(), adjust_price(), backorders_allowed(), backorders_require_notification(), enable_dimensions_display(), exists(), get_attribute(), get_attributes(), get_availability(), get_average_rating(), get_categories(), get_children(), get_cross_sells(), get_dimensions(), get_file(), get_file_download_path(), get_files(), get_formatted_name(), get_gallery_attachment_ids(), get_image(), get_image_id(), get_parent(), get_permalink(), get_post_data(), get_price(), get_price_excluding_tax(), get_price_html(), get_price_html_from_text(), get_price_html_from_to(), get_price_including_tax(), get_price_suffix(), get_rating_count(), get_rating_html(), get_regular_price(), get_related(), get_sale_price(), get_shipping_class(), get_shipping_class_id(), get_sku(), get_stock_quantity(), get_tags(), get_tax_class(), get_tax_status(), get_total_stock(), get_upsells(), get_weight(), has_attributes(), has_child(), has_dimensions(), has_enough_stock(), has_file(), has_weight(), increase_stock(), is_downloadable(), is_featured(), is_in_stock(), is_on_backorder(), is_on_sale(), is_purchasable(), is_shipping_taxable(), is_sold_individually(), is_taxable(), is_type(), is_virtual(), is_visible(), list_attributes(), managing_stock(), needs_shipping(), reduce_stock(), set_price(), set_stock(), set_stock_status(), single_add_to_cart_text()

Magic methods summary

Properties summary

Properties inherited from WC_Product

$id, $post, $product_type

WooCommerce API documentation generated by ApiGen 2.8.0