# merchant/2.3.0/inc/compatibility/class-merchant-botiga-theme.php

Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together &amp; More for WooCommerce – Merchant, version 2.3.0. 44 lines.

- Page: https://pluginprobe.com/plugins/merchant/2.3.0/code/inc/compatibility/class-merchant-botiga-theme.php
- Raw: https://pluginprobe.com/plugins/merchant/2.3.0/raw/inc/compatibility/class-merchant-botiga-theme.php
- Modified: 2026-07-21T16:38:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/merchant/2.3.0/code/inc/compatibility/class-merchant-botiga-theme.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

/**
 * Botiga theme compatibility layer
 */
if ( ! class_exists( 'Merchant_Botiga_Theme' ) ) {
	class Merchant_Botiga_Theme {

		/**
		 * Constructor.
		 */
		public function __construct() {
			add_action( 'wp_enqueue_scripts', array( $this, 'styles' ) );
		}

		/**
		 * Load compatibility styles if the Botiga theme is installed and active.
		 *
		 * @return void
		 */
		public function styles() {
			if ( ! merchant_is_botiga_active() ) {
				return;
			}

			wp_enqueue_style(
				'merchant-botiga-compatibility',
				MERCHANT_URI . 'assets/css/compatibility/botiga/style.min.css',
				array(),
				MERCHANT_VERSION
			);
		}
	}

	/**
	 * The class object can be accessed with "global $botiga_compatibility", to allow removing actions.
	 * Improving Third-party integrations.
	 */
	$merchant_botiga_compatibility = new Merchant_Botiga_Theme();
}

```
