✏️ 正在编辑: cart-empty.php
路径:
/home/h359620/public_html/wp-content/themes/datis/woocommerce/cart/cart-empty.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * Empty cart page * * This template can be overridden by copying it to yourtheme/woocommerce/cart/cart-empty.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://woocommerce.com/document/template-structure/ * @package WooCommerce\Templates * @version 7.0.1 */ $shop_url = apply_filters('woocommerce_return_to_shop_redirect', wc_get_page_permalink('shop')); $demo = get_option('datis_active_demo'); ?> <div id="datis-cart-root"> <div class="cart-empty-wrap d-flex flex-column align-items-center justify-content-center gap-3"> <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="100" height="100" rx="20" fill="var(--datis-primary-color)" fill-opacity="0.06" /> <path d="M39.875 63.5C41.739 63.5 43.25 65.011 43.25 66.875C43.25 68.739 41.739 70.25 39.875 70.25C38.011 70.25 36.5 68.739 36.5 66.875C36.5 65.011 38.011 63.5 39.875 63.5Z" stroke="#0B3D91" stroke-width="2" /> <path d="M60.125 63.5002C61.989 63.5002 63.5 65.0112 63.5 66.8752C63.5 68.7391 61.989 70.2502 60.125 70.2502C58.261 70.2502 56.75 68.7391 56.75 66.8752C56.75 65.0112 58.261 63.5002 60.125 63.5002Z" stroke="#0B3D91" stroke-width="2" /> <path d="M27.5 29.75L28.0877 29.9566C31.0163 30.9863 32.4806 31.5011 33.3181 32.7267C34.1557 33.9523 34.1557 35.5803 34.1557 38.8363V44.96C34.1557 51.5785 34.298 53.7628 36.2474 55.8189C38.1968 57.875 41.3343 57.875 47.6093 57.875H50M59.5408 57.875C63.0531 57.875 64.8093 57.875 66.0506 56.8634C67.292 55.8518 67.6465 54.1318 68.3555 50.6918L69.48 45.2362C70.261 41.3233 70.6515 39.3669 69.6526 38.0684C68.6538 36.77 65.241 36.77 61.4499 36.77H47.8028M34.1557 36.77H38.75" stroke="#0B3D91" stroke-width="2" stroke-linecap="round" /> </svg> <p><?php esc_html_e('Your shopping cart is empty.', 'datis'); ?></p> <a class="wc-backward" href="<?php echo wc_get_page_permalink('shop'); ?>"> <?php if ($demo == 'industry') : ?> <svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.7701 11.8579L10.8921 10.2077M0.750669 1.29699L9.2183 0.750029M0.750669 1.29699L1.29763 9.76463M0.750669 1.29699L8.63844 8.22758" stroke="#F5F5F5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> </svg> <?php elseif ($demo == 'business'): ?> <svg width="44" height="40" viewBox="0 0 44 40" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10 40C4.47715 40 -1.95703e-07 35.5228 -4.37114e-07 30L-1.31134e-06 10C-1.55275e-06 4.47715 4.47715 -1.95703e-07 10 -4.37114e-07L33.1922 -1.45088e-06C39.6979 -1.73525e-06 44.4715 6.11389 42.8937 12.4254L37.8937 32.4254C36.7807 36.877 32.7809 40 28.1922 40L10 40Z" fill="#F9E65C" /> <path d="M15.3433 15.3139H22.3286M15.3433 15.3139V22.2992M15.3433 15.3139L21.4554 21.4261M24.657 24.6276L23.2017 23.1724" stroke="#0A2647" stroke-width="1.23483" stroke-linecap="round" stroke-linejoin="round" /> </svg> <?php else : ?> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M6 6H15M6 6V15M6 6L12.5 12.5M18 18L15.5 15.5" stroke="#F7F6FE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> </svg> <?php endif; ?> <?php if ($demo == 'industry' || $demo == 'business') : echo esc_html_x('Shop', 'orders empty action', 'datis'); else : ?> <span> <?php echo esc_html_x('Shop', 'orders empty action', 'datis'); ?> </span> <?php endif; ?> </a> </div> </div>
💾 保存文件
← 返回文件管理器