PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

BAER, WooCommerce, WPML and stock management

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
12

Hello,

I bought your plugin BEAR a few hours ago because there were no possibility to test our needs in the free version. I installed it in a development environment to test it. The situation is as follows:

  • Wordpress 6.2
  • Storefront 4.2.0 (Theme)
  • WooCommerce 7.5.1
  • WooCommerce Checkout-Addons 2.6.0
  • WooCommerce Tree Table Rate Shipping 1.28.2
  • WooCommerce Multilingual & Multicurrency 5.1.2
  • Germanized for WooCommerce Pro 3.6.8 plus One-Stop-Shop
  • WPML Multilingual CMS 4.6.2
  • WPML String Translation 3.2.4
  • BEAR 2.1.2

One of the jobs for the plugin would be to handling of stock quantities over all languages (2 languages), single products and/or variations. Problem: we start the BEAR editor in 1 language, search for a product with variations, change the stock quantity in one variation and save it but the stock quantity is only correct in the first language, not in the second one. The first language (EN) is the leading language of the website.

Could you say what could be the problem?

Thank you and kind regards, Tom

Hello Tom

This operation should be done for each language

BEAR 2.1.2  - Very strange! How could you buy yesterday a plugin with an outdated version. please update the plugin - https://bulk-editor.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato

Hello Pablo,

I now installed the version 2.1.3.1 and tested again. Unfortunately the above mentioned operation has the same outcome (no cache involved in any kind).

I tried also different browsers especially for checking product pages backend.

Are there an additional configurations to make? And can my cliennt switch between languages to check the stock?

Kind regards
Tom

Hello Tom

https://c2n.me/4idbxMS.png - I meant that you should do this operation for each language. (switch language and repeat operation)

Hello Pablo,

thank you for replying. My client sees this as very uncomfortable and as a strong possibility for mistakes. Especially for his employees.

And I believe that there should be only on stock quantity for each language (and normally it is that way as I know) - so this way really could cause a lot of mistakes.

Is there another way to keep the stock quantities on the same amounts für everey language per item?

Kind regards

Tom

BTW: the link above is not not working

Hello Tom

OK! I will forward this to the developers, I think we will find a custom solution for you

Hi Pablo,

thank you. I think this would be the normal usage of plugins like yours. So IF there is a solution it´s not custom, it should be in the next release.

And also the switch of languages while working should not caus ea complete loss of the search and working results. Cause this would have been a work-around just to jump between languages. Unfortunately this also doesn´t work.

My client needs this functionality if he uses a bulk editing tool and he now sees no use in this plugin. Waht can be done to speed up things?

Or can there be a refund? Please get back so that I can provide a suggestion to my client.

Kind regards
Tom

Hello Tom

Try  in file - \wp-content\plugins\woocommerce-bulk-editor\classes\models\products.php - add code - https://c2n.me/4ihbRfj.png

if (function_exists('icl_object_id') && 'stock_quantity' == $field_key) {
$icl_langs = icl_get_languages();
foreach ($icl_langs as $ln => $data) {
if ($icl_langs == $ln) {
continue;
}

$product_lcl_id = icl_object_id($product_id, 'post', false, $ln);
$product_lcl = $this->get_product($product_lcl_id);

if ($product_lcl) {
$product_lcl->set_props(array(
$field_key => wc_clean($value)
));
$product_lcl->save();
}
}
}

Or can there be a refund? - Unfortunately not in this case.

 

Hi Pablo,

I first tried to download/watch you mentioned PNG. Unfortunately there is only an error Page.

Then I copied the code you sent at the end of the mentioned file. If this was the wrong place please correct me.

If it was: the change of a stock amount of one variation in EN (1st language) was not synchronized in the second language. By changing the language within the search result the result itself was lost. I searched for the German version (2nd language) of the same product and the amount really was not synchronized.

I hope I just made a mistake and with some advice the problem will be handled.

Kind regards
Tom

Hello Tom

Please remove the code you posted

You can try to open the image through VPN

Where to paste the code:

After the line: 336

After the code that looks like:

$product->set_props(array(
$field_key => wc_clean($value)
));

Hi Pablo,

I did as you recommended - unfortunately nothing changed:

Screenshot from products.php

The image shows the way I implemented your code. Maybe I´ve done something wrong?

Kind regards
Tom

 

Hello

This code should change the number of products in stock for all languages

Please  drop me  wp-admin  access  - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png -  I will check it

Hi Pablo,

provided the data - hope it helps.

Kind regards
Tom

Hello Tom

I made a test -  https://c2n.me/4ij82L8 - everything works fine

Hi Pablo,

unfortunately I cannot watch your url due to a PR_END_OF_FILE_ERROR (in both Chrome and Firefox) which gives me a trojan-warning also. Could you please provide what is behind your link in a different way?

Thank you and kind regards
Tom

Added  to private  data

Hi Pablo,

thank you. I now tried to repeat this by filtering to a certain product an then realized that you try this with a simple product. But we also need to work especially on variations.

Please test again on a variable product on a single variation, thank you.

Kind regards
Tom

Hello Tom

Added  new  video  to  the private data

Hi Pablo,

thank you for your latest video. I try to be a bit more specific about how my client hndles things - which I believe is a correct way:

  • he creates a varible product
  • he creates variations
  • the main product is NOT to be stock managed, bacause not all variations are deliverable
  • some of the variations will be on stock, some won´t
  • the one´s in stock are always managed and
  • the managed ones should normally be the same amounts in every language

I did exactly like you showed in the video accept that I had not activated the general product and it did not work. Then I activated the"manage stock" for the generel inventory and tried again - one time it was working but with the next try it was wrong again. Next I tried to tsrat in the second language but this also failed.

So unfortunately I was not lucky by trying - maybe you got more luck with"ANRI – Holy Family – Ulrich Bernardi nativity" as search parameter in the bulk editor interface. Only if I change the amount of stock in the standard interface of woocommerce the amount is correct in the second language.

Kind regards
Tom

Hello Tom

Please add FTP access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png

12