• Resolved tonuz

    (@tonuz)


    Hi Team,

    Could we load wc-ppcp-paylater-msg-checkout script only if Pay Later messaging?is enabled ?

    Also, wc-ppcp-cart should be loaded on checkout page ? or only on cart page ?

    Regards,

    Antoine

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @tonuz

    Could we load?wc-ppcp-paylater-msg-checkout?script only if Pay Later messaging?is enabled ?

    That file should only load if you have Pay Later messaging enabled. Are you seeing it load on your checkout page even if messaging is disabled?

    The wc-ppcp-cart JS file is part of the checkout page code and logic and is therefore a required dependency. Don’t get caught up in the name of the file as describing the only function of that code.

    Kind Regards

    Thread Starter tonuz

    (@tonuz)

    Hi,

    Thanks for the answer. However on my side the script is loaded even if messaging is disabled.

    Also the plugin adds “wc-ppcp-paylater-msg-shop-container” <div> under every products.

    Is this possible to fix it ?

    Regards,

    Antoine

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @tonuz

    We will take a look and see why the script would be enqueued even if messaging is disabled.

    Also the plugin adds “wc-ppcp-paylater-msg-shop-container” <div> under every products.

    Is this possible to fix it ?

    Yes, in the next release we will ensure that html only renders if the shop messaging is enabled. Both fixes will be in tomorrow’s release. Thank you for bringing that to our attention.

    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JS files loading improvement’ is closed to new replies.