PATH:
home
/
thebhoeo
/
public_html
/
officepoint
/
wp-content
/
plugins
/
tier-pricing-table
/
src
/
Frontend
<?php namespace TierPricingTable\Frontend; use TierPricingTable\Core\ServiceContainerTrait; use TierPricingTable\TierPricingTablePlugin; use WP_Post; /** * Class Frontend * * @package TierPricingTable\Frontend */ class Frontend { use ServiceContainerTrait; /** * Frontend constructor. * */ public function __construct() { new PricingTableShortcode(); // Enqueue frontend assets add_action( 'wp_enqueue_scripts', array( $this, 'enqueueAssets' ), 10, 1 ); } /** * Enqueue assets at simple product and variation product page. * * @global WP_Post $post . */ public function enqueueAssets() { wp_enqueue_script( 'tiered-pricing-table-front-js', $this->getContainer()->getFileManager()->locateJSAsset( 'frontend/product-tiered-pricing-table' ), array( 'jquery' ), TierPricingTablePlugin::VERSION ); wp_enqueue_style( 'tiered-pricing-table-front-css', $this->getContainer()->getFileManager()->locateAsset( 'frontend/main.css' ), null, TierPricingTablePlugin::VERSION ); wp_localize_script( 'tiered-pricing-table-front-js', 'tieredPricingGlobalData', [ 'loadVariationTieredPricingNonce' => wp_create_nonce( 'get_pricing_table' ), 'currencyOptions' => [ 'currency_symbol' => get_woocommerce_currency_symbol(), 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), 'trim_zeros' => apply_filters( 'woocommerce_price_trim_zeros', false ), ], 'supportedVariableProductTypes' => TierPricingTablePlugin::getSupportedVariableProductTypes(), 'supportedSimpleProductTypes' => TierPricingTablePlugin::getSupportedSimpleProductTypes(), ] ); } }
[-] Frontend.php
[edit]
[-] PricingTableShortcode.php
[edit]
[+]
..