Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • MC

    (@moscomes)

    I use JS to solve this. Not the best solution, but for my specific case I didn’t want to make a modified template.

    However, I also have mentioned this inline-style problem to YITH months ago

    @fredywd

    document.addEventListener(“DOMContentLoaded”, function() {
    if (document.body.classList.contains(‘*IF*SPECIFIC*PAGE*_*PLACE*BODY*CLASS*HERE*’)) {
    document.querySelectorAll(“.yith-wapo-block [style*=’width: 75% !important;’]”).forEach(function(element) {
    element.style.width = “”;
    });
    }
    });

    Thread Starter MC

    (@moscomes)

    Hi Alessio,

    If I create a new option (dropdown), I can add an image to each selectable option within, and it works; that’s not the issue. I’ve tested that. That’s also how I noticed the new problem with the option-image overlaying the main product image on the single-product page when an option is being selected.

    However, the main problem is with my existing products, which have over 500 also existing images linked to different product options (multiple dropdown options, where different selectable options have a different image). Those images are gone; I have to manually link them all over again. Before the 4.9.2 update, it at least showed the image ID, but after the 4.9.2 update, it’s all gone. No images, not even an image ID linked.

    I guess I don’t need to elaborate on the inline styling issue?

    Kind regards

    Thread Starter MC

    (@moscomes)

    Update:
    I’ve seen other tickets mentioning the ‘not adding to cart’ issue for which you give a solution in the form of disabling AJAX. However, in my case the product used to be succesfully added to the cart with AJAX enabled, before updating. But the main issue with the given solution is that disabling AJAX has a huge impact on the website.

    For now I have disabled AJAX for products which have YITH PAO functionality. In my case those are from a specific category and therefore easy to bypass, but it’s far from ideal.

    I still haven’t found a solution for the main problem as mentioned in the OP (conditional logic) and hope you are still able to help me with that.

    Thread Starter MC

    (@moscomes)

    In addition to my previous reply: I just came to notice it also doesn’t add the product to the shopping-cart anymore. (For completeness: without checking the non-functioning checkboxes).

    I checked the log, and it gives an error:

    “CRITICAL Uncaught TypeError: Cannot access offset of type string on string in (…)public_html/wp-content/plugins/yith-woocommerce-product-add-ons/includes/class-yith-wapo-cart.php:155”

    All in all I gave everything a thorough look and have several issues after updating the plugin:

    • Conditional logic not functioning, as mentioned in OP
    • Doesn’t add product to cart, as mentioned above
    • Additionally and less critical: some elements now have inline styling with ‘!important’ (75% width f.e.), which caused the layout to change and overruled previously applied CSS
    • Doesn’t calculate the total price when options with an additional fee are applied. (used to work, no changes to settings. I disabled it on frontend for now)

    All was working before updating.

    If you need any additional information I’m happy to provide.

    Thanks

    Thread Starter MC

    (@moscomes)

    Hi and thank you for the response!

    These are the settings for radiobuttons that need to appear whenever ‘Extra siervlokken (…)’ is checked.

    Settings translation: Show > all rules > when ‘Extra siervlokken (…)’ > is selected

    On the provided URL it’s the last option/checkbox. Nothing happens when checked. Same goes for the checkbox above it; nothing happens when checked. Please find screenshot below for clarity:

    This all used to work perfectly before, but stopped working after updating the plugin.

    • This reply was modified 1 year, 3 months ago by MC.
    • This reply was modified 1 year, 3 months ago by MC. Reason: added translation
Viewing 5 replies - 1 through 5 (of 5 total)