Antwort #1217 am: 10. Februar 2017, 20:09:38
Hallo,
eine kurze Frage, für die ich einfach die Lösung hier nicht finde. Sobald ich Sonderpreise bei einem Artikel eingebe, erscheint in der Produktübersicht nur ein Sternchen.
Ich habe nichts in der xtcPrice.php geändert und auch ein Auskommentieren in der function.template_styler.php von
// Produktpreis und Sonderangebotspreis splitten, damit Preis richtig sortiert wird foreach ($data as $k => $v){ if (strpos($data[$k]['PRODUCTS_PRICE'],"productOldPrice")){ preg_match_all('/<span.*?(<del\>.*?<\/del>)<\/span><br \/\>[a-zA-Z ]+(.*?)<br \/\><small.*?<\/small\>/',$data[$k]['PRODUCTS_PRICE'],$Ergebnis); $data[$k]['PRODUCTS_PRICE'] = $Ergebnis[2][0]; $data[$k]['PRODUCTS_OLDPRICE'] = "<br /><span class=\"productOldPrice\">".$Ergebnis[1][0]."</span>"; } } klappt nicht. Kann mir bitte jemand kurz sagen, wo das Problem besprochen wurde, oder was ich ändern muss? Anscheinend passt der Preis-string ja nicht, wie ich gelesen habe, aber ich weiss nicht, wo er geändert worden wäre, dass er nicht mehr dem Standard entspricht.
1000 Dank für jeden Tipp!
Bob