• thebaldfatguy

    (@thebaldfatguy)


    Is there code available to break down the Order Item Metadata? I wish to pull one particular field from it to use to add a fee if that field is set.

    the Order Item Metadata that I get is as follows.

    Sizes: XL | Colors: Black | _ni_cost_goods: 18 | _woo_custom_stock_status_email_txt: In stock | Student Name: Student Name: Louk | Delivery Options: Send with student | Make it Glitter?: Yes (+$6.00)

    I would like to make a variable such as $glitterfee = “6”; if the Make it Glitter? section says Yes…

    I can do the maths to add the $glitterfee to my totals, I just can’t figure out how to get that info separated.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author algol.plus

    (@algolplus)

    hello

    Please, follow this way to add new field https://docs.algolplus.com/algol_order_export/add-calculated-field-for-product/

    You can read meta using $item->get_meta(“key_name”)

    thanks, Alex

    Thread Starter thebaldfatguy

    (@thebaldfatguy)

    Thank you for the assistance, however I am not able to achieve the result I am seeking… This is highly attached to the fact that I am not a developer, just one who can usually bend the code to his liking… this is beyond my abilities. I will continue to do this portion manually for now.

    Plugin Author algol.plus

    (@algolplus)

    hello

    >add the $glitterfee to my totals

    It’s unclear for me, how do you plan to use this variable.

    So please submit new ticket to https://algolplus.freshdesk.com/
    1. attach your settings (visit tab Tools to get them).
    2. attach Excel file with your notes(about math) for necessary columns

    Thread Starter thebaldfatguy

    (@thebaldfatguy)

    Thank you, I have submitted the ticket.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Split Order Item Metatdata’ is closed to new replies.