Automattic\WooCommerce\Blocks\Templates
ExternalProductAddToCartWithOptionsTemplate{}└─ AbstractTemplatePart
ExternalProductAddToCartWithOptionsTemplate class.
No Hooks.
Usage
$ExternalProductAddToCartWithOptionsTemplate = new ExternalProductAddToCartWithOptionsTemplate(); // use class methods
Methods
- public get_template_description()
- public get_template_title()
- public init()
ExternalProductAddToCartWithOptionsTemplate{} ExternalProductAddToCartWithOptionsTemplate{} code WC 10.7.0
class ExternalProductAddToCartWithOptionsTemplate extends AbstractTemplatePart {
/**
* The slug of the template.
*
* @var string
*/
const SLUG = 'external-product-add-to-cart-with-options';
/**
* The template part area where the template part belongs.
*
* @var string
*/
public $template_area = 'add-to-cart-with-options';
/**
* Initialization method.
*/
public function init() {
}
/**
* Returns the title of the template.
*
* @return string
*/
public function get_template_title() {
return _x( 'External Product Add to Cart + Options', 'Template name', 'woocommerce' );
}
/**
* Returns the description of the template.
*
* @return string
*/
public function get_template_description() {
return __( 'Template used to display the Add to Cart + Options form for External Products.', 'woocommerce' );
}
}