Hallo! Ich steh an und bitte um Hilfe! Ich habe im Content Manager eine Matrix erzeugt, diese wird auch im angezeigt, wenn man Versand- und Zahlungsoptionen (unten auf der Seite) anklickt. Allerdings, wenn man im Warenkorb steht dort auf Versandmöglichkeiten klickt, steht auf der Seite, die aufgeht nur die Überschrift und sonst bleibt es leer. Ebenso, wenn man unter dem Artikel auf 'zzgl. Versand' klickt. Wie kann ich das bitte ändern? Herzlichen Dank im voraus.
Irgendwas ist da kaputt. der Link im Footer funktioniert. Der auf der Produktdetailseite funktioniert nicht. Mach am besten mal ein Support-Ticket auf. Dann untersuchen wir das mal.
Passender Threat für meine Frage Wir haben fixe Versandkosten unabhängig vom Gewicht. Im Warenkorb wird der Punkt Versandkosten mit Stückzahl und Gewicht angezeigt. Wo schalte ich es ab oder welche Datei muss ich da überladen für eine Anpassung der Darstellung?
Kannst du mal einen Screenshot machen? Im Warenkorb wird eigtl. nur der Name der Versandart angezeigt. Oder meinst du die Anzeige "Versandgewicht"? Die kann man in den Versandoptionen über den Admin abschalten.
Sofern du das mit einem Overload machen willst, kannst du dir die Datei includes/modules/shipping/ups.php und da die Methode \ups_ORIGIN::quote() angucken. Da wird irgendwo die Konstante 'MODULE_SHIPPING_UPS_TEXT_UNITS' (kg) genutzt.
Unter "user_classes/overloads/ups_ORIGIN/CustomizedOutput.inc.php" PHP: <?phpclass CustomizedOutput extends CustomizedOutput_parent{ function quote($method = '') { global $order, $shipping_weight, $shipping_num_boxes; $dest_country = $order->delivery['country']['iso_code_2']; $dest_zone = 0; $error = false; $freeship = false; $lowship = false; for ($i = 1; $i <= $this->num_ups; $i++) { $countries_table = constant('MODULE_SHIPPING_UPS_COUNTRIES_'.$i); $country_zones = explode(',', $countries_table); if (in_array($dest_country, $country_zones)) { $dest_zone = $i; break; } } if ($dest_zone == 0) { $error = true; } elseif (($dest_zone == 1) && ((round($_SESSION['cart']->show_total(), 2)) >= MODULE_SHIPPING_UPS_FREEAMOUNT)) { $freeship = true; $shipping = 0; $shipping_method = MODULE_SHIPPING_UPS_TEXT_WAY.' '.$dest_country.' '; } elseif (($dest_zone > 1) && ((round($_SESSION['cart']->show_total(), 2)) >= MODULE_SHIPPING_UPS_FREEAMOUNT)) { $lowship = true; $shipping = -1; $ups_cost = constant('MODULE_SHIPPING_UPS_COST_'.$i); $ups_table = preg_split('/[:,]/', $ups_cost); for ($i = 0; $i < sizeof($ups_table); $i += 2) { if ($shipping_weight <= $ups_table[$i]) { $shipping = $ups_table[$i + 1]; $shipping_method = MODULE_SHIPPING_UPS_TEXT_WAY.' '.$dest_country.' '; break; } } $i = 1; $ups_cost = constant('MODULE_SHIPPING_UPS_COST_'.$i); $ups_table = preg_split('/[:,]/', $ups_cost); for ($i = 0; $i < sizeof($ups_table); $i += 2) { if ($shipping_weight <= $ups_table[$i]) { $diff = $ups_table[$i + 1]; break; } } $shipping = $shipping - $diff; } else { $shipping = -1; $ups_cost = constant('MODULE_SHIPPING_UPS_COST_'.$i); $ups_table = preg_split('/[:,]/', $ups_cost); for ($i = 0; $i < sizeof($ups_table); $i += 2) { if ($shipping_weight <= $ups_table[$i]) { $shipping = $ups_table[$i + 1]; $shipping_method = MODULE_SHIPPING_UPS_TEXT_WAY.' '.$dest_country.' '; break; } } } if ($shipping == -1) { $error = true; $shipping_cost = 0; $shipping_method = MODULE_SHIPPING_UPS_UNDEFINED_RATE; } else { $shipping_cost = ($shipping + MODULE_SHIPPING_UPS_HANDLING); } if ($freeship == true) { $this->quotes = array( 'id' => $this->code, 'module' => MODULE_SHIPPING_UPS_TEXT_TITLE, 'methods' => array( array( 'id' => $this->code, 'title' => $shipping_method, 'cost' => $shipping_cost * $shipping_num_boxes, ), ), ); } elseif ($lowship == true) { $this->quotes = array( 'id' => $this->code, 'module' => MODULE_SHIPPING_UPS_TEXT_TITLE, 'methods' => array( array( 'id' => $this->code, 'title' => $shipping_method, 'cost' => $shipping_cost * $shipping_num_boxes, ), ), ); } else { $this->quotes = array( 'id' => $this->code, 'module' => MODULE_SHIPPING_UPS_TEXT_TITLE, 'methods' => array( array( 'id' => $this->code, 'title' => $shipping_method, 'cost' => $shipping_cost * $shipping_num_boxes, ), ), ); } if ($this->tax_class > 0) { $this->quotes['tax'] = xtc_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } if (xtc_not_null($this->icon)) { $this->quotes['icon'] = xtc_image($this->icon, $this->title); } if ($error == true) { $this->quotes['error'] = MODULE_SHIPPING_UPS_UNDEFINED_RATE; }// if ($lowship == true) $this->quotes['error'] = $ups_cost; return $this->quotes; }} Quasi 1:1 Kopie nur die Angaben bzgl. Paketanzahl und Gewicht entfernt...
Der Overload sieht gut aus. Benenne bitte das mal Verzeichnis user_classes/overloads/ups_ORIGIN/ in user_classes/overloads/ups/ um. Cache leeren. Dann müsste es gehen.
Hmm... hatte gestern auch schon mit der Umbennenung des Ordners ups_ORIGIN nach ups und Cache leeren probiert, hats nicht getan. Jetzt klappt es - *It's Magic!*