Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #585529

    Hello Enfold Gurus,

    I have this wooocommerce shop with a shop and quote options.
    I would like to have, next to my shopping cart Icon an other icon pointing to the quote list.

    After a lot of fiddling and looking online for solutions i would like to be pointed in the right direction with this.

    So the question i have is where is the php file responsible for the display of the shopping cart icon?
    Is altering the php file with the shopping cart icon the right approche?
    Are there possibilities with editing the functions.php of my child theme?

    Thanks in advance!

    Auke

    #586590

    Hi AukeJomm!

    Thank you for using Enfold.

    Add this code in the functions.php file:

    add_action( 'init', 'avia_woocommerce_cart_placement', 10);
    function avia_woocommerce_cart_placement()
    {
    	$position 	= avia_get_option('header_position',  'header_top') == "header_top" ? "ava_main_header" : "ava_inside_main_menu";
    	if(avia_get_option('cart_icon') == "always_display_menu")
    	{
    		$position = "ava_inside_main_menu";
    		if( strpos( avia_get_option('header_layout'), 'bottom_nav_header') !== false && avia_get_option('header_position') == 'header_top')
    		{
    			$position = "ava_before_bottom_main_menu";
    		}
    	}
    
    	add_action( $position, 'avia_woocommerce_cart_dropdown', 10);
    	add_action( $position, 'avia_woocommerce_quote_dropdown', 10);
    }
    
    function avia_woocommerce_quote_dropdown()
    {
    	global $woocommerce, $avia_config;
    	$output = "Something here";
    	echo $output;
    }

    Modify the avia_woocommerce_quote_dropdown.

    Regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.