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

Topic Resolution: Resolved

This topic contains 7 replies, has 2 voices, and was last updated by  Harry 1 month ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #32511
    purplemedia
    Supported

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

    #32514

    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
    Supported

    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

    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
    Supported

    Hi,

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

    #32557

    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
    Supported

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

    #32571

    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 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.