• Resolved rolfhuiber

    (@rolfhuiber)


    The shop page shows all products.
    Only in the English language the products are shown on the category pages. In other languages (WPML) we get a 404, search field is shown, no products are shown.

    The problem is, that the translated products don’t have a postmeta of ‘wwpp_product_wholesale_visibility_filter’, an outer join is missing.

    We could fix it with the following hack, removing meta_query:

    includes/class-wwpp-query.php:190

                    $restricted_args = array(
                        'post_type'             => 'product',
                        'post_status'           => 'publish',
                        'posts_per_page'        => -1,
                        'fields'                => 'ids',
                        /*
                         'meta_query'            => array(
                                                        array(
                                                            'key'     => WWPP_PRODUCT_WHOLESALE_VISIBILITY_FILTER,
                                                            'value'   => array( $user_wholesale_role , 'all' ),
                                                            'compare' => 'IN'
                                                        )
                                                )
                         */
                    );
    

    Version: 1.24

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Fauzan Azizie

    (@fauzanade)

    Hi @rolfhuiber,

    Our wholesale price field and all of its supporting fields are custom fields. To be able to translate custom fields, you need to set them as “translatable” in WPML. Please navigate to?the?WPML?->?Settings?page, clicking on the?Multilingual Content Setup?tab, and scrolling to the?Custom Field Translation?section then set all of the wholesale price-related custom fields to Copy. It’ll copy the value of wholesale prices related fields to other languages as well.
    ?
    For your reference, please read the following documentation: https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

    After that, the translated product should show in other languages as well.

    If you’re still having issue after this, please kindly send us your admin login through our support request here: https://wholesalesuiteplugin.com/support/support-request-form/
    ?

    Thread Starter rolfhuiber

    (@rolfhuiber)

    Are all of these for WooCommerce Wholesale Prices:

    wholesale_customer_have_wholesale_price
    wholesale_customer_have_wholesale_price_set_by_product_cat
    wholesale_customer_variable_level_wholesale_minimum_order_quantity
    wholesale_customer_variable_level_wholesale_order_quantity_step
    wholesale_customer_variations_with_wholesale_price
    wholesale_customer_wholesale_minimum_order_quantity
    wholesale_customer_wholesale_order_quantity_step
    wholesale_customer_wholesale_price

    wwpp_ignore_cat_level_wholesale_discount
    wwpp_ignore_role_level_wholesale_discount
    wwpp_post_meta_enable_quantity_discount_rule
    wwpp_product_hash
    wwpp_product_wholesale_visibility_filter

    wwp_wholesale_role

    Or are they maybe from another plugin?

    Plugin Support Fauzan Azizie

    (@fauzanade)

    Hi @rolfhuiber,

    Yes, that’s all from the WooCommerce Wholesale Prices Premium. Please kindly set them all to Copyin the WPML’s Custom Field Translation section. Especially the wwpp_product_wholesale_visibility_filter and wholesale_customer_wholesale_price then it’ll show up in the other languages as well.

    Please let me know how it goes ??

    Thread Starter rolfhuiber

    (@rolfhuiber)

    Changed all to copy. Did a bulk edit/update.
    Had some hard time with products with variations, showing “product not available, not in stock” (can’t remember the exact message). Sometimes only some variations showed up. Updated several times variations, edited prices or sku’s, updated the product. At the end it worked.
    Thanks for your support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Category does not show products in another language’ is closed to new replies.