Hallo Zusammen,
wir nutzen für Bestellungen aus dem EU-Ausland das Versandmodul "zones".
Nun versenden wir nach Österreich ab einem Bestellwert von 150 Euro versandkostenfrei.
Wenn diese Grenze überschritten wird, möchte ich die Versandart "zones" im Checkout ausgeblendet haben.
Ich weiß eh nicht warum dann noch jemand "zones" auswählen sollte, wenn er die Sendung eh frachtfrei nach Hause bekommt.
Dazu habe ich folgenden Ansatz gewählt.
/includes/modules/shipping/zones.php
if ($_SESSION['cart']->show_total() > '150' and $dest_country == 'AT') {
$this->enabled = false;
}
Ich scheine allerdings irgendwas zu übersehen, da ich andauernd einen Syntax Error am Ende der Datei (unexpected ; )
Habe es schon an verschiedenen Stellen versucht, aber es will einfach nicht klappen.
Wo liegt der Denkfehler?
Linkback: https://www.modified-shop.org/forum/index.php?topic=35711.0