| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
?> |
| 6 |
<div class="merchant-cart-preview"> |
| 7 |
<div class="my-cart"> |
| 8 |
<div class="cart-title"><?php |
| 9 |
esc_html_e( 'My Cart', 'merchant' ); ?></div> |
| 10 |
<table class="cart-table"> |
| 11 |
<tr> |
| 12 |
<th class="product-col"><?php |
| 13 |
esc_html_e( 'PRODUCT', 'merchant' ); ?></th> |
| 14 |
<th class="price-col"><?php |
| 15 |
esc_html_e( 'PRICE', 'merchant' ); ?></th> |
| 16 |
<th class="quantity-col"><?php |
| 17 |
esc_html_e( 'QUANTITY', 'merchant' ); ?></th> |
| 18 |
<th class="total-col"><?php |
| 19 |
esc_html_e( 'TOTAL', 'merchant' ); ?></th> |
| 20 |
</tr> |
| 21 |
<tr class="cart-item"> |
| 22 |
<td class="product-column"> |
| 23 |
<div class="product"> |
| 24 |
<div class="product-image"></div> |
| 25 |
<div class="product-info"> |
| 26 |
<div class="product-name"><?php |
| 27 |
esc_html_e( 'Your Product Name', 'merchant' ); ?></div> |
| 28 |
<p class="upsell-offer"><?php |
| 29 |
esc_html_e( 'Add', 'merchant' ); ?></p> |
| 30 |
<div class="upsell-product"> |
| 31 |
<div class="upsell-image"></div> |
| 32 |
<div class="upsell-info"> |
| 33 |
<div class="upsell-name"><?php |
| 34 |
esc_html_e( 'Product Name', 'merchant' ); ?></div> |
| 35 |
<button class="add-to-cart"><?php |
| 36 |
esc_html_e( 'Add To Cart', 'merchant' ); ?></button> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
</td> |
| 42 |
<td class="price-col"> |
| 43 |
<span class="original-price"><?php |
| 44 |
echo wp_kses( wc_price( 16 ), merchant_kses_allowed_tags( array( 'bdi' ) ) ) ?></span> |
| 45 |
<span class="discounted-price"><?php |
| 46 |
echo wp_kses( wc_price( 12 ), merchant_kses_allowed_tags( array( 'bdi' ) ) ) ?></span> |
| 47 |
</td> |
| 48 |
<td class="quantity-col"> |
| 49 |
<div class="quantity-control"> |
| 50 |
<button class="decrease">-</button> |
| 51 |
<input type="text" value="1" min="1"> |
| 52 |
<button class="increase">+</button> |
| 53 |
</div> |
| 54 |
</td> |
| 55 |
<td class="total-col"><?php |
| 56 |
echo wp_kses( wc_price( 300 ), merchant_kses_allowed_tags( array( 'bdi' ) ) ) ?></td> |
| 57 |
</tr> |
| 58 |
</table> |
| 59 |
</div> |
| 60 |
</div> |