• Resolved kayakondacs

    (@kayakondacs)


    Hey there,

    I am almost done with exporting my orders using your brilliant plugin. Purchased the PRO version, everything runs smoothly.

    I am facing one last issue tho.

    Within my export .xml file I have already managed to insert a row showing the single product price (without TAX). This I added by choosing Set up fields to export > Product fields > _price.
    No I need to add another row showing the single product price with TAX this time. When seeking through Product fields theres no such option tho =(. Can you please navigate me here?

    Thank you a lot

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

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

    (@algolplus)

    hi

    Please, follow to https://algolplus.freshdesk.com/support/solutions/articles/25000018287-add-calculated-field-for-product-

    use “price_tax” as meta_key and add following code to section “Misc Settings”
    thanks, Alex

    add_filter('woe_get_order_product_value_price_tax', function ($value, $order, $item, $product,$item_meta) {
       $value = ($item['line_tax']+$item['line_total'])/$item['qty'];
       return $value;
    }, 10, 5);
    • This reply was modified 6 years, 3 months ago by algol.plus.
    Thread Starter kayakondacs

    (@kayakondacs)

    Hey, thanks a lot, I tried to follow the steps within the link you have provided, but I am not sure how to get to that options… is there any additional plugin needed to be able to add calculated field?? I cannot find the option “Setup fields” to enter the table. Thank you a lot!

    Plugin Author algol.plus

    (@algolplus)

    hi

    You should
    – create field (>Setup Fields>Products>Add field , put “price_tax” in 3rd input)
    – add provided code to section “Misc Settings” (it’s above “Setup Fields”)

    I’m sorry, I can’t help you more.
    thanks, Alex

    Plugin Author algol.plus

    (@algolplus)

    final version (round the number 2 digits)

    add_filter('woe_get_order_product_value_price_tax', function ($value, $order, $item, $product,$item_meta) {
       $value = round( ($item['line_tax']+$item['line_total'])/$item['qty'], 2);
       return $value;
    }, 10, 5);
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add a product attribute to the export .xml file’ is closed to new replies.