Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1026860
    hawa2015
    Participant

    latest X Theme
    latest WPML
    no other plugins active

    problem:
    open a product – clik on a tag or a category – the upcoming oages does not show a product list but one product per row, very big image, and a kind of “blog” layout to comment etc.

    any idea?

    same with sth like the 2016 theme – works as expected

    #1027377
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Thank you.

    #1027574
    hawa2015
    Participant
    This reply has been marked as private.
    #1027671
    hawa2015
    Participant

    appendix:
    I just finished the following test installation:
    new subdoamin, new wp installation and new database
    installation order:
    x
    x-child
    WooCommerce
    WPML Multilingual CMS with WPML String Translation, WPML Media, WPML Translation Management
    WooCommerce Multilingual

    created one product – open the shop page
    attached you see the difference between theme 2016 (correct) and x-theme (wrong)

    P.S. Myabe this infotext is helpful to locate the problem:
    WooCommerceSystemstatus – Templates – Archive Templates:
    Your theme has a woocommerce.php file, you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.

    #1027862
    Joao
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks

    Joao

    #1028109
    hawa2015
    Participant
    This reply has been marked as private.
    #1028368
    Joao
    Moderator

    Hi There,

    have you changed the address http://test.dusemond.com/wp-admin to something else?

    I cannot access the site with it.

    Let us know

    Thanks

    Joao

    #1028480
    hawa2015
    Participant
    This reply has been marked as private.
    #1029292
    Rad
    Moderator

    Hi there,

    It’s a bug, please follow this.

    1. Edit this file

    \wp-content\themes\x\framework\functions\global\plugins\wpml.php

    2. And replace this code

    add_filter( 'template_include', 'x_force_template_override', 99 );
    
    function x_force_template_override( $template ) {
    
      if( is_search() || is_archive() ) {
        $p = pathinfo($template);
        return $p['dirname'].'/index.php';
      }
    
      return $template;
    }

    By this code,

    add_filter( 'template_include', 'x_force_template_override', 99 );
    
    function x_force_template_override( $template ) {
      
      if ( x_is_shop() )  return $template;
    
      if( is_search() || is_archive() ) {
        $p = pathinfo($template);
        return $p['dirname'].'/index.php';
      }
    
      return $template;
    }

    3. Save and upload it.

    I’ll forward this as a bug and should be fixed on next update.

    Thanks!

    #1029672
    hawa2015
    Participant
    This reply has been marked as private.
    #1030567
    hawa2015
    Participant

    Thank you for confirming this bug.
    Kindly have a look on my last posting – it would be very nice if you provide support in this urgent matter.

    #1031889
    hawa2015
    Participant

    Could you please give a timeframe when this bug is solved or please help me with a workaround.

    #1032429
    Rad
    Moderator

    Hi there,

    The above fix is for shop home page. In order for taxonomy pages to work the same then please update the code to this,

    add_filter( 'template_include', 'x_force_template_override', 99 );
    
    function x_force_template_override( $template ) {
      
      if ( x_is_shop() || x_is_product_category() || x_is_product_tag() )  return $template;
    
      if( is_search() || is_archive() ) {
        $p = pathinfo($template);
        return $p['dirname'].'/index.php';
      }
    
      return $template;
    }
    

    Thanks!

    #1045078
    hawa2015
    Participant

    >>Edit this file
    >>\wp-content\themes\x\framework\functions\global\plugins\wpml.php
    if I insert a file \wp-content\themes\x-child\framework\functions\global\plugins\wpml.php that doesnt help, why?

    #1045768
    Rad
    Moderator

    Hi there,

    You have to replace the code, not to insert it. And your provided URL seems changed again, it shows 404 on my end even the login page.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1026860 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>