<?php /** * Option keys for ecommerce * * @package Tutor\Ecommerce * @author Themeum * @link https://themeum.com * @since 3.0.0 */ namespace Tutor\Ecommerce; /** * Option key names */ class OptionKeys { // Currency Settings. const CURRENCY_CODE = 'currency_code'; const CURRENCY_POSITION = 'currency_position'; const THOUSAND_SEPARATOR = 'thousand_separator'; const DECIMAL_SEPARATOR = 'decimal_separator'; const NUMBER_OF_DECIMALS = 'number_of_decimals'; // Payment Methods. const IS_ENABLE_PAYPAL_PAYMENT = 'is_enable_paypal_payment'; const IS_ENABLE_STRIPE_PAYMENT = 'is_enable_stripe_payment'; // Tax and Coupon Settings. const IS_TAX_APPLICABLE = 'is_tax_applicable'; const IS_COUPON_APPLICABLE = 'is_coupon_applicable'; // Billing Information Settings. const BILLING_ADDRESS = 'billing_address'; const BILLING_PHONE_NUMBER = 'billing_phone_number'; const BILLING_EMAIL = 'billing_email'; // Ecommerce Policies. const PRIVACY_POLICY = 'ecommerce_privacy_policy'; // Payment settings. const MANUAL_PAYMENT_KEY = 'tutor_manual_payments'; const PAYMENT_SETTINGS = 'payment_settings'; /** * Get billing field options * * @since 3.0.0 * * @return array */ public static function get_billing_field_options() { $options = array( 'optional' => __( 'Optional', 'tutor' ), 'required' => __( 'Required', 'tutor' ), 'omit' => __( 'Don\'t Include', 'tutor' ), ); return apply_filters( 'tutor_ecommerce_billing_field_options', $options ); } /** * Get tax configuration page url * * @since 3.0.0 * * @return array */ public static function get_tax_config_page_url() { $url = admin_url( 'admin.php?page=tutor_settings&tab=tax_configuration' ); return apply_filters( 'tutor_tax_config_page_url', $url ); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
PaymentGateways | Folder | 0755 |
|
|
AdminMenu.php | File | 2.34 KB | 0644 |
|
BillingController.php | File | 5.57 KB | 0644 |
|
CartController.php | File | 5.46 KB | 0644 |
|
CheckoutController.php | File | 26.97 KB | 0644 |
|
CouponController.php | File | 21.48 KB | 0644 |
|
Ecommerce.php | File | 5.12 KB | 0644 |
|
EmailController.php | File | 24.96 KB | 0644 |
|
HooksHandler.php | File | 11.75 KB | 0644 |
|
OptionKeys.php | File | 1.77 KB | 0644 |
|
OrderActivitiesController.php | File | 4.57 KB | 0644 |
|
OrderController.php | File | 33.34 KB | 0644 |
|
PaymentHandler.php | File | 4.25 KB | 0644 |
|
Settings.php | File | 12.7 KB | 0644 |
|
Tax.php | File | 6.35 KB | 0644 |
|
currency.php | File | 27.51 KB | 0644 |
|