Files
old-experiments/backend/wordpress/wp-content/plugins/woocommerce-jetpack/includes/class-wcj-add-to-cart.php
2018-06-29 14:40:28 +02:00

40 lines
1.0 KiB
PHP
Executable File

<?php
/**
* Booster for WooCommerce - Module - Add to Cart
*
* @version 3.3.0
* @author Algoritmika Ltd.
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! class_exists( 'WCJ_Add_To_Cart' ) ) :
class WCJ_Add_To_Cart extends WCJ_Module {
/**
* Constructor.
*
* @version 3.3.0
*/
function __construct() {
$this->id = 'add_to_cart';
$this->short_desc = __( 'Add to Cart Button Labels', 'woocommerce-jetpack' );
$this->desc = __( 'Change text for Add to Cart button by product type, by product category or for individual products.', 'woocommerce-jetpack' );
$this->link_slug = 'woocommerce-add-to-cart-labels';
parent::__construct();
if ( $this->is_enabled() ) {
include_once( 'add-to-cart/class-wcj-add-to-cart-per-category.php' );
include_once( 'add-to-cart/class-wcj-add-to-cart-per-product.php' );
include_once( 'add-to-cart/class-wcj-add-to-cart-per-product-type.php' );
}
}
}
endif;
return new WCJ_Add_To_Cart();