Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1076277

    Dear Support,

    I am using my shop-website (woocommerce) only for displaying download links.
    I made it via an enfold child-theme.

    Products by Attribute works well on the shop and category pages but not on a decent page.
    It’s neither showing in the sidebar nor in a custom widget area.

    It’s a simple page made with the advanced editor.

    That’s my functions.php

    <?php
    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) ) exit;
    
    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED - Do not modify or remove comment markers above or below:
    
    defined( 'CHLD_THM_CFG_IGNORE_PARENT' ) or define( 'CHLD_THM_CFG_IGNORE_PARENT', TRUE );
    
    // END ENQUEUE PARENT ACTION
    
    $google_fonts = apply_filters('avf_google_heading_font', array(	__('Default', 'avia_framework') =>'',
    
        'Alice'=>'Alice',
        'Allerta'=>'Allerta',
        'Arvo'=>'Arvo',
        'Arimo'=>'Arimo:400,700',
        'Antic'=>'Antic',
    
        'Bangers'=>'Bangers',
        'Bitter'=>'Bitter',
    
        'Cabin'=>'Cabin',
        'Cardo'=>'Cardo',
        'Carme'=>'Carme',
        'Coda'=>'Coda',
        'Comfortaa'=>'Comfortaa:300,400,700',
        'Coustard'=>'Coustard',
        'Gruppo'=>'Gruppo',
    
        'Damion'=>'Damion',
        'Dancing Script'=>'Dancing Script',
        'Droid Sans'=>'Droid Sans',
        'Droid Serif'=>'Droid Serif',
    
        'EB Garamond'=>'EB Garamond',
    
        'Finger Paint'=>'Finger Paint',
        'Fjord One'=>'Fjord One',
    
        'Great Vibes'=>'Great Vibes',
    
        'Inconsolata'=>'Inconsolata',
    
        'Josefin Sans' => 'Josefin Sans',
        'Josefin Slab'=>'Josefin Slab',
    
        'Kameron'=>'Kameron',
        'Kreon'=>'Kreon',
    
        'Lato'=>'Lato:300,400,700',
        'Lobster'=>'Lobster',
        'Lora'=>'Lora',
        'League Script'=>'League Script',
    
        'Mate SC'=>'Mate SC',
        'Marck Script'=>'Marck Script',
        'Mako'=>'Mako',
        'Merriweather'=>'Merriweather',
        'Metrophobic'=>'Metrophobic',
        'Molengo'=>'Molengo',
        'Montserrat'=>'Montserrat',
        'Muli'=>'Muli',
    
        'Nixie One'=>'Nixie One',
        'Nobile'=>'Nobile',
        'News Cycle'=>'News Cycle',
    
        'Open Sans'=>'Open Sans:400,600',
        'Open Sans Condensed'=>'Open Sans Condensed:300,700',
        'Orbitron'=>'Orbitron',
        'Oswald'=>'Oswald',
    
        'Pacifico'=>'Pacifico',
        'Petit Formal Script'=>'Petit Formal Script',
        'Poly'=>'Poly',
        'Podkova'=>'Podkova',
        'PT Sans'=>'PT Sans',
    
        'Quattrocento'=>'Quattrocento',
        'Questrial'=>'Questrial',
        'Quicksand'=>'Quicksand',
    
        'Raleway'=>'Raleway',
        'Righteous' => 'Righteous',
        'Roboto' => 'Roboto',
    
        'Sacramento' => 'Sacramento',
        'Salsa'=>'Salsa',
        'Signika Negative'=>'Signika Negative',
        'Source Serif Pro' => 'Source Serif Pro:400,600,700',
        'Sunshiney'=>'Sunshiney',
    
        'Tangerine'=>'Tangerine',
        'Terminal Dosis'=>'Terminal Dosis',
        'Tenor Sans'=>'Tenor Sans',
    
        'Varela Round'=>'Varela Round',
    
        'Yellowtail'=>'Yellowtail',
    
    ));
    
    function hmp_add_custom_heading_fonts( $fonts ) {
    
        $fonts = array(
            'Merriweather' => 'Merriweather:400,700,300,100',
        );
    
        return $fonts;
    }
    
    add_filter( 'avf_google_heading_font', 'hmp_add_custom_heading_fonts' );
    
    function hmp_add_custom_content_fonts( $fonts ) {
    
        $fonts = array( __( 'Web save fonts', 'avia_framework' ) => array(),
    
            __( 'Google fonts', 'avia_framework' ) => array(
                'Open Sans' => 'Open Sans:400,700,300,100',
    
            ) );
    
        return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'hmp_add_custom_content_fonts' );
    
    // deactivate the loading of google fonts API via avia completely
    
    function turn_remove_avia_fonts() {
        global $avia;
        $avia->style->print_extra_output = false;
    }
    
    add_action( 'init', 'turn_remove_avia_fonts' );
    
    add_filter('upload_mimes', function ( $mimes = array() )
    { 
        $mimes['mobi'] = 'application/x-mobipocket-ebook';
        $mimes['epub'] = 'application/epub+zip';
    	$mimes['azw3'] = 'application/vnd.amazon.mobi8-ebook';
    	$mimes['azw'] = 'application/vnd.amazon.mobi8-ebook';
        return $mimes;
    } );
    
    /**
     * WooCommerce Extra Feature
     * --------------------------
     *
     * Change number of related products on product page
     * Set your own value for 'posts_per_page'
     *
     */ 
    function avia_chance_wc_related_columns(){
    global $avia_config;
    $avia_config['shop_single_column'] 	 	 = 5;			// columns for related products and upsells
    $avia_config['shop_single_column_items'] = 5;	// number of items for related products and upsells
    }
    add_action('wp_head', 'avia_chance_wc_related_columns', 6);

    Is it so, that the Filter “Products by Attribute” is only working on shop-pages/category-pages?
    I would like to have the advantages of an enfold-layout and the features of woocommerce.

    Thanks in advance!

    • This topic was modified 5 years, 6 months ago by Sepppl.
    #1077336

    Dear Support Team,

    I just would like to come back to my issue I am having with using Enfold and woocommerce.
    Would be nice if you have time to check my inquiry.

    Thanks in advance,
    Sepppl

    #1077698

    Hi,

    The issue is not on WooCommerce with Enfold, but this custom functionality that you need – right?

    Best regards,
    Basilis

    #1077753

    Thank you for your response.

    I discovered, that if I set up a “custom woocommerce shop overview” page

    Shop

    with
    add_theme_support( ‘avia_custom_shop_page’ );

    it only works when I asign “shop”-page to the custom page.

    In fact it doesn’t work as a custom page without telling woocommerce that it is THE shop page.

    Filters only working if SHOP is asign to the specific page.

    Do you agree?

    Thanks a lot,
    Sepppl

    #1077754

    Sorry,
    I did’t answer your question. Yes, I would like to have an Enfold-designed shop page, where filters by attribute are working.

    #1078586

    Hi!
    So the filters do not work on the custom shop page?
    Cheers!
    Victoria

    #1078663

    Hi Victoria,
    Thank you for your question.
    In fact I discovered it has to be “shop” asigned to what ever page.
    Normally the enfold advanced editor doesn’t work in that case.
    As I discovered, there is a workaround, you have to put some code into the functions.php to run the advanced editor for the shop-page.
    In that way the filters are working at the custom shop page.

    The thread can be closed.

    Best regards,
    Sepppl

    #1079373

    Hi,

    Great, I’m glad you found a solution and thanks for the update. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Filter Products by Attribute not working/showing’ is closed to new replies.