Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/plugins/code4rest-pro/dist/woocommerce-addons/cart-notice-options.php
Ðазад
<?php /** * Woocommerce Trigger Cart when Product added Options. * * @package Code4rest_Pro */ namespace Code4rest_Pro; use Code4rest\Theme_Customizer; use function Code4rest\code4rest; ob_start(); ?> <div class="code4rest-compontent-info-box wp-clearfix"> <p><?php echo esc_html__( 'You must add or remove a product from your active cart to see your settings for this take place.', 'code4rest-pro' ); ?></p> <p><?php echo esc_html__( 'Use {cart_difference} placeholder in message to output the amount needed for free shipping.', 'code4rest-pro' ); ?></p> </div> <?php $compontent_tabs = ob_get_clean(); Theme_Customizer::add_settings( array( 'cart_pop_show_free_shipping' => array( 'control_type' => 'code4rest_switch_control', 'section' => 'cart', 'priority' => 21, 'default' => code4rest()->default( 'cart_pop_show_free_shipping' ), 'label' => esc_html__( 'Show amount left in order to receive free shipping in cart Popout', 'code4rest-pro' ), 'transport' => 'refresh', 'context' => array( array( 'setting' => 'header_cart_style', 'operator' => '!=', 'value' => 'link', ), ), ), 'cart_pop_free_shipping_info' => array( 'control_type' => 'code4rest_blank_control', 'section' => 'cart', 'settings' => false, 'priority' => 21, 'description' => $compontent_tabs, 'context' => array( array( 'setting' => 'cart_pop_show_free_shipping', 'operator' => '=', 'value' => true, ), ), ), 'cart_pop_free_shipping_price' => array( 'type' => 'number', 'section' => 'cart', 'sanitize' => 'sanitize_text_field', 'priority' => 21, 'default' => code4rest()->default( 'cart_pop_free_shipping_price' ), 'label' => esc_html__( 'Amount needed for Free Shipping.', 'code4rest-pro' ), 'transport' => 'refresh', 'context' => array( array( 'setting' => 'cart_pop_show_free_shipping', 'operator' => '=', 'value' => true, ), ), ), 'cart_pop_free_shipping_message' => array( 'control_type' => 'code4rest_text_control', 'section' => 'cart', 'sanitize' => 'sanitize_text_field', 'priority' => 21, 'default' => code4rest()->default( 'cart_pop_free_shipping_message' ), 'label' => esc_html__( 'Cart Notice Message', 'code4rest-pro' ), 'transport' => 'refresh', 'context' => array( array( 'setting' => 'cart_pop_show_free_shipping', 'operator' => '=', 'value' => true, ), ), ), ) );
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка