Your account expired support, please renew to get your support.

Home Forums Themes Support Claue i want to display cart amount in header

Viewing 9 reply threads
  • Author
    Posts
    • #39592
      smohdsalimansari
      Support Expired

      hi,

      i want to display cart amount beside the cart logo in header.

      Thanks.

    • #39593
      Harry
      Support Expired

      Hi Smohdsalimansari,

      Thank you for choose our theme.

      By default our theme support show cart amount next to cart icon https://prnt.sc/w28frq

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #39594
      smohdsalimansari
      Support Expired

      its showing total number of cart item with the cart icon.

      but i want to show total amount (price) after the cart icon.

      check the attached image

      Attachments:
      You must be logged in to view attached files.
    • #39596
      Harry
      Support Expired

      Hi,

      Please copy file layout-x.php from wp-content > themes > claue > views > header to wp-content > claue-child > views > header

      and replace code

      echo jas_claue_wc_shopping_cart();

      with below code

      echo '<a class="cb chp hidden-xs" href="' . esc_url( wc_get_cart_url()) . '" title="' .  esc_html__( 'View your shopping cart', 'claue' ) . '"><i class="pe-7s-shopbag"></i>';
      								echo '<span class="pa count bgb br__50 cw tc">' . esc_html( $woocommerce->cart->get_cart_contents_count() ) . '</span>';
      								echo '</a>';
      								echo wp_kses_post( WC()->cart->get_cart_subtotal() );

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #39597
      smohdsalimansari
      Support Expired

      got too many errors after adding this

    • #39598
      Harry
      Support Expired

      Can you send me FTP account to check?

      I try on my local it still work well.

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #39599
      smohdsalimansari
      Support Expired

      check the file i wont be able to provide the ftp details now..

       

      Attachments:
      You must be logged in to view attached files.
    • #39602
      Harry
      Support Expired

      Hi,

      Please change code to

      global $woocommerce;
      echo '<a class="cb chp hidden-xs" href="' . esc_url( wc_get_cart_url()) . '" title="' .  esc_html__( 'View your shopping cart', 'claue' ) . '"><i class="pe-7s-shopbag"></i>';
      echo '<span class="pa count bgb br__50 cw tc">' . esc_html( $woocommerce->cart->get_cart_contents_count() ) . '</span>';
      echo '</a>';
      echo wp_kses_post( WC()->cart->get_cart_subtotal() );

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #39603
      smohdsalimansari
      Support Expired
      This reply has been marked as private.
    • #39617
      Harry
      Support Expired

      Hi,

      This option will off Ajax update so you have to refresh the page to update changing.

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 9 reply threads

You must be logged in to reply to this topic.