Save
This commit is contained in:
@@ -1565,7 +1565,7 @@ class WidgetShoppingCart extends WidgetBase
|
||||
$display_class = !empty($settings['title_display']) ? " ce-display-{$settings['title_display']}" : '';
|
||||
$toggle_button_link = $this->context->link->getPageLink('cart', true, null, ['action' => 'show'], false, null, true);
|
||||
$toggle_button_classes = 'elementor-button elementor-size-sm' . ($cart_is_hidden ? ' elementor-cart-hidden' : ''); ?>
|
||||
<div class="elementor-cart__wrapper">
|
||||
<div id="basket-side-panel" class="elementor-cart__wrapper">
|
||||
<?php if (!$cart_is_hidden) { ?>
|
||||
<div class="elementor-cart__container elementor-lightbox">
|
||||
<div class="elementor-cart__main">
|
||||
@@ -1601,27 +1601,30 @@ class WidgetShoppingCart extends WidgetBase
|
||||
$this->renderCartItem($product, $settings);
|
||||
} ?>
|
||||
</div>
|
||||
<div class="elementor-cart__summary">
|
||||
<div class="elementor-cart__summary-label"><?php echo $cart['summary_string']; ?></div>
|
||||
<div class="elementor-cart__summary-value"><?php echo $cart['subtotals']['products']['value']; ?></div>
|
||||
<span class="elementor-cart__summary-label"><?php echo $cart['subtotals']['shipping']['label']; ?></span>
|
||||
<span class="elementor-cart__summary-value"><?php echo $cart['subtotals']['shipping']['value']; ?></span>
|
||||
<strong class="elementor-cart__summary-label"><?php echo $cart['totals']['total']['label']; ?></strong>
|
||||
<strong class="elementor-cart__summary-value"><?php echo $cart['totals']['total']['value']; ?></strong>
|
||||
</div>
|
||||
|
||||
<div class="elementor-alert elementor-alert-warning<?php echo $cart['minimalPurchaseRequired'] ? '' : ' elementor-hidden'; ?>" role="alert">
|
||||
<span class="elementor-alert-description"><?php echo $cart['minimalPurchaseRequired']; ?></span>
|
||||
</div>
|
||||
<div class="elementor-cart__footer-buttons">
|
||||
<div class="elementor-align-justify<?php echo !empty($settings['view_cart_type']) ? " elementor-button-{$settings['view_cart_type']}" : ''; ?>">
|
||||
<a href="<?php echo esc_attr($view_cart_link); ?>" class="elementor-button elementor-button--view-cart elementor-size-<?php echo $settings['view_cart_size']; ?>">
|
||||
<span class="elementor-button-text"><?php echo !empty($settings['view_cart']) ? $settings['view_cart'] : __('View Cart'); ?></span>
|
||||
</a>
|
||||
<div class="elementor-cart__footer-box">
|
||||
<div class="elementor-cart__summary">
|
||||
<!-- <div class="elementor-cart__summary-label"><?php echo $cart['summary_string']; ?></div> -->
|
||||
<!-- <div class="elementor-cart__summary-value"><?php echo $cart['subtotals']['products']['value']; ?></div> -->
|
||||
<span class="elementor-cart__summary-label"><?php echo $cart['subtotals']['shipping']['label']; ?></span>
|
||||
<span class="elementor-cart__summary-value"><?php echo $cart['subtotals']['shipping']['value']; ?></span>
|
||||
<strong class="elementor-cart__summary-label"><?php echo $cart['totals']['total']['label']; ?></strong>
|
||||
<strong class="elementor-cart__summary-value"><?php echo $cart['totals']['total']['value']; ?></strong>
|
||||
</div>
|
||||
<div class="elementor-align-justify<?php echo !empty($settings['checkout_type']) ? " elementor-button-{$settings['checkout_type']}" : ''; ?>">
|
||||
<a href="<?php echo esc_attr($checkout_link); ?>" class="elementor-button elementor-button--checkout elementor-size-<?php echo $settings['view_cart_size'] . $checkout_disabled; ?>">
|
||||
<span class="elementor-button-text"><?php echo !empty($settings['checkout']) ? $settings['checkout'] : __('Checkout'); ?></span>
|
||||
</a>
|
||||
<div class="elementor-cart__footer-buttons">
|
||||
<div class="elementor-align-justify<?php echo !empty($settings['view_cart_type']) ? " elementor-button-{$settings['view_cart_type']}" : ''; ?>">
|
||||
<a href="<?php echo esc_attr($view_cart_link); ?>" class="elementor-button elementor-button--view-cart elementor-size-<?php echo $settings['view_cart_size']; ?>">
|
||||
<span class="elementor-button-text"><?php echo !empty($settings['view_cart']) ? $settings['view_cart'] : __('View Cart'); ?></span>
|
||||
</a>
|
||||
</div>
|
||||
<!-- <div class="elementor-align-justify<?php echo !empty($settings['checkout_type']) ? " elementor-button-{$settings['checkout_type']}" : ''; ?>">
|
||||
<a href="<?php echo esc_attr($checkout_link); ?>" class="elementor-button elementor-button--checkout elementor-size-<?php echo $settings['view_cart_size'] . $checkout_disabled; ?>">
|
||||
<span class="elementor-button-text"><?php echo !empty($settings['checkout']) ? $settings['checkout'] : __('Checkout'); ?></span>
|
||||
</a>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user