403Webshell
Server IP : 172.67.158.161  /  Your IP : 3.22.241.228
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/dangky.bnnagency.com/wp-content/themes/flatsome/inc/woocommerce/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dangky.bnnagency.com/wp-content/themes/flatsome/inc/woocommerce/structure-wc-cart.php
<?php


// Move Cross sell product to under cart
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );
add_action( 'woocommerce_after_cart_table', 'woocommerce_cross_sell_display' );

// Add Content after Cart
if(!function_exists('flatsome_html_cart_footer')) {
  function flatsome_html_cart_footer(){
  	$content = get_theme_mod('html_cart_footer');
      echo '<div class="cart-footer-content after-cart-content relative">'.do_shortcode($content).'</div>';
  }
  add_action( 'woocommerce_after_cart', 'flatsome_html_cart_footer', 99);
}


// Add Content in cart sidebar
if(!function_exists('flatsome_html_cart_sidebar')) {
  function flatsome_html_cart_sidebar(){
  	$content = get_theme_mod('html_cart_sidebar');
  	$icons = get_theme_mod('payment_icons_placement');

      echo '<div class="cart-sidebar-content relative">'.do_shortcode($content).'</div>';
      if(is_array($icons) && in_array('cart', $icons)) echo do_shortcode('[ux_payment_icons]');
  }
  add_action( 'flatsome_cart_sidebar', 'flatsome_html_cart_sidebar', 10);
}


// Continue Shopping button
if(!function_exists('flatsome_continue_shopping')) {
  function flatsome_continue_shopping(){
    wc_get_template_part('cart/continue-shopping');
  }
}
add_action('woocommerce_cart_actions', 'flatsome_continue_shopping', 10);


// Move Privacy policy to bottom
function flatsome_fix_policy_text(){
  if(function_exists('wc_checkout_privacy_policy_text')) {
    remove_action( 'woocommerce_checkout_terms_and_conditions', 'wc_checkout_privacy_policy_text', 20 );
    add_action( 'woocommerce_checkout_after_order_review', 'wc_checkout_privacy_policy_text', 1 );
  }
}
add_action( 'init', 'flatsome_fix_policy_text', 10);

Youez - 2016 - github.com/yon3zu
LinuXploit