<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
use Bookly\Lib\Utils\Common;
use Bookly\Lib\Utils\Price;
use Bookly\Frontend\Modules\Booking\Lib\Steps;
use Bookly\Frontend\Modules\Booking\Proxy as BookingProxy;
/** @var \Bookly\Lib\UserBookingData $userData
* @var \Bookly\Lib\CartInfo $cart_info
* @var array $table
*/
echo $progress_tracker;
?>
<div class="bookly-box"><?php echo $info_text ?></div>
<?php if ( $userData->getFirstStep() != Steps::CART && get_option( 'bookly_app_button_book_more_near_next' ) == '0' ) : ?>
<div class="bookly-box">
<button class="bookly-add-item bookly-btn ladda-button" data-style="zoom-in" data-spinner-size="40">
<span class="ladda-label"><?php echo Common::getTranslatedOption( 'bookly_l10n_button_book_more' ) ?></span>
</button>
</div>
<?php endif ?>
<div class="bookly-box bookly-label-error"></div>
<div class="bookly-cart-step">
<div class="bookly-cart bookly-box">
<table>
<thead class="bookly-desktop-version">
<tr>
<?php foreach ( $table['headers'] as $position => $column ) : ?>
<th <?php if ( isset( $table['header_position']['price'] ) && $position == $table['header_position']['price'] ) echo 'class="bookly-rtext"' ?>><?php echo $column ?></th>
<?php endforeach ?>
<th></th>
</tr>
</thead>
<tbody class="bookly-desktop-version">
<?php foreach ( $table['rows'] as $key => $data ) : ?>
<tr data-cart-key="<?php echo $key ?>" class="bookly-cart-primary">
<?php foreach ( $data as $position => $value ) : ?>
<td <?php if ( isset( $table['header_position']['price'] ) && $position == $table['header_position']['price'] ) echo 'class="bookly-rtext"' ?>><?php echo $value ?></td>
<?php endforeach ?>
<td class="bookly-rtext bookly-nowrap bookly-js-actions">
<button class="bookly-round" data-action="edit" title="<?php esc_attr_e( 'Edit', 'bookly' ) ?>" data-style="zoom-in" data-spinner-size="30"><span class="ladda-label"><i class="bookly-icon-sm bookly-icon-edit"></i></span></button>
<button class="bookly-round" data-action="drop" title="<?php esc_attr_e( 'Remove', 'bookly' ) ?>" data-style="zoom-in" data-spinner-size="30"><span class="ladda-label"><i class="bookly-icon-sm bookly-icon-drop"></i></span></button>
</td>
</tr>
<?php BookingProxy\Shared::renderCartItemInfo( $userData, $key, $table['header_position'], true ) ?>
<?php BookingProxy\Discounts::renderCartItemInfo( $userData, $key, $table['header_position'], true ) ?>
<?php endforeach ?>
</tbody>
<tbody class="bookly-mobile-version">
<?php foreach ( $table['rows'] as $key => $data ) : ?>
<?php foreach ( $data as $position => $value ) : ?>
<tr data-cart-key="<?php echo $key ?>" class="bookly-cart-primary">
<th><?php echo $table['headers'][ $position ] ?></th>
<td><?php echo $value ?></td>
</tr>
<?php endforeach ?>
<?php BookingProxy\Shared::renderCartItemInfo( $userData, $key, $table['header_position'], false ) ?>
<tr data-cart-key="<?php echo $key ?>">
<th></th>
<td class="bookly-js-actions">
<button class="bookly-round" data-action="edit" title="<?php esc_attr_e( 'Edit', 'bookly' ) ?>" data-style="zoom-in" data-spinner-size="30"><span class="ladda-label"><i class="bookly-icon-sm bookly-icon-edit"></i></span></button>
<button class="bookly-round" data-action="drop" title="<?php esc_attr_e( 'Remove', 'bookly' ) ?>" data-style="zoom-in" data-spinner-size="30"><span class="ladda-label"><i class="bookly-icon-sm bookly-icon-drop"></i></span></button>
</td>
</tr>
<?php endforeach ?>
</tbody>
<?php if ( isset( $table['header_position']['price'] ) || ( $table['show']['deposit'] && isset( $table['header_position']['deposit'] ) ) ) : ?>
<tfoot class="bookly-mobile-version">
<?php BookingProxy\Discounts::renderCartDiscountRow( $table, 'mobile', $userData ) ?>
<?php if ( isset ( $table['header_position']['price'] ) ) : ?>
<tr>
<th><?php esc_html_e( 'Total', 'bookly' ) ?>:</th>
<td><strong class="bookly-js-total-price"><?php echo Price::format( $cart_info->getTotal() ) ?></strong></td>
</tr>
<?php if( $table['show']['tax'] ) : ?>
<tr>
<th><?php esc_html_e( 'Total tax', 'bookly' ) ?>:</th>
<td><strong class="bookly-js-total-tax"><?php echo Price::format( $cart_info->getTotalTax() ) ?></strong></td>
</tr>
<?php endif ?>
<?php endif ?>
<?php BookingProxy\DepositPayments::renderPayNowRow( $cart_info, $table, 'mobile' ) ?>
</tfoot>
<tfoot class="bookly-desktop-version">
<?php if ( $cart_info->getWaitingListTotal() > 0 ) : ?>
<tr>
<?php foreach ( $table['headers'] as $position => $column ) : ?>
<td <?php if ( isset ( $table['header_position']['price'] ) && $position == $table['header_position']['price'] ) echo 'class="bookly-rtext"' ?>>
<?php if ( $position == 0 ) : ?>
<strong><?php esc_html_e( 'Waiting list', 'bookly' ) ?>:</strong>
<?php endif ?>
<?php if ( isset ( $table['header_position']['price'] ) && $position == $table['header_position']['price'] ): ?>
<strong class="bookly-js-waiting-list-price"><?php echo Price::format( $cart_info->getWaitingListTotal() ) ?></strong>
<?php endif ?>
<?php if ( $table['show']['deposit'] && $position == $table['header_position']['deposit'] ) : ?>
<strong class="bookly-js-waiting-list-deposit"><?php echo Price::format( $cart_info->getWaitingListDeposit() ) ?></strong>
<?php endif ?>
</td>
<?php endforeach ?>
<td></td>
</tr>
<?php endif ?>
<tr>
<?php foreach ( $table['headers'] as $position => $column ) : ?>
<td <?php if ( isset ( $table['header_position']['price'] ) && $position == $table['header_position']['price'] ) echo 'class="bookly-rtext"' ?>>
<?php if ( $position == 0 ) : ?>
<strong><?php esc_html_e( 'Subtotal', 'bookly' ) ?>:</strong>
<?php endif ?>
<?php if ( isset( $table['header_position']['price'] ) && $position == $table['header_position']['price'] ) : ?>
<strong class="bookly-js-subtotal-price"><?php echo Price::format( $cart_info->getSubtotal() ) ?></strong>
<?php endif ?>
<?php if ( $table['show']['deposit'] && $position == $table['header_position']['deposit'] ) : ?>
<strong class="bookly-js-subtotal-deposit"><?php echo Price::format( $cart_info->getDeposit() ) ?></strong>
<?php endif
没有合适的资源?快使用搜索试试~ 我知道了~
【WordPress插件】2022年最新版完整功能demo+插件v2.7.zip
共18个文件
php:17个
png:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 192 浏览量
2022-04-17
19:31:55
上传
评论
收藏 20KB ZIP 举报
温馨提示
"【WordPress插件】2022年最新版完整功能demo+插件v2.7 Bookly Cart (Add-on) 商品购物车(加载项)" ---------- 泰森云每天更新发布最新WordPress主题、HTML主题、WordPress插件、shopify主题、opencart主题、PHP项目源码、安卓项目源码、ios项目源码,更有超10000个资源可供选择,如有需要请站内联系。
资源推荐
资源详情
资源评论
收起资源包目录
【WordPress插件】2022年最新版完整功能demo+插件v2.7.zip (18个子文件)
bookly-addon-cart
main.php 876B
frontend
resources
images
cart.png 756B
modules
booking
templates
5_cart.php 11KB
button.php 375B
Ajax.php 2KB
proxy_providers
Local.php 7KB
autoload.php 614B
lib
base
Installer.php 7KB
Boot.php 4KB
Plugin.php 940B
Updater.php 537B
Installer.php 1KB
backend
modules
appearance
templates
show_cart_step.php 399B
cart_step.php 8KB
cart_step_settings.php 587B
button.php 311B
proxy_providers
Shared.php 804B
Local.php 849B
共 18 条
- 1
资源评论
Lee达森
- 粉丝: 990
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功