Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #723054

    Hi,
    If you choose to have for home page your shop page of woocommerce, an error occurs :
    Notice: Undefined offset: 0 in ……./wp-content/themes/enfold/config-woocommerce/config.php on line 442
    It’s because, the value 0 checked doesn’t exist in this case :
    $home = $trail[0];
    The $home variable is “trail_end” not 0.
    Correction :
    $key_trail = array_keys($trail);
    $home = $key_trail[0];

    Keep me in touch when you think correct this.

    Thx,

    #724123

    Hey Octopus4444,

    Thank you for the info.

    This will break the single product breadcrumbs. Please try this instead.

    			$front = avia_get_option('frontpage');
    			$shop = get_option( 'woocommerce_shop_page_id' );
    
    			if($front == $shop && is_front_page()) {
    				$key_trail = array_keys($trail);
    				$home = $key_trail[0];
    			} else {
    				$home = $trail[0];
    			}
    

    Best regards,
    Ismael

    #724188

    OK thanks,
    Do you think you will update enfold theme with this correction ?
    Regards,

    #724741

    Hi,

    We’ll have a look at it but I can’t say for sure unfortunately.

    Best regards,
    Rikard

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