<?php

namespace Objectiv\Plugins\Checkout\Compatibility\Themes;

use Objectiv\Plugins\Checkout\Compatibility\CompatibilityAbstract;

class Stockie extends CompatibilityAbstract {
	public function is_available(): bool {
		return function_exists( 'stockie_comment' );
	}

	public function run() {
		remove_action( 'woocommerce_after_checkout_form', 'woocommerce_checkout_coupon_form' );
		remove_filter( 'woocommerce_cart_item_name', 'stockie_add_cart_product_category', 99 );
	}
}
