PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 1.2.1
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v1.2.1
2.8.0 2.7.0 2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 All 44 releases
sellkit / includes / dynamic-keywords / keywords / order-total.php

order-total.php in SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster 1.2.1, at includes/dynamic-keywords/keywords/order-total.php

46 lines 754 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class Order_Total extends Tag_Base {
4
5 // phpcs:disable Generic.CodeAnalysis.UselessOverridingMethod
6 public function __construct() {
7 parent::__construct();
8 }
9
10 /**
11 * Get class id.
12 *
13 * @return string
14 */
15 public function get_id() {
16 return '_order_total';
17 }
18
19 /**
20 * Get class title.
21 *
22 * @param array $atts array of shortcode arguments.
23 * @return string
24 */
25 public function get_title() {
26 return esc_html__( 'Order Total', 'sellkit' );
27 }
28
29 /**
30 * Render true content.
31 *
32 * @return string
33 */
34 public function render_content( $atts ) {
35 $this->get_data();
36
37 if ( empty( self::$order ) ) {
38 return $this->shortcode_content( $atts );
39 }
40
41 $order_data = self::$order->get_data();
42
43 return $order_data['total'];
44 }
45 }
46