• Resolved D&A

    (@dusananta)


    When I go to orders, then add order, and then Add Items, then Add Products and try to search products by SKU it just doesn’t work, until I update the product one by one then only those updated products work and I can search them by SKU , when I do a quick edit then update multiple products, it doesn’t work again, the product must be updated one by one so that its SKU can be searched. Is there a solution that I can add a certain script, which will update all the products and add certain things to your plugin, so that it can be searched afterwards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Dan Zakirov

    (@alexodiy)

    Hello. Honestly, I don’t understand your question. Try to explain in more detail… what kind of search are you doing? where are you looking? how? ….. But in order for the SKU to be saved in the database, of course it has to be saved. SKU are only corrected after a product has been saved. Unless you do an AJAX update, but that’s hard to do just in SKU, it’s about product

    Thread Starter D&A

    (@dusananta)

    Okay, maybe my question sounds a little confusing. When I go on the route I listed above, I talk about orders. And when I try to find some orders in the search by SKU, I get that such a product does not exist. Then when I enter that particular product and update it, without changing anything on it, simply click on update, after that the search by SKU works. It goes without saying all this I say for the admin panel. Is there a possibility to update all products at once and after that the SKU search will work? When I go to Bulk edit, select more products and update, it still doesn’t work. Only one by one when I update then do a SKU search. The path I’m talking about is: “WooCommerce / orders / Add order / Add item (s) / Add product (s) / Search for a product …” It goes without saying that when I turn off your plugin, it doesn’t work at all even when the products are updated one by one. Probably when updating one product at a time, the plugin only adds something to the database for that product, to recognize it, when it comes to a global update it adds nothing. Can I assign something globally to all products, so that I don’t update one product at a time? Sorry for such big questions, but it’s very important to me, and only your plugin does it well

    • This reply was modified 3 years, 6 months ago by D&A.
    • This reply was modified 3 years, 6 months ago by D&A.
    Plugin Author Dan Zakirov

    (@alexodiy)

    Thank you. Now I know what you’re talking about. I hadn’t even thought about the order section. I’ll test it out. I’ll need some time to analyse

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Looking at this topic, it’s a support question, not a review. I’ve moved it to the plugin’s support area. @dusananta If you’d like to leave a review, please start a new one, but don’t use it to ask for support. ??

    Plugin Author Dan Zakirov

    (@alexodiy)

    @sterndata Thank you

    Plugin Author Dan Zakirov

    (@alexodiy)

    Hello @dusananta.

    I have looked at everything. The conclusion is as follows.

    It’s not a problem with our plugin, it’s a problem with WooCommerce.

    WooCommerce doesn’t allow you to search for orders based on SKUs. By the way, why they haven’t done this yet is a mystery.

    I’ve looked at a lot of solutions online, but they all involve adding a new meta field to the order and don’t quite work correctly. I came to the conclusion that the easiest thing to do for SKU is to put a separate filter.

    Started to make my own filter, but then found a ready-made solution – https://www.ads-software.com/plugins/search-order-by-product-sku-for-woocommerce/ . After installing this plugin you will get such a field

    For beauty you can also make a new column, adding this code to functions.php – https://pastebin.com/H01C37zi . After adding the code, you will get such a column which you can turn on and off here

    Now a very important question

    Do you need this functionality in the plugin? I could make a separate parameter, a checkbox – “Enable filter in orders and output SKU column”. If this functionality is needed, then in the next plugin update I will do it.

    Plugin Author Dan Zakirov

    (@alexodiy)

    Due to inactivity of the topic. I’m making it resolved.

    Feel free to open further topics/threads if you need any assistance.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem with orders and Update product’ is closed to new replies.