New Landing How can we help? Cardinal Woocommerce catalog mode on/off for language versions of the site

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Cardinal
  • #136664
    Joni
    Member
    Post count: 52

    Hi guys,

    Quick question, is it possible to enable the catalog mode for one language version (using WPML/WooCommerce) of the site and have it of for another?

    We’re launching our store, but first want to do it in Finland to smooth out any wrinkles before launching the English version.

    Thanks again.

    Joni

    #136686
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi there,

    Unfortunately that is not part of the current theme functionality, and it’s not within the scope of our support to be able to provide that functionality as it is more work than a small customisation. While we’d love to be able to support every customisation request, we simply don’t have the time. We recommend that you seek a freelance developer if you need that functionality, potentially from one of the below resources:

    https://codeable.io

    Home


    http://www.microlancer.com

    Thanks 🙂
    With Best Regards
    Mohammad

    #136687
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to insert this code at functions.php.

    if(ICL_LANGUAGE_CODE=='en'){
    add_action('init','remove_loop_button');
    }
    
    function remove_loop_button(){
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    }

    Thanks
    Mohammad

    #136749
    Joni
    Member
    Post count: 52

    Hi Mohammad,

    The function tweak seemed to work just as I hoped. Only thing is that price of the items are still showing, but I guess those can be hidden by editing the stylesheet?

    Thanks again!

    -Joni

    #136752
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove last one code and use this one new code:-

    if(ICL_LANGUAGE_CODE=='en'){
    add_action('init','remove_loop_button');
    }
    
    function remove_loop_button(){
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
    remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
    }

    Thanks
    Mohammad

    #136787
    Joni
    Member
    Post count: 52

    Hi,

    The new code brought back the shopping option. Now the English version looks the same as Finnish. Was this supposed to remove the price also?

    -Joni

    #136799
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use last code and live your site soon. We can inspect the issue at live site.
    Thanks
    Mohammad

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

You must be logged in to reply to this topic.