Access Calculator Values from New Order hook and Thank You hook

Home – SaaS Forums Presale questions General questions Access Calculator Values from New Order hook and Thank You hook

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4298
    Mike Whant
    Participant

    Hello.

    How can I access the selected values with new order hook and thank you hook (after payment completed)?

    I have tried:

    add_action( ‘woocommerce_new_order’, ‘action_woocommerce_new_order’, 10, 3 );

    function action_woocommerce_new_order( $order_id ) {
    $order = wc_get_order($order_id);
    $order_items = $order->get_items();
    $item_dump = implode($order_items);
    };

    However it returns empty.

    I have tried everything I can find online.

    Do I need to re-purchase pro to get support?

    Thanks in advance.

    #4304
    david
    Participant

    Dear Mike Whant,
    Sorry, but our information says that your last purchase was some days before 2017 July 17.
    That means that your annual subscription is surely expired and this is the reason why your credentials to grant access in our forum are revoked.

    The other effect of this situation is that you are not able to download new versions anymore and we can give you pre-sales support, only.
    Sorry again for that.

    Anyway we opened a ticket so that you will receive some support from one of our specialists

    David
    At1323

    #4303
    Enrico
    Participant

    Hello Mike,

    Could I ask you why are you trying to access these properties? I mean what would be your final target/goal after you got these values?

    Kind Regards,
    Enrico
    AT1323

    #4302
    Mike Whant
    Participant

    Hi Enrico,vthank you for your reply.

    Our jobs system is setup to download order data from mysql table. Unfortunately the jobs system was setup by someone else and I don’t have access to source code.

    So the solution I came up with was to copy order data to old table when order is made / completed payment.

    I can successfully copy order data, just not item meta for some reason.

    #4301
    Enrico
    Participant

    Hello Mike,

    This piece of code wouldn’t have nothing to do with WPC as it is coming from WooCommerce features, but If you would like to renew the subscription I will send you the piece of code to get/print the item meta.

    I made a screenshot to be sure we are talking about the same thing.

    But I also think that your work doesn’t finish after you get the list of item meta as I think you should develop some more things to achieve what you would like to do. If you are interested in a complete solution you can send us an email and ask for a quotation here: https://altoswebsolutions.com/contact-us

    Let me know how do you think is best/prefer to proceed.

    Kind Regards,
    Enrico
    AT1323

    #4300
    Mike Whant
    Participant

    “This piece of code wouldn’t have nothing to do with WPC as it is coming from WooCommerce features”

    I don’t agree because I can get all the usual woocommerce values – just not the ones from your plugin.

    I do however understand that you have to charge for support.

    Unfortunately I can’t justify the cost just to solve this small issue.

    Thank you anyway.

    #4299
    david
    Participant

    In this forum, our customers receive well-timed answers, more operative support to catch the best final solution, sometimes customized solutions and for all of these reasons, we need to dedicate more attention and more time.

    Even so, in most cases, here our answers are done freely, too.
    But sometimes not.

    So I suggest you to reformulate your request on the WordPress forum and anything you will receive from us is always free.
    Thank you
    David
    at1323

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.