View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0007868 | OXID eShop (all versions) | 2.8. Service | public | 2025-12-15 11:39 | 2025-12-17 15:16 |
| Reporter | michael_keiluweit | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | confirmed | Resolution | open | ||
| Product Version | 7.3.1 | ||||
| Summary | 0007868: CSV export exports broken CSV | ||||
| Description | encla1eec-7encl;enclR74 Spider 20''encl;enclencl;enclXVMT Titanfelge, Abstraktfelgeencl;enclErleben After applying the workaround (see below): "9755a";"OX7 Coupé";"";"Stilvolles, sportliches Coupé";"";"";"0";"120.000,00";"";"https://mk.oxid.academy/Autos/OX7-Coup.html" "97fbe";"OX5 Family SUV";"";"Das Fahrzeug für die ganze Familie";"";"";"0";"39.999,00";"";"https://mk.oxid.academy/Autos/OX5-Family-SUV.html"(I know, different products, but it's about the characters. | ||||
| Steps To Reproduce | 1. admin -> service -> gener. export 2. choose a category 3. hit the button "export" 4. check the file source/export/genexport.txt (why .txt btw?) 5. it contains broken CSV 6. Apply workaround. Replace the content of /source/Application/views/admin_twig/tpl/genexport.html.twig: {% if linenr == 0 %}
{% if sCustomHeader %}{{ sCustomHeader|raw }}{% endif %}
{% endif %}
{{
(article.oxarticles__oxartnum.value|default('')|enclose(encl) ~ spr ~
article.oxarticles__oxtitle.value|default('')|striptags|enclose(encl) ~ spr ~
article.oxcategories__oxtitle.value|default('')|striptags|enclose(encl) ~ spr ~
article.oxarticles__oxshortdesc.value|default('')|striptags|enclose(encl) ~ spr ~
article.longDescription|default('')|striptags|enclose(encl) ~ spr ~
article.pic1|default('')|enclose(encl) ~ spr ~
article.oxarticles__oxtprice.value|default('')|enclose(encl) ~ spr ~
article.getFPrice()|default('')|enclose(encl) ~ spr ~
article.valid|default('')|enclose(encl) ~ spr ~
article.getLink()|default('')|replace({'&':'&'})|enclose(encl)
)|raw
}}Clear the cache: ./vendor/bin/oe-console o:c:c7. re-run the export 8. compare the result | ||||
| Additional Information | Documentation states, that this feature exports CSV, not text: https://docs.oxid-esales.com/eshop/de/latest/einrichtung/export-import/export.html, and the source code tells the same. | ||||
| Tags | CSV, Export | ||||
| Theme | Not defined | ||||
| Browser | Not defined | ||||
| PHP Version | Not defined | ||||
| Database Version | Not defined | ||||