import ControlsGroup from "@/pages/settings/controls/ControlsGroup";
import Tooltip from "@/common/Tooltip";
import Card, { CardContent, CardHeader } from "@/components/Card";
import { __ } from "@wordpress/i18n";
const WooCommerce = () => {
const controls = [
{
id: 'woo_bypass',
type: 'checkbox-group',
label: __('Don\'t cache the following WooCommerce page types', 'wp-cloudflare-page-cache'),
controls: [{
id: 'cf_bypass_woo_cart_page',
type: 'checkbox',
label:
{__('Cart', 'wp-cloudflare-page-cache')} is_cart
,
recommended: true,
},
{
id: 'cf_bypass_woo_checkout_page',
type: 'checkbox',
label: {__('Checkout', 'wp-cloudflare-page-cache')} is_checkout
,
recommended: true,
},
{
id: 'cf_bypass_woo_checkout_pay_page',
type: 'checkbox',
label: {__('Checkout\'s pay page', 'wp-cloudflare-page-cache')} is_checkout_pay_page
,
recommended: true,
},
{
id: 'cf_bypass_woo_product_page',
type: 'checkbox',
label: {__('Product', 'wp-cloudflare-page-cache')} is_product
,
},
{
id: 'cf_bypass_woo_shop_page',
type: 'checkbox',
label: {__('Shop', 'wp-cloudflare-page-cache')} is_shop
,
},
{
id: 'cf_bypass_woo_product_tax_page',
type: 'checkbox',
label: {__('Product taxonomy', 'wp-cloudflare-page-cache')} is_product_taxonomy
,
},
{
id: 'cf_bypass_woo_product_tag_page',
type: 'checkbox',
label: {__('Product tag', 'wp-cloudflare-page-cache')} is_product_tag
,
},
{
id: 'cf_bypass_woo_product_cat_page',
type: 'checkbox',
label: {__('Product category', 'wp-cloudflare-page-cache')} is_product_category
,
},
{
id: 'cf_bypass_woo_pages',
type: 'checkbox',
label: {__('WooCommerce page', 'wp-cloudflare-page-cache')} is_woocommerce
,
},
{
id: 'cf_bypass_woo_account_page',
type: 'checkbox',
label: {__('My Account page', 'wp-cloudflare-page-cache')} is_account_page
,
recommended: true,
}]
},
{
id: 'cf_auto_purge_woo_product_page',
type: 'toggle',
label: __('Automatically purge cache for product page and related categories when stock quantity changes', 'wp-cloudflare-page-cache'),
},
{
id: 'cf_auto_purge_woo_scheduled_sales',
type: 'toggle',
label: __('Automatically purge cache for scheduled sales', 'wp-cloudflare-page-cache'),
}
];
return (
{__('WooCommerce settings', 'wp-cloudflare-page-cache')}
);
};
export default WooCommerce;