Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #242987

    hi there,

    may there ist a possibility to change the “Shop” in the title bar to something other using the functions.php ?
    i think it is handled by do_action( ‘woocommerce_before_main_content’ ); somehow, but i dont find a solution.

    if it is possibe by changing the woo template files, this is also a possible way, because i integrated other modifikations within my child theme.

    greez
    rene

    P.S. i need the change on the single product template only

    • This topic was modified 5 months, 3 weeks ago by  isee.
    #243149

    Hi rene!

    You can deselect the page on Woocommerce > Settings > Pages > Shop Base Page. Create another page, name it anyway you want then add the Product Grid element. :)

    Regards,
    Ismael

    #244045

    hey ismael,

    thank you very much… after many nights of coding the really simple things are very difficult :-)))

    i have another question, you may can help me:

    i integrated the product_grid.php and the productslider.php with some modifikations as two own tab in enfolds template builder. so far everything worked well…

    but now…

    i try to expand the content within the slider (frontend) where price information and so on is shown with some custom product field values.

    my question:
    which file(s) are responsible for the output?

    may you help me?

    greez
    rene

    • This reply was modified 5 months, 3 weeks ago by  isee.
    #244059

    i think it is for example line 234 and following in productslider.php,,, right?

    woocommerce_get_template_part( ‘content’, ‘product’ );

    leading to

    content-product.php

    • This reply was modified 5 months, 3 weeks ago by  isee.
    • This reply was modified 5 months, 3 weeks ago by  isee.
    #244210

    Hi!

    Glad you figured it out. The woocommerce template is controlled by config-woocommerce > config.php file. If you don’t mind please post a screenshot of what you’re trying to do as to give us more idea how to help you.

    Regards,
    Ismael

    #244482

    hi ismael, got everything going this night… thank you :-)

    one problem still there:

    i now managed to get two different product types in one shop with customization,

    but :-)

    as i have only one shop page (which i dont use, i redirected it) i need two different titles in the title bar from enfold. is there another option to change this title?

    <?php
    	
    	// Anpassungen wenn Product-Typ "MY-OWN-PRODUCT"
    	global $post, $product;
    	if (function_exists('get_product'))
    		{
    		$product = get_product( $post->ID );
    		if( $product->is_type( 'MY-OWN-PRODUCT' ) )
    			{
    			
                            // HERE I NEED TO CHANGE TITLE BAR
                                WITH SOME FUNCTION/FILTER
    
    			}
    		else {
    
    	              // LEAVE THE STANDARD BAR
                             FROM SHOP PAGETITLE	
    
    		}
    	}
    	?>
    #245057

    Hi!

    Yes – you can use the avf_title_args filter. An example code snippet can be found here: http://www.kriesi.at/support/topic/blog-header-goes-to-index-instead-of-blog/#post-238081

    Cheers!
    Peter

    #248945

    heyyyy dude ….

    thanx a lot!

    i managed like that now:

    global $post, $product;
    if (function_exists('get_product'))
    	{
    	$product = get_product( $post->ID );
    	if( $product->is_type( 'MY_PRODUCT_TYPE' ) ) {
    		// Festen Titel ausgeben
    		function fix_single_post_title($args,$id) {
    			$args['title'] = 'MY_TITLE';	
    			return $args;
    		}
    		add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    	}
    	else {
    		// Produkt Name ausgeben
    		function fix_single_post_title($args,$id) {
    			$args['title'] = get_the_title($id);
    			$args['link'] = get_permalink($id);	
    			return $args;
    		}
    		add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    		
    	}
    }
    #249085

    Hey!

    Glad we could help. If you have any questions, let us know. :)

    Regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘woocommerce title bar: change "Shop"’ is closed to new replies.