-
Notifications
You must be signed in to change notification settings - Fork 0
/
free-wholesale-pricing-and-multiple-price-categories.php
57 lines (43 loc) · 1.69 KB
/
free-wholesale-pricing-and-multiple-price-categories.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/*
Plugin Name: Free Wholesale Pricing and Multiple Price Categories
Description: The Wholesale Pricing and Multiple Price Categories plugin is a robust extension designed for your WordPress website, enabling store owners to provide wholesale pricing to their customers. With this plugin, you can easily create multiple price categories based on quantity thresholds, allowing for tiered pricing that caters to bulk purchases.
Short Description: Manage wholesale pricing based on quantity in WooCommerce.
Author: Abdelhamid Karam
Author URI: https://abdelhamid.dev
Requires at least: 5.2
Requires PHP: 5.6.20
Version: 1.0.0
Tested up to: 6.6
License: GPLv2
Text Domain: free-wholesale-pricing-and-multiple-price-categories
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
Tags: b2b,catalog mode , dynamic pricing, wholesale pricing, woocommerce wholesale
*/
if ( ! defined( 'ABSPATH' ) ) exit;
if (!defined('fwpampc_PLUGIN_FILE')) {
define('fwpampc_PLUGIN_FILE', __FILE__);
}
function fwpampc_url()
{
return untrailingslashit(plugins_url('/', fwpampc_PLUGIN_FILE));
}
//load langs
add_action('init', 'fwpampc_load_textdomain');
function fwpampc_load_textdomain()
{
load_plugin_textdomain(
domain: 'free-wholesale-pricing-and-multiple-price-categories',
deprecated: false,
plugin_rel_path: dirname(plugin_basename(__FILE__)) . '/languages/'
);
}
//styles
require('includes/admin/css-load.php');
require('includes/public/css-load.php');
//admin fields
require('includes/admin/class-wholesale-field.php');
// public boxes
require('includes/public/boxes-before-quantity.php');
// price recalculate
require('includes/public/product-price-recalculate.php');