<?php

/**
 * @author The Courier Guy
 * @package tcg/model
 * @version 1.0.0
 */
$customPostType = new CustomPostType('product');
$customPostType->addMetaBox(
    'The Courier Guy Settings',
    [
        'form_fields' => [
            'product_free_shipping' => [
                'display_name'  => 'Free Shipping',
                'property_type' => 'checkbox',
                'description'   => __('Enable free shipping for baskets including this product', 'woocommerce'),
                'placeholder'   => '',
                'default'       => '0',
            ],
            'product_single_parcel' => [
                'display_name'  => 'Always pack as single parcel',
                'property_type' => 'checkbox',
                'description'   => __('Enable to ensure this item is always packaged alone', 'woocommerce'),
                'placeholder'   => '',
                'default'       => '0',
            ],
            'product_prohibit_tcg' => [
                'display_name'  => 'Prohibit The Courier Guy',
                'property_type' => 'checkbox',
                'description'   => __('Enable to prohibit The Courier Guy shipping if cart contains this product', 'woocommerce'),
                'placeholder'   => '',
                'default'       => '0',
            ],
        ]
    ]
);
