View Issue Details

IDProjectCategoryView StatusLast Update
0007868OXID eShop (all versions)2.8. Servicepublic2025-12-17 15:16
Reportermichael_keiluweit Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product Version7.3.1 
Summary0007868: 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 Reproduce1. 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:c
7. re-run the export
8. compare the result
Additional InformationDocumentation 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.
TagsCSV, Export
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Relationships

duplicate of 0007686 closedSvenBrunk Twig Template uses string instead of variable to enclose... 

Activities

QA

2025-12-15 14:49

administrator   ~0018292

Dear Michael,

this is a duplicated report, but with better discription, therefore i will assign this as well.

Best Regards
QA -SG-