• Resolved Sebastian Pisula

    (@sebastianpisula)


    Hello,

    I am the author of the Custom Cart Link for WooCommerce plugin. Users have reported an issue where they are unable to add products – it seems like some JavaScript script is blocking our scripts. I am having difficulty identifying the problem and I’m hoping for assistance.

    The error occurs in the following environment:

    WordPress – 6.2.2
    WooCommerce – 7.8.0
    Cart Link for WooCommerce – 1.3.1
    Astra theme – 4.1.5

    I don’t see any errors in the JavaScript console. I can see that the theme adds additional elements to the screen and some scripts. Additionally, I’m debugging by entering the following code in the console:
    jQuery( ‘#the-list’ ).append( ‘<tr><td>Test</td></tr>’ );

    However, it appears that something is blocking the rendering.

    Could you help resolve the issue on your end or guide me on what might be added from your side, so that I can address it?

    I should also mention that everything works fine when testing with the Storefront theme.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @sebastianpisula,

    Thanks for the heads up and we are sorry for the inconvenience you may have because of this. I am taking this forward to the team. Once I hear anything back, I shall update this thread.

    Kind regards,
    Herman ??

    Hi @sebastianpisula,

    I have just heard back from our concerned team and would like to share it with you right away.

    We are able to replicate this on our end, and we will try to fix it ASAP. Again, sorry for the inconvenience.

    Kind regards,
    Herman ??

    Thread Starter Sebastian Pisula

    (@sebastianpisula)

    Hi @bsfherman,

    any updates?

    Hi @sebastianpisula, sorry for the delay.

    If everything is running as expected, we will include the fix for this issue in the next update. Hopefully, we will be able to stick with the plan. Again, sorry for the inconvenience.

    Kind regards,
    Herman ??

    Hi @sebastianpisula,

    While working on this, we noticed that this issue needs to be fixed from your side. Here are our findings:

    • This is not a problem with the Astra Theme. It can be reproduced also with Kadence or any other theme which has Custom Fields enabled.
    • Your plugin uses #the-list element which is also used by the Custom Fields. Due to the duplicated id, the elements are being appended to the #the-list element of the Custom Fields which is causing the issue. As Custom Fields is offered from WordPress itself, therefore theme cannot do anything here. You can either rename #the-list element or find a more appropriate solution/workaround for the same.
    • This is a video of the issue reproduced with Kadence: https://d.pr/v/5hurHu

    Hope this will help and clarify. If you think we can be any help, please just let us know.

    Kind regards,
    Herman ??

    Thread Starter Sebastian Pisula

    (@sebastianpisula)

    Hi @bsfherman,

    thank you for info – we fixed it!

    Hi @sebastianpisula,

    Very pleased to know that. I just tried it as well, and it worked! ??

    Please mark this thread as Resolved. Let us know if there is anything else related to Astra, we can help you with.

    Kind regards,
    Herman ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Theme Conflict’ is closed to new replies.