Quantcast
Channel: Programmierung - Shopware Community Forum
Viewing all articles
Browse latest Browse all 2871

Versandkosten Modul SUM Formel

$
0
0

Hallo,
ich versuche bei dem Versandkostenmodul die Abfrage zu erweitern. Hierzu soll eine Variable Sonderversand true werden, wenn bestimmte Attribute aktiviert sind, oder aber das Gewicht des Warenbkorb einen Wert übersteigt.
Meine Formel sieht bisher so aus, aber ein Teil funktioniert nicht:

MAX(a.topseller) as has_topseller, MAX(at.attr3) as has_comment, MAX(b.esdarticle) as has_esd, MAX( IF(at.attr4='true' OR at.attr5='true' OR at.attr6='true' OR at.attr7='true' OR at.attr7='true' OR at.attr8='true' OR (IF SUM(d.weight*b.quantity)>30='true',1,0),1,0)) AS Sonderversand

Ich habe schon etliche Varianten von (IF SUM(d.weight*b.quantity)>30='true',1,0) ausprobiert, aber ich komme nicht auf die richtige Syntax.

Kann mir jemand helfen?
Vielen Dank.

 

 


Viewing all articles
Browse latest Browse all 2871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>