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

Home Forums Themes Support Claue WooCommerce cart en translation flag right in mobile menu

Topic Resolution: Resolved
Viewing 7 reply threads
  • Author
    Posts
    • #32511
      purplemedia
      Support Expired

      Hi,
      I want to display the WooCommerce cart en translation flag right in the mobile menu.
      Could you help?

    • #32514
      Harry
      Support Expired

      Did you install translate plugin? You want move cart next to FAQ http://prntscr.com/ofp5ot?

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

    • #32519
      purplemedia
      Support Expired

      Translate plugin comes later. I want the woocommerce cart right to the logo in het mobile view.
      See attachment.

      Thanks!

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

      I help you show cart icon on mobile.

      Kind regards

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

    • #32547
      purplemedia
      Support Expired

      Hi,

      Thanks. Could you link that icon to cart page (http://185.104.28.45/~zz/winkelmand/)?

    • #32557
      Harry
      Support Expired

      Hi,

      Please add below code to claue-child > functions.php

      if ( ! function_exists( 'jas_claue_wc_shopping_cart' ) ) {
      	function jas_claue_wc_shopping_cart() {
      		global $woocommerce;
      		
      		// Catalog mode
      		$catalog_mode = cs_get_option( 'wc-catalog' );
      
      		if ( $catalog_mode ) return;
      
      		$output = '';
      		$output .= '<div class="jas-icon-mini-cart pr">';
      			$output .= '<a class="pr cb chp db" href="' . esc_url(wc_get_cart_url()) . '" title="' . esc_html( 'View your shopping cart', 'claue' ) . '">';
      				$output .= '<i class="pe-7s-shopbag"></i>';
      				$output .= '<span class="pa count bgb br__50 cw tc">' . esc_html( $woocommerce->cart->get_cart_contents_count() ) . '</span>';
      			$output .= '</a>';
      		$output .= '</div>';
      		return apply_filters( 'jas_claue_wc_shopping_cart', $output );
      	}
      }

      Kind regards

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

    • #32565
      purplemedia
      Support Expired

      Thanks! I only want that the cart icon is linking to the cart page on mobile. Now it is on all screens.

    • #32571
      Harry
      Support Expired

      Hi,

      Your question not clear from first time. Please change code to

      if ( ! function_exists( 'jas_claue_child_wc_shopping_cart' ) ) {
      	function jas_claue_child_wc_shopping_cart() {
      		global $woocommerce;
      		
      		// Catalog mode
      		$catalog_mode = cs_get_option( 'wc-catalog' );
      
      		if ( $catalog_mode ) return;
      
      		$output = '';
      		$output .= '<div class="jas-icon-mini-cart pr">';
      			$output .= '<a class="pr cb chp db" href="' . esc_url(wc_get_cart_url()) . '" title="' . esc_html( 'View your shopping cart', 'claue' ) . '">';
      				$output .= '<i class="pe-7s-shopbag"></i>';
      				$output .= '<span class="pa count bgb br__50 cw tc">' . esc_html( $woocommerce->cart->get_cart_contents_count() ) . '</span>';
      			$output .= '</a>';
      		$output .= '</div>';
      		return apply_filters( 'jas_claue_child_wc_shopping_cart', $output );
      	}
      }

      and change code in claue-child > views > header > layout-3.php line 97

      from

      jas_claue_wc_shopping_cart()

      to

      jas_claue_child_wc_shopping_cart()

      Regards

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

Viewing 7 reply threads

You must be logged in to reply to this topic.