• Resolved alebatistella

    (@alebatistella)


    Good afternoon,

    I want to get programmatically the value of the commission percent value and the commission fixed value for a specific item in an order object.

    So, I have the object $order and I get the line items like this:

    $items = $order->get_items();

    How can I get the commission percent and fixed values from each item, exactly the information in this image?

    I’m looking forward for your response. ??

    • This topic was modified 4 years, 6 months ago by alebatistella.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @alebatistella,

    The first step would be to identify where the plugin you’re using to offer commissions is storing its data and what the value is for that storage. The developers of the plugin you’re using to allocate those commission amounts should be able to offer some insight with regards to that for you.

    Once you know where the plugin you’re using for commissions is storing its data you can then work on fetching that with some code.

    Thread Starter alebatistella

    (@alebatistella)

    Hey @stuartduff,

    Okay, I just figured out that it is from WCFM plugin. I’ll try to find this data stored in this additional plugin.

    Thanks for the fast reply!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get product custom commission programmatically’ is closed to new replies.