• Resolved Stef

    (@serafinnyc)


    We have tirelessly tried 40 plus attempts at hooking this Pay Later message into our cart drawer.

    For instance, we want to place the message ideally above the checkout button. None of the hooks we used or found worked. What do we need to do in order to get this message to show in custom locations like a cart drawer?

    Many modern sites use a cart drawer and that’s an ideal location for it.

    Do we need to have some PHP in our cart drawer that the app’s software recognizes and adds?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Stef

    (@serafinnyc)

    Does anyone know why the image block doesn’t work? Or does a mod need to approve it first? It’s a pain thinking your image isn’t loading due to a verification issue

    https://www.loom.com/i/0f7d20d98b594d989b30169e96af0042

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @serafinnyc

    To assist you better, I would like to gather more information about your current setup. This includes details about any additional plugins you might be using that could affect the cart’s layout/functionality and foremost we need the site URL.

    To proceed, could you please provide us with your system report? You can easily obtain this by following these steps:

    1. Navigate to WooCommerce in your site’s dashboard.
    2. Go to ‘Status’.
    3. Click on ‘Get system report’.
    4. Select ‘Copy for support’.

    Once you have the system report, you can share it with us for a more in-depth analysis. If you prefer not to share this information on a public forum, we also offer private support engagements. You can request this by visiting https://paypal.inpsyde.com/docs/request-support/.

    Kind regards,
    Krystian

    Thread Starter Stef

    (@serafinnyc)

    You’re making this overly complicated and you simply don’t understand the question. You obviously didn’t look at the screenshot

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @serafinnyc

    I saw your screenshot, but I wasn’t completely sure if by “cart drawer” you meant the mini cart.

    Regarding your problem, currently, the Pay Later messaging is not available on the Mini Cart. But the feature update in mid-January will introduce a?Pay Later messaging block. If your Mini Cart can be customized with blocks, then this, and many other previously unsupported messaging placements will become possible.

    Kind regards,
    Krystian

    Thread Starter Stef

    (@serafinnyc)

    I am both a WooCommerce Dev and a Shopify Dev, we don’t use the term “mini cart” for either platform when discussing cart drawer.

    I know what the mini cart is, but it is not a cart drawer. A cart drawer utilizes the off-canvas markup whereas a mini cart uses a menu action or hover intent.

    In this case we’re attempting to simply add the Pay Later message to that cart drawer, but so that no matter the page it’s doing its calculation accordingly as well. Just like it shows on a PDP, Cart or Checkout page.

    If we have to wait until Jan 2024 that’s totally fine and that’s good to hear that we’ll be able to do. Thank you.

    — Update

    That is a Gutenberg Block. We need to hook it, not add a drag and drop block. Will that be available as well?

    • This reply was modified 11 months, 1 week ago by Stef.
    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @serafinnyc

    PayPal Payments provides render hooks for the Pay Later messaging:?https://github.com/woocommerce/woocommerce-paypal-payments/wiki/Actions-and-Filters#pay-later-messaging

    However, these are meant to reposition the existing messaging on the page, not create a new instance. So maybe it would be possible to change the render hook for the “shop” location to appear in a hook from your drawer, but this would reposition the shop messaging and therefore only show it when on the shop pages.

    The Pay Later messaging block allows placing the messaging everywhere where blocks are used. If your custom card drawer happens to support blocks, then this would be one solution. Beyond this, we would need to know more details about how this cart drawer is created to provide additional guidance.

    Kind regards,
    Krystian

    Thread Starter Stef

    (@serafinnyc)

    Thanks for this, we already saw that months ago. None of that was related. Are you aware of what a cart drawer is? Let’s establish that first.

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @serafinnyc

    It’s important to note that the plugin currently supports Pay Later messaging in the following locations:

    • Single Product
    • Cart
    • Checkout
    • Shop (including Search & Categories)
    • Home

    While it’s true that these are the predefined locations, the plugin also offers render hooks that allow for the repositioning of existing messaging instances. This means you can adjust the placement of Pay Later messages in the supported locations to better suit your website’s layout.

    However, creating a completely new messaging instance in an unsupported location, like a custom ‘cart drawer‘, would require custom coding. This is outside the scope of what the plugin is designed to do by default. Fortunately, if you have development skills or access to a developer, customizing the plugin to suit your specific needs is feasible. Our GitHub repository provides a lot of information on adding modules and accessing the plugin container, which could be particularly helpful for your project.

    We are also working on introducing a messaging block, which will align with the default functionalities in WordPress & WooCommerce and might offer more flexibility in the future.

    Kind Regards,

    Krystian

    Thread Starter Stef

    (@serafinnyc)

    The cart drawer is pretty standard nowadays as well as in WooCommerce across many themes although the mini cart is still the default, however the cart drawer is going to be overtaking that sooner rather than later. As it is a standardized method for better conversions across all eCommerce platforms.

    What I’m asking is not custom coding. What I’m asking for is is there a possible hook? And that is clearly not something that you guys have established so… would be nice if you guys would make that happen.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Anyway To Hook The Pay Later Message?’ is closed to new replies.