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

    Hi,

    1) Using Woocommerce how can I change number of rows displayed in product-category view? (and shop page as well)

    • Currently it is 3 rows, I would like to display 5 rows.

    2) There seems to be a bug with Enfold + Woocommerce + WPML in the second language:

    • Using Avia Layout Builder: the Product Grid & Product Slider return following error: “No products found which match your selection.”

    Development site is here: http://wse.villa-scorpios.gr/el/

    Thank you and sorry for posting during a holiday….

    • This topic was modified 10 years, 8 months ago by Adenadoume.
    #253681

    Hey Adenadoume!

    Thank you for using the theme!

    1.) You can change the column count on Woocommerce > Settings > Catalog > Column and Product Count.

    2.) What is the version of your Enfold theme? You changed the style.css file and I’m not sure if you’re using the latest version of the theme. Please try to deactivate all plugins, see if that helps.

    Regards,
    Ismael

    #253712

    Hey,

    1) I was using Enfold 2.6.3 – just updated to 2.6.4 and the Column Count setting is now there.

    So I chose 5 rows and this is solved.

    > However: How can I change number of products displayed in “Relative Products” in single product view?

    Currently Relative Products displays 4 rows, I would like that to also be 5 rows

    2) Updated to latest versions: Enfold 2.6.4, Woocommerce 2.1.7, Woocommerce Multilingual and WPML

    Deactivated all plugins but the problem is still there: in the second language “Product Grid” & “Product Slider” do not show any products.

    It seems that the translated product category ID’s are not recognized by Enfold?

    thanks,

    George

    • This reply was modified 10 years, 8 months ago by Adenadoume.
    #254227

    Hey!

    1) Open up wp-content/themes/enfold/config-woocommerce/config.php and replace:

    
    woocommerce_related_products(array('posts_per_page'=>$avia_config['shop_single_column_items'], 'columns'=>$avia_config['shop_single_column']));
    

    with

    
    woocommerce_related_products(array('posts_per_page'=>$avia_config['shop_single_column_items'], 'columns'=>"5"));
    

    2) Did you select the translated categories in the product slider option window? Enfold will not fetch the translated categories automatically but you must click the “Translate independently” button (if necessary) and then edit the “Product Slider” element to select the translated categories.

    Best regards,
    Peter

    #254353

    1) Actually I changed these values in wp-content/themes/enfold/config-woocommerce/config.php

    Rows are changed succesfully!

    $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 

    > Is there a way I can use the woocommerce/config.php in my Child Theme?

    2) I have chosen the translated categories – these appear in the Avia framework to select because I translate independently in WPML.

    Note: I manually inserted the Main Language (English) categories in Second Language (Greek) and still the error is “No products found which match your selection.” – so the problem of not finding product categories is definitely when Second Language is activated…

    Temporary solution is I just placed images with links to products because there was a deadline for the website…

    I understand that Woocommerce and WPML had major updates and it is natural to have bugs, but please if you could look into it I would be much oblidged…

    Thanks a lot

    • This reply was modified 10 years, 8 months ago by Adenadoume.
    #255391

    Hey!

    1) Try to insert this code into the child theme functions.php file:

    
    add_action('after_setup_theme','avia_change_related_product_columns');
    function avia_change_related_product_columns(){
    global $avia_config;
    $avia_config['shop_single_column'] 	 	 = 5;	
    }
    

    2) Did you try to install the latest WPML beta version and WooCommerce Multilingual Beta?

    Cheers!
    Peter

    #256107

    1) Brilliant!

    Actually added a line in my child theme’s functions.php, so this increase the rows of relative products to 5:

    add_action('after_setup_theme','avia_change_related_product_columns');
    function avia_change_related_product_columns(){
    global $avia_config;
    $avia_config['shop_single_column'] 	 	 = 5;
    $avia_config['shop_single_column_items'] = 5;	
    }

    2) Am using beta versions:
    WPML Multilingual CMS by ICanLocalize version 3.1.5b2
    WooCommerce Multilingual by ICanLocalize version 3.3-BETA2

    Since the website is now live I will have to update on localhost to WPML Multilingual 3.15b3 and WC Multilingual 3.3-BETA-3 to see if it resolves the problem.

    #256511

    Hey!

    Great, hopefully the beta version will fix the issue. If not I recommend to downgrade to WP3.8 for now and to wait for the final WPML update.

    Cheers!
    Peter

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