- Posts: 196
- Thank you received: 15
Export - problem with order with points
- StudioPrzyLesie
-
Topic Author
- Offline
Less
More
2 years 1 month ago #362508
by StudioPrzyLesie
Export - problem with order with points was created by StudioPrzyLesie
Hi,
I have set up order export in mass actions. Everything works fine, but if there is an order where the customer uses the collected points, two rows are added that have unusual values for the column order_product_code and order_product_price. Can this be eliminated/changed somehow?
Tom
I have set up order export in mass actions. Everything works fine, but if there is an order where the customer uses the collected points, two rows are added that have unusual values for the column order_product_code and order_product_price. Can this be eliminated/changed somehow?
Tom
Please Log in or Create an account to join the conversation.
2 years 1 month ago #362509
by nicolas
Replied by nicolas on topic Export - problem with order with points
Hi,
The points are added as additional fees to the orders. These additional fees are stored in the order_product table by HikaShop.
It would be the same if you added extra fees with the cart fees plugin available on our marketplace.
The mass action export sees the extra fees as normal products when generating the CSV.
The nice and clean way would be to create a class override of the massaction class ( www.hikashop.com/support/documentation/6...ntation.html#classes ) and override the method organizeExportColumn(&$params,$table, &$columnsArrays) in order to remove the entries of the array $params->elements after calling the parent method.
It's not difficult if you're a developer. But if you're not it will be challenging.
The points are added as additional fees to the orders. These additional fees are stored in the order_product table by HikaShop.
It would be the same if you added extra fees with the cart fees plugin available on our marketplace.
The mass action export sees the extra fees as normal products when generating the CSV.
The nice and clean way would be to create a class override of the massaction class ( www.hikashop.com/support/documentation/6...ntation.html#classes ) and override the method organizeExportColumn(&$params,$table, &$columnsArrays) in order to remove the entries of the array $params->elements after calling the parent method.
It's not difficult if you're a developer. But if you're not it will be challenging.
Please Log in or Create an account to join the conversation.
Time to create page: 0.211 seconds