• Resolved Samir Rifai

    (@srifaia)


    Hi,

    What’s the field name (code) for the button in the Order Details which opens the customer’s address in Google Maps?

    I use an export tool to export a csv with order details and need to map the field for this button:

    01.18.2023-19.35.06

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Uriahs Victor

    (@uriahs-victor)

    Hi there,

    What do you mean the code? Which tool is that? The button pulls the latitude and longitude value saved to the order meta details.

    lpac_latitude and lpac_longitude

    Thread Starter Samir Rifai

    (@srifaia)

    Hi @uriahs-victor,

    Thanks for reaching out.

    I use the following plugin to export orders: https://algolplus.com/plugins/downloads/advanced-order-export-for-woocommerce-pro/

    Ok I understand about lpac_latitude and lpac_longitude.

    Is there a way to get a single meta key for the button link (mentioned in my last post, need the complete link)? The purpose is to export the link from that button to a csv with the mentioned tool.

    Thanks

    Plugin Author Uriahs Victor

    (@uriahs-victor)

    Hi again,

    Right now I do not store the full link to the order meta, the link is built dynamically when the page loads using the saved latitude and longitude saved to the order meta. Adding the full link to the order meta might not be a common use case outside of yours since it can be built pretty easily once the latitude and longitude is pulled.

    I would say contact the developers of that plugin you linked and ask them if it’s possible to export a custom piece of data that is built dynamically. Maybe this is it: https://docs.algolplus.com/algol_order_export/hooks-filters/

    So please contact them regarding this, let me know if they’re able to help. You can send them this thread so they can see what you’re trying to do and in which meta keys the needed data is stored.

    Thread Starter Samir Rifai

    (@srifaia)

    Hi, thanks for quick reply.

    After your idea, I found this which I believe is the way to build the link using the export plugin with your lat and long meta keys:

    https://docs.algolplus.com/algol_order_export/fields/

    Plugin Author Uriahs Victor

    (@uriahs-victor)

    That looks like it would work. Were you able to figure it out or do you still require assistance?

    You can give this snippet a shot: https://pastebin.com/Qvyh1kXt

    I haven’t tested it myself, but I think it should work. Please take a backup of your site before previewing the code (its always good practice.)

    I’m using functions I already have in LPAC to dynamically create the link, if it doesn’t work then let me know and we can just build the link manually.

    Plugin Author Uriahs Victor

    (@uriahs-victor)

    According to the docs here: https://docs.algolplus.com/algol_order_export/fields/

    The “Meta key” value you need to enter when creating a new column for the export is lpac_cc_map_link

    The code I shared in the pastebin above already has the filter name that includes the lpac_cc_map_link part

    • This reply was modified 2 years, 2 months ago by Uriahs Victor.
    Thread Starter Samir Rifai

    (@srifaia)

    Hi @uriahs-victor,

    Thanks for your effort in trying to build the link.

    I created a snippet with the code you provided, and followed the instruction on creating the string, however it didn′t work as expected.

    Check: https://www.screencast.com/t/QkvqGVXhuq

    Plugin Author Uriahs Victor

    (@uriahs-victor)

    @srifaia Please send a support ticket here: https://lpacwp.com/contact/

    I want to take a closer look at whats happening. I’ll close this thread, you can send a support ticket and we’ll continue the conversation there

    Thread Starter Samir Rifai

    (@srifaia)

    Ok just sent the ticket, thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Field name to export “View” link button in order details’ is closed to new replies.