PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.2
ShopBuilder – WooCommerce Builder For Elementor v3.2.2
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / templates / elementor / single-product / add-to-cart.php

add-to-cart.php in ShopBuilder – WooCommerce Builder For Elementor 3.2.2, at templates/elementor/single-product/add-to-cart.php

25 lines 851 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template variables:
4 *
5 * @var $controllers array Widgets/Addons Settings
6 * @var $product_type array Widgets/Addons Settings
7 */
8
9 // Do not allow directly accessing this file.
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit( 'This script cannot be accessed directly.' );
12 }
13
14 global $product;
15 if ( empty( $product ) ) {
16 return;
17 }
18
19 $ajax_class = ! empty( $controllers['enable_single_ajax_add_to_cart'] ) ? ' has-ajax-cart' : ' no-ajax-cart';
20 $wrapper_class = 'rtsb-product-add-to-cart has-cart-button quantity-' . $controllers['quantity_style'] . $controllers['visibility'] . $ajax_class;
21 ?>
22 <div class="<?php echo esc_attr( $wrapper_class ); ?>" data-cart-icon="<?php echo esc_attr( $controllers['cart_icon_html'] ); ?>" data-product-type='<?php echo esc_attr( $product_type ); ?>'>
23 <?php woocommerce_template_single_add_to_cart(); ?>
24 </div>
25