HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/gopalak/public_html/wp-content/themes/open-shop/customizer/section/woo/cart.php
<?php
if ( ! class_exists( 'WooCommerce' ) ){
    return;
}
/***************/
// Cart
/***************/

// cross sell product divider
$wp_customize->add_setting('open_shop_divide_woo_cross_sell', array(
        'sanitize_callback' => 'open_shop_sanitize_text',
    ));
$wp_customize->add_control( new Open_Shop_Misc_Control( $wp_customize, 'open_shop_divide_woo_cross_sell',
            array(
        'section'     => 'open-shop-woo-cart-page',
        'type'        => 'custom_message',
        'description' => wp_kses_post('Cross Sell Product','open-shop' ),
        'priority'    => 2,
)));
// cross sell product column
if ( class_exists( 'Open_Shop_WP_Customizer_Range_Value_Control' ) ){
$wp_customize->add_setting(
            'open_shop_cross_num_col_shw', array(
                'sanitize_callback' => 'open_shop_sanitize_range_value',
                'default' => '2',
                
                
            )
        );
$wp_customize->add_control(
            new Open_Shop_WP_Customizer_Range_Value_Control(
                $wp_customize, 'open_shop_cross_num_col_shw', array(
                    'label'       => __( 'Number Of Column To Show', 'open-shop' ),
                    'section'     => 'open-shop-woo-cart-page',
                    'type'        => 'range-value',
                    'input_attr'  => array(
                        'min'  => 1,
                        'max'  => 3,
                        'step' => 1,
                    ),
                    
                )
        )
);
// no.of product to show
$wp_customize->add_setting(
              'open_shop_cross_num_product_shw', array(
                'sanitize_callback' => 'open_shop_sanitize_range_value',
                'default' => '4',       
            )
        );
$wp_customize->add_control(
            new Open_Shop_WP_Customizer_Range_Value_Control(
                $wp_customize, 'open_shop_cross_num_product_shw', array(
                    'label'       => __( 'Number Of Product To Show', 'open-shop' ),
                    'section'     => 'open-shop-woo-cart-page',
                    'type'        => 'range-value',
                    'input_attr'  => array(
                        'min'  => 1,
                        'max'  => 100,
                        'step' => 1,
                    ),
                    
                )
          )
   );
}

/****************/
// doc link
/****************/
$wp_customize->add_setting('open_shop_cart_link_more', array(
    'sanitize_callback' => 'open_shop_sanitize_text',
    ));
$wp_customize->add_control(new Open_Shop_Misc_Control( $wp_customize, 'open_shop_cart_link_more',
            array(
        'section'     => 'open-shop-woo-cart-page',
        'type'        => 'doc-link',
        'url'         => 'https://themehunk.com/docs/open-shop/#cart-page',
        'description' => esc_html__( 'To know more go with this', 'open-shop' ),
        'priority'   =>100,
    )));