ipapilina
Forum Replies Created
-
@hsupyaenaung
@chuonggio171
@shostakmaksimwow! this works perfectly for me!
https://github.com/VaLeXaR/wp-multilang/issues/156#issuecomment-656823063Only one thing – i cant to transfer this plugins file to the child theme.
Hey ya! Thanx a lot for your response, feel not so along with my problem.
Look its doesnt working:add a file wp-content/themes/yourtheme/wpm-config.json with
"taxonomies": { "pa_volume" : {}, },and its work! (because the variant in the cart is perfectly translated)
BUT! on the product page variants are disappeared..
i checked the attribute/variant settings on the product page builder, all are like you told:[ ] Visible on the product page [x] Used for variations And for the Variations: [x] Enabled: [ ] Downloadable: [ ] Virtual: [ ] Manage stock?Any ideas?
Hi @hsupyaenaung ,
thank you for your tips, i tried to install thi settings in the Product Panel, but nothing 🙁 The variation dropdown still doesn’t working. Its really sad.. I love the WP Multilang plugin, but this problem kills all profit!@hsupyaenaung hi! could you please take look at my variant, because it doesn’t working:
add “pa_volume” in /plugins/wp-multilang/core-config.json:"taxonomies": { "category" : {}, "pa_volume" : {}, "post_tag" : {} },and get a conflict with woocommerce variation dropdown.
so i add this code in functions.php of my theme:
add_filter('wpm_taxonomies_config', function ($taxonomies_config) { // this part to enable render filters on shop/category/tag if (is_admin() || is_cart() || is_checkout()) { $taxonomies_config['pa_volume'] = []; } // some add to cart decoration if (is_product() && $_SERVER['REQUEST_METHOD'] === 'POST') { $taxonomies_config['pa_volume'] = []; } return $taxonomies_config; }, 10); add_filter('woocommerce_product_variation_get_name', function($value, $entity){ return $entity->get_title(); },10,2);as the result the dropdown still doesnt working plus translate issue in the cart isnt fixed at all :))
Whats wrong?