Class WC_Product_External

External Product Class

External products cannot be bought; they link offsite. Extends simple products.

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

Methods summary

public
# __construct( mixed $product )

__construct function.

__construct function.

Parameters

$product
mixed
$product

Overrides

WC_Product::__construct
public boolean
# is_purchasable( )

Returns false if the product cannot be bought.

Returns false if the product cannot be bought.

Returns

boolean

Overrides

WC_Product::is_purchasable
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
# single_add_to_cart_text( )

Get the add to cart button text for the single page

Get the add to cart button text for the single page

Returns

string

Overrides

WC_Product::single_add_to_cart_text
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_product_url( )

get_product_url function.

get_product_url function.

Returns

string
public string
# get_button_text( )

get_button_text function.

get_button_text function.

Returns

string

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_title(), 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_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()

Magic methods summary

Properties summary

Properties inherited from WC_Product

$id, $post, $product_type

WooCommerce API documentation generated by ApiGen 2.8.0