view.php
119 lines
| 1 | <?php |
| 2 | |
| 3 | defined('ABSPATH') || exit; |
| 4 | ?> |
| 5 | <div class="shopengine-cart-table"> |
| 6 | <form class="shopengine-cart-form woocommerce-cart-form" action="javascript:void(0)" method="post"> |
| 7 | |
| 8 | <?php do_action('woocommerce_before_cart_table'); ?> |
| 9 | |
| 10 | <!-- shopengine cart table start --> |
| 11 | <div class="shopengine-table"> |
| 12 | |
| 13 | <!-- ------------------------------- |
| 14 | shopengine cart table head start |
| 15 | -------------------------------------> |
| 16 | <div class="shopengine-table__head"> |
| 17 | <div class="shopengine-table__head--th product-name"><?php echo esc_html($settings['shopengine_cart_table_title']) ?></div> |
| 18 | <div class="shopengine-table__head--th product-price"><?php echo esc_html($settings['shopengine_cart_table_price']) ?></div> |
| 19 | <div class="shopengine-table__head--th product-quantity"><?php echo esc_html($settings['shopengine_cart_table_quantity']) ?></div> |
| 20 | <div class="shopengine-table__head--th product-subtotal"><?php echo esc_html($settings['shopengine_cart_table_subtotal']) ?></div> |
| 21 | </div> <!-- shopengine cart table head end --> |
| 22 | |
| 23 | <!--------------------------------------- |
| 24 | shopengine cart table body start |
| 25 | ------------------------------------- --> |
| 26 | <div class="shopengine-table__body"> |
| 27 | <?php do_action('woocommerce_before_cart_contents'); ?> |
| 28 | |
| 29 | |
| 30 | <div class="shopengine-table__body-item" cart_item="="> |
| 31 | <div class="shopengine-table__body-item--td table-first-body-column"> |
| 32 | <!-- Product Thumbnail and remove button together --> |
| 33 | <div class="product-thumbnail" data-title="Image"> |
| 34 | <a title="<?php esc_html_e('Product Thumbnail', 'shopengine') ?>" href="https://en.gravatar.com/userimage/215260729/3cb6b9fe31d9ee9112faba4c056a9d0e.jpg?size=300"> |
| 35 | <img width="300" height="300" src="https://en.gravatar.com/userimage/215260729/3cb6b9fe31d9ee9112faba4c056a9d0e.jpg?size=300" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt="<?php esc_attr_e('Beanie with logo','shopengine'); ?>" loading="lazy" sizes="(max-width: 300px) 100vw, 300px"> |
| 36 | </a> |
| 37 | <!-- remove button --> |
| 38 | <div class="product-remove"> |
| 39 | <a title="<?php esc_html_e('Remove Item','shopengine')?>" href="javascript:void(0)" class="remove" aria-label="Remove this item" data-product_id="34" data-product_sku="Woo-beanie-logo"> |
| 40 | <span class="ahfb-svg-iconset ast-inline-flex"> |
| 41 | <svg class="ast-mobile-svg ast-close-svg" fill="currentColor" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> |
| 42 | <path d="M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"></path> |
| 43 | </svg> |
| 44 | </span> |
| 45 | </a> |
| 46 | </div> |
| 47 | </div> |
| 48 | </div> |
| 49 | |
| 50 | <!-- product name --> |
| 51 | <div class="shopengine-table__body-item--td product-name" data-title="Product"> |
| 52 | <a title="<?php esc_html_e('Product Name','shopengine')?>"href="https://en.gravatar.com/userimage/215260729/3cb6b9fe31d9ee9112faba4c056a9d0e.jpg?size=300">Beanie with Logo</a> |
| 53 | </div> |
| 54 | <!-- product price --> |
| 55 | <div class="shopengine-table__body-item--td product-price" data-title="Price"> |
| 56 | <span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>100.00</bdi></span> |
| 57 | </div> |
| 58 | |
| 59 | <!-- product quantity --> |
| 60 | <div class="shopengine-table__body-item--td product-quantity" data-title="Quantity"> |
| 61 | <div class="shopengine-cart-quantity"> |
| 62 | <span class="minus-button">−</span><span class="plus-button">+</span> |
| 63 | <div class="quantity buttons_added"><a title="<?php esc_html_e('Minus','shopengine')?>" href="javascript:void(0)" class="minus">-</a> |
| 64 | <label class="screen-reader-text" for="quantity_62e659e085d4e">Beanie with Logo quantity</label> |
| 65 | <input type="number" id="quantity_62e659e085d4e" class="input-text qty text" step="1" min="0" max="" name="cart[e369853df766fa44e1ed0ff613f563bd][qty]" value="1" title="Qty" size="4" placeholder="" inputmode="numeric" autocomplete="off"> |
| 66 | <a title="<?php esc_html_e('Plus','shopengine')?>" href="javascript:void(0)" class="plus">+</a> |
| 67 | </div> |
| 68 | </div> |
| 69 | |
| 70 | </div> |
| 71 | |
| 72 | <!-- product subtotal --> |
| 73 | <div class="shopengine-table__body-item--td product-subtotal" data-title="Subtotal"> |
| 74 | <span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>100.00</bdi></span> |
| 75 | </div> |
| 76 | |
| 77 | </div> |
| 78 | |
| 79 | |
| 80 | <?php do_action('woocommerce_cart_contents'); ?> |
| 81 | <?php do_action('woocommerce_after_cart_contents'); ?> |
| 82 | |
| 83 | </div> <!-- shopengine cart table body end --> |
| 84 | |
| 85 | <!-------------------------------- |
| 86 | shopengine cart table footer start |
| 87 | ------------------------------- --> |
| 88 | <div class="shopengine-table__footer"> |
| 89 | |
| 90 | <div class="button-group-left"> |
| 91 | <button class="return-to-shop shopengine-footer-button"> |
| 92 | <i class="eicon-arrow-left"></i> |
| 93 | <a title="<?php esc_html_e('Return To Shop','shopengine')?>" href="<?php echo esc_url(apply_filters('woocommerce_return_to_shop_redirect', wc_get_page_permalink('shop'))); ?>"> |
| 94 | <?php echo esc_html(apply_filters('woocommerce_return_to_shop_text', esc_html($settings['shopengine_cart_continue_shopping_btn']))); ?> |
| 95 | </a> |
| 96 | </button> |
| 97 | </div> |
| 98 | |
| 99 | <div class="button-group-right"> |
| 100 | <button type="submit" class="button update-cart-btn shopengine-footer-button" name=""> |
| 101 | <i class="eicon-redo"></i> |
| 102 | <?php echo esc_html($settings['shopengine_cart_table_update']); ?> |
| 103 | </button> |
| 104 | |
| 105 | <button class="clear-btn shopengine-footer-button" type="submit" name="empty_cart"> |
| 106 | <i class="eicon-trash-o"></i> |
| 107 | <?php echo esc_html($settings['shopengine_cart_table_clear_all']); ?> |
| 108 | </button> |
| 109 | </div> |
| 110 | <?php do_action('woocommerce_cart_actions'); ?> |
| 111 | |
| 112 | </div> <!-- shopengine cart table footer end --> |
| 113 | |
| 114 | </div> <!-- shopengine cart table end --> |
| 115 | <?php do_action('woocommerce_after_cart_table'); ?> |
| 116 | </form> |
| 117 | |
| 118 | <?php do_action('woocommerce_after_cart'); ?> |
| 119 | </div> |