am: 03. Dezember 2009, 15:30:30
Nach langer Abstinenz, viel Arbeit und wenig Freizeit habe ich wieder mal ein kleines Schnipsel für euch.
Wer kennt es nicht, Kunden rufen an und sagen bitte die Bestellung vom letzten mal nochmal ?
Ich hab mich bis jetzt immer über die bequemen Kunden geärgert. Damit ist nun Schluss.
Der Aufruf erfolgt nach diesem Schema:
http://domain.ltd/admin/orders_copy.php?oID=#Bestellnummer#den Button dafür könnt ihr wie folgt einbauen:
suche in der /admin/orders.php ca. Zeile 912
$contents[] = array ('align' => 'center', 'text' => '<a class="button" href="'.xtc_href_link
(FILENAME_ORDERS
, xtc_get_all_get_params
(array ('oID', 'action')).'oID='.$oInfo->orders_id.'&action=edit').'">'.BUTTON_EDIT
.'</a> <a class="button" href="'.xtc_href_link
(FILENAME_ORDERS
, xtc_get_all_get_params
(array ('oID', 'action')).'oID='.$oInfo->orders_id.'&action=delete').'">'.BUTTON_DELETE
.'</a>'); ersetzen mit:
$contents[] = array ('align' => 'center', 'text' => '<a class="button" href="'.xtc_href_link
(FILENAME_ORDERS
, xtc_get_all_get_params
(array ('oID', 'action')).'oID='.$oInfo->orders_id.'&action=edit').'">'.BUTTON_EDIT
.'</a>
<a class="button" href="'.xtc_href_link
('orders_copy.php', xtc_get_all_get_params
(array ('oID', 'action')).'oID='.$oInfo->orders_id).'">kopieren</a>
<a class="button" href="'.xtc_href_link
(FILENAME_ORDERS
, xtc_get_all_get_params
(array ('oID', 'action')).'oID='.$oInfo->orders_id.'&action=delete').'">'.BUTTON_DELETE
.'</a>'); zusätzlich muss in phpMyAdmin noch das hier ausgeführt werden:
ALTER TABLE admin_access ADD orders_copy INT( 1 ) NOT NULL DEFAULT 0;
UPDATE admin_access SET orders_copy = 1 WHERE customers_id = 1 LIMIT 1;
UPDATE admin_access SET orders_copy = 3 WHERE customers_id = 'groups' LIMIT 1;
zudem muss in der neuen Datei /admin/orders_copy.php in Zeile 15 das hier geändert werden:
$orders_array['orders_status'] = 35;
da sollte die StatusID eingetragen werden, welche nach dem Kopieren gesetzt sein soll.
Viel Spass damit
Gerhard
[
EDIT Tomcraft 05.03.2022: Modul für Shopversion 2.0.6.0
ergänzt.]
Linkback: https://www.modified-shop.org/forum/index.php?topic=2887.0