• Resolved chalisoft

    (@chalisoft)


    Hi @fahadmahmood,
    I have seen you update the plugin to the latest version 2.1.4. But, when I check with Variable Product the UI still shows an error. More specifically you can watch my video at

    And I want to ask is this plugin compatible with any product variation swatches?
    I tried several plugins but it didn’t allow selection because out of stock. Although there are still products in stock.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @chalisoft I would suggest you to use the urgent help option under the help tab. Because stock location enable/disable functionality is an important feature in the troubleshooting and also the javascript object which is displaying out of stock message.

    P.S. I have tested the same scenario which you recorded, results are different so I need you to test it with me.

    Thread Starter chalisoft

    (@chalisoft)

    @fahadmahmood You can see my recent recording https://vimeo.com/742192217 . This video makes the problem more clear at the end of the video.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @chalisoft please watch the following video and see the same steps I followed, in the end of this video you will see the solution as well.

    Thread Starter chalisoft

    (@chalisoft)

    @fahadmahmood Thank you so much! There’s just one more problem, I think it’d be great if it’s fixed https://imgur.com/PP3cScG

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    I am sorry, as you have the video, further troubleshooting should be together not like exchange of videos as results are different.

    Thread Starter chalisoft

    (@chalisoft)

    @fahadmahmood I checked your code and i see https://imgur.com/oGW3OuU

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    I appreciate this catch, please confirm if fixing this variable is resolving your issue? If yes, then I release another version with this correction.

    Thread Starter chalisoft

    (@chalisoft)

    @fahadmahmood It still doesn’t work. I checked the update_wc_stock_status() method in the helper-slw-product.php file . And I see that the code is crashing, you used the update_wc_stock_status() method to call the variation ID. In this method you used wc_get_product() function to get product data. However, it cannot get variation data through variation ID. You can watch my short record https://vimeo.com/742260706

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @chalisoft are you serious in getting support? Or learning about WordPress/WooCommerce functions here on forums. Why are you playing with the code with inadequate knowledge? See, either bring a solution to me or let me troubleshoot the issue and help me to reproduce it.

    I have again tested the code, nothing is crashing. wc_get_product() function is correctly responding for the variation ID as well. I am sorry but your muted videos are not helpful.

    Please choose one of the following methods ahead:

    1) Find the problem and come back to me with a solution.
    2) Explain me the problem the way I am asking you to, let me troubleshoot it and fix it.

    P.S. Please do not waste my time and yours as well by pointing out the PHP functions and your learning curve involved.

    Thread Starter chalisoft

    (@chalisoft)

    @fahadmahmood I am sorry, I can’t speak English, I can only write English so my videos have no voice. And I’m so sorry for understanding some of the WooCommerce functions, for example, wc_get_product() only works after the init action. And I am also very sorry if I have wasted your time. But for testers like me, I will check many cases, find bugs and fix it myself. I’m also a developer very busy with my work however I would also like to take a moment to contribute and perfect this great plugin. Thank you once again.

    Thread Starter chalisoft

    (@chalisoft)

    @fahadmahmood I added the code to line 565 of the file class-slw-stock-locations-tab.php, you can see it at https://imgur.com/tHSiQ0O . And it worked perfectly. _stock_status meta key of the variations worked correctly when I updated the product with any quantity. You can refer to this solution of mine.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Dear Friend,

    I can understand, no problem. I wasn’t aware that you are not fluent in English speaking. Nice to meet you, so you are a developer as well. I appreciate your intentions towards contributing to this plugin for the results accuracy. Thank you so much.

    I have added your provided solution to the next version. You will get it in the next update.

    Thanks,
    Fahad

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Can’t add product to cart on variable product’ is closed to new replies.