PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution with eCommerce Templates & Woo Widgets / 4.9.4
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution with eCommerce Templates & Woo Widgets v4.9.4
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.1 3.0.0 3.1.0 3.1.1 4.0.0 4.0.1 4.1.0 4.1.1 4.2.0 4.2.1 4.3.0 4.3.1 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.7.8 4.7.9 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.8.9 trunk 0.1.2-beta 0.1.3-beta 0.1.4-beta 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.5.0 1.5.1 1.6.0 1.6.1 1.7.0 1.8.0 1.8.1 1.9.0
shopengine / widgets / checkout-review-order / checkout-review-order-config.php
shopengine / widgets / checkout-review-order Last commit date
screens 2 years ago checkout-review-order-config.php 3 years ago checkout-review-order.php 3 years ago
checkout-review-order-config.php
52 lines
1 <?php
2
3 namespace Elementor;
4
5 defined('ABSPATH') || exit;
6
7 class ShopEngine_Checkout_Review_Order_Config extends \ShopEngine\Base\Widget_Config {
8
9 public function get_name() {
10 return 'checkout-review-order';
11 }
12
13
14 public function get_title() {
15 return esc_html__('Checkout Order Review', 'shopengine');
16 }
17
18
19 public function get_icon() {
20 return 'shopengine-widget-icon shopengine-icon-checkout_review_order';
21 }
22
23
24 public function get_categories() {
25 return ['shopengine-checkout'];
26 }
27
28
29 public function get_keywords() {
30 return ['checkout', 'shopengine', 'checkout review orders', 'review orders'];
31 }
32
33
34 public function get_template_territory() {
35 return ['checkout', 'quick_checkout'];
36 }
37
38 public static function add_product_thumbnail( $cart_item ) {
39
40 if(!empty($cart_item['product_id'])) {
41 $product = wc_get_product( intval($cart_item['product_id']) );
42 $product_id = !empty( $cart_item['variation_id'] ) ? intval($cart_item['variation_id']) : $product->get_id();
43 $attachment = wp_get_attachment_image( get_post_thumbnail_id( $product_id ), 'single-post-thumbnail' );
44
45 if(empty($attachment)) {
46 $attachment = wp_get_attachment_image( $product->get_image_id(), 'full' );
47 }
48 shopengine_content_render($attachment);
49 }
50 }
51 }
52