default.php
25 lines
| 1 | <?php |
| 2 | defined('ABSPATH') || exit; |
| 3 | if (\Elementor\Plugin::$instance->editor->is_edit_mode() || \Elementor\Plugin::$instance->preview->is_preview_mode()): |
| 4 | $page_type = \ShopEngine\Widgets\Products::instance()->get_template_type_by_id(get_the_ID()); |
| 5 | if (!empty($page_type) && $page_type === 'single'): ?> |
| 6 | <div class="woocommerce-message" role="alert"> |
| 7 | <button title="<?php esc_html_e('View Cart Item','shopengine')?>" tabindex="1" class="button wc-forward"><?php esc_html_e('View cart', 'shopengine')?></button><?php esc_html_e('“Beanie” has been added to your cart.', 'shopengine')?> |
| 8 | </div> |
| 9 | <?php else: ?> |
| 10 | <div class="shopengine-checkout-notice"> |
| 11 | <ul class="woocommerce-error" role="alert"> |
| 12 | <li data-id="billing_first_name"> |
| 13 | <strong><?php esc_html_e('Billing First name', 'shopengine')?></strong> <?php esc_html_e('is a required field.', 'shopengine')?> |
| 14 | </li> |
| 15 | <li data-id="billing_email"> |
| 16 | <strong><?php esc_html_e('Billing Email address', 'shopengine')?></strong> <?php esc_html_e('is a required field.', 'shopengine')?> |
| 17 | </li> |
| 18 | </ul> |
| 19 | </div> |
| 20 | <?php endif;?> |
| 21 | <?php else: ?> |
| 22 | <div class="shopengine-checkout-notice"> |
| 23 | <?php is_single() ? wc_print_notices() : ''?> |
| 24 | </div> |
| 25 | <?php endif;?> |