Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    This plugin is interoperable with WooCommerce, but doesn’t have a feature particularly made for WooCommerce.

    Thread Starter svitmyla

    (@svitmyla)

    Maybe there is a hook for activation, because in essence, product cards are posts

    Hello @svitmyla,

    Bogo enable the multilingual feature only on post and pages, but it provides the filter hook bogo_localizable_post_types that you can use to add another custom post types, like WooCommerce products, this way:

    
    // Bogo: Enable multilingual feature on WooCommerce products
    add_filter( 'bogo_localizable_post_types', 'bogo_wc_products_localizable' );
    
    function bogo_wc_products_localizable( $post_types ) {  
      $post_types[] = 'product';
    
      return $post_types;
    }

    After adding the code above, you’ll need to go to Settings > Permalinks and click on Save changes button in order to reset your permalinks.

    Please note: The way Bogo handles multilingualism is by creating copies of your posts individually in each language. For example, if your site has three languages (let’s say, English, Japanese and Spanish) and you want to have a particular post translated into all the languages of your site, Bogo will create a copy of the post for each language separately. Continuing with the previous example, Bogo will create 3 separate posts: 1 for English, 1 for Japanese, and 1 for Spanish.

    Knowing this, then you’ll understand that if you use Bogo with WooCommerce each translated version of the product will work as a separate copy, so the inventory, price and other product features will be handled separately, not synchronized, as if they were separate products.

    Best regards,
    Yordan.

    Thread Starter svitmyla

    (@svitmyla)

    I got it!
    Thanks guys for the answers!
    Happy New Year, everyone!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can I activate this plugin for WooCommerce?’ is closed to new replies.