• Resolved tomigaya60

    (@tomigaya60)


    Hello,
    When I activate your PVT, the table of variation is well displayed, but the complemntary product disappear. Any idea ?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Hakik Zaman

    (@hakik)

    Hi @tomigaya60

    Thanks for reaching to us. Could you please explain a bit more? I didn’t understand the issue.
    You can also record me your issue by using a tool like Loom

    It will help me to figure out your issue immediately.

    Thanks

    Thread Starter tomigaya60

    (@tomigaya60)

    Sorry, I meant I have installed the extension “Product Add-Ons” (https://woocommerce.com/products/product-add-ons/). When I activate your PVT, then the product add-on seems to be disabled or ineffective (though the extension is still active) as the add-on will not appear any longer on my product description page.

    • This reply was modified 2 years, 9 months ago by tomigaya60.
    Plugin Author Hakik Zaman

    (@hakik)

    Hi @tomigaya60

    Really sorry for the inconvenience. The plugin Product Add-Ons may be adding the elements to woocommerce_variable_add_to_cart hook and our plugin removed woocommerce_variable_add_to_cart. It can be a reason.

    Please create a child theme and put the below code to your child theme’s functions.php file.

    function pvt_support(){
    	global $pvtfw_table;
    	remove_action('template_redirect', array( $pvtfw_table, 'remove_add_to_cart'), 29 );
    
    }
    add_action('template_redirect', 'pvt_support');

    I hope it will resolve your issue. I have released a new version 1.3.6 [to minimize your issue] please update the plugin before you perform the above snippet.

    A request

    If you found my support helpful, could you please provide your valuable review here.

    Thanks for using our plugin.

    Thread Starter tomigaya60

    (@tomigaya60)

    Great, it works fine. Thanks for your very rapid and efficient help.

    Thread Starter tomigaya60

    (@tomigaya60)

    Sorry I found 2 new problems :

    1) after adding your code in my child themes, the default dropdown options of WooCommerce variable products are activated again (while originally they were replaced by your variation table). It can create some confusion for users because they can click either on the default menu, or on the variation table (when “action” is activated).
    2) the product add-on (cf my previous message) appears well and can be clicked. However if a user use the “action” in the variation table to order a product, the add-on product, even if clicked, is not passed to the cart.

    Plugin Author Hakik Zaman

    (@hakik)

    Hi @tomigaya60

    Really sorry for the inconvenience.

    after adding your code in my child themes, the default dropdown options of WooCommerce variable products are activated again

    Yes Product Add-Ons adding their element to add to cart hook and we bring back the add to cart block to show your custom created fields. That’s why, it is now visible. We can hide it using CSS.

    However if a user use the “action” in the variation table to order a product, the add-on product, even if clicked, is not passed to the cart.

    Extremely sorry for that. Actually the purpose of our plugin is working with variation and when you create some extra fields using the plugin Product Add-Ons, PVT can’t read the new elements (because it only work with variation).

    Note: You created a field depending on your need and someone will create a field according to their need. So, it is tough to handle and grab those name inside the variation table. This is the reason of not adding.

    But we will think on this matter. If we can get some solution we will definitely add the feature.

    Again sorry ☹ and thanks for understanding.

    Thread Starter tomigaya60

    (@tomigaya60)

    Thanks for the very clear answer.
    Then for the time being I will just unclick the “Action” option of your PVT. This will remove the risk of confusion.
    I hop you can find find solution in the future.
    Keep up the good work !

    Plugin Author Hakik Zaman

    (@hakik)

    Hi @tomigaya60

    Thanks a lot for understanding our situation.
    Again, Thanks for your appreciation. Your appreciation makes us inspired 🙂

    Thread Starter tomigaya60

    (@tomigaya60)

    Hello,

    I have a problem with the extension “Product Add-Ons” (https://woocommerce.com/products/product-add-ons/). When I activate your PVT, then the product add-on seems to be disabled or ineffective (though the extension is still active) as the add-on will not appear any longer on my product description page.

    This problem was fixed with your message 2 weeks ago with modification of function.php, but there is now a new version 2.0 of the pluggin, and your solution does not work any longer.
    Can you help ?

    Plugin Author Hakik Zaman

    (@hakik)

    Hi @tomigaya60

    Sorry for the inconvenience. Our plugin only remove variation add to cart button. But last time, I provided the php snippet to not remove variation add to cart button. Therefore, it should work without any conflict.

    Could you please check it by deactivating PVT?

    Do you have any staging site? So that I can check it for you (you can write me site details here- hakikzmn@gmail.com). You can also reproduce your issue using a tools like- https://useloom.com/

    Looking forward to hearing from you soon.

    Thanks

    Thread Starter tomigaya60

    (@tomigaya60)

    Hi,
    Your php snippet works fine with version 1 of the extension “Product Add-Ons” (https://woocommerce.com/products/product-add-ons/). But if I activate version 2, then I have the problem.

    The problem disappear if either I go back to version 1 of Product Add-on, or if I stay on version 2 and deactivate your PVT.

    As for my site, I keep it under maintenance mode at the momenta s I do not want to disclose it until is completed.

    Thanks for your help.

    Plugin Author Hakik Zaman

    (@hakik)

    Hi @tomigaya60

    Really sorry to hear it is not working. Could you please share which version of Product Add-Ons by WooCommerce, you are using?

    The latest version of Product Add-Ons by WooCommerce is 4.1.0.

    I have installed the latest version Product Add-Ons by WooCommerce 4.1.0 with PVT v1.3.8. Then added the above snippet to my theme’s functions.php and it is working good from my side.

    Here is a screencast, please check it.

    Please let me know, if I missed anything.

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Complementary products disappear when activating PVT’ is closed to new replies.