Hallo, ich bin ein bisschen am verzweifeln.
Und zwar habe ich folgendes Problem:
Im Warenkorb muss ja immer der Versand mit angegeben werden, dass ist soweit auch kein Problem gewesen, da es nur eine Versandmethode gab und diese immer das gleiche kostete. Nun werden aber Produkte eingeführt, bei denen der Versand kostenlos ist, da man nur etwas über E-Mail bekommt. Soweit habe ich das auch schon über die Gewichte eingestellt das die Berechnung am Ende (im Checkout_Confirm) hinhaut.
Nur im Warenkorb hab ich das Problem, das da nicht der tatsächliche Versand angezeigt wird, sonder immer 6,90 €!
Wenn man sich den Code anguckt wird einem auch klar warum:
if ( isset($_SESSION['customers_status']['cost']) ) {
$module_smarty->assign('SHIPPING_COST', $xtPrice->xtcFormat($_SESSION['customers_status']['cost'], true, 0, true));
$module_smarty->assign('TOTAL_SUM', $xtPrice->xtcFormat($_SESSION['customers_status']['cost']+$total, true, 0, true));
}else{
$module_smarty->assign('SHIPPING_COST', $xtPrice->xtcFormat(6.9, true, 0, true));
$module_smarty->assign('TOTAL_SUM', $xtPrice->xtcFormat(6.9+$total, true, 0, true));
Hat bisher so funktioniert weil ja immer nur 6,90€ an Versand angefallen sind.
Ich habe schon etliches probiert nur leider bekomm ich nicht die tatsächlichen Versandkosten angezeit!
Achso Shop ist v. 3.0.4 SP 2.1
Ich hoffe es hat einer ne lösung für mich und ich bedank mich schonmal für jeden Tipp im Voraus.