Search the Community
Showing results for tags 'nome azienda'.
-
Ciao a tutti! Scusate per l'ignoranza, ma non riesco a capire il motivo per cui nelle email che invia in automatico ( creazione account, nuovo ordine, pagamenti...ecc) al posto di inserire correttamente il mio nome ne mette uno non deciso da me. La sezione che va ad inserire il nome errato è {shop_name}. Ovviamente essendo ovunque nelle email la lettura di queste rimane a dir poco incomprensibile! Come faccio a cambiare quel shop name? Ho provato da contatti...ma non funziona! Grazie in anticipo per un vostro gentile aiuto! Gabriele
-
Salve a tutti, qualcuno sa dirmi come posso mostrare il valore contenuto in una tabella diversa da quella "richiamata" con public function __construct() ? nella porzione di pagina sotto riportata si richiama la tabella 'order' ($this->table = 'order' del file AdminOrders.php il valore che vorrei mostrare io (il nome dell'azienda) però in questa tabella non c'è. Io ho aggiunto: 'company' => array('title' => $this->l('Company'), 'width' => 100), ovviamente però non mi visualizza nessun valore perchè nella tabella 'order' l'elemento 'company' non c'è. Quest'ultimo è invece presente nella tabella 'address' Posso io dirgli il valore 'company' "piglialo dalla tabella 'address' ?? public function __construct() { global $cookie; $this->table = 'order'; $this->className = 'Order'; $this->view = true; $this->colorOnBackground = true; $this->delete = true; $this->_select = ' a.id_order AS id_pdf, CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, osl.`name` AS `osname`, os.`color`, IF((SELECT COUNT(so.id_order) FROM `'._DB_PREFIX_.'orders` so WHERE so.id_customer = a.id_customer) > 1, 0, 1) as new, (SELECT COUNT(od.`id_order`) FROM `'._DB_PREFIX_.'order_detail` od WHERE od.`id_order` = a.`id_order` GROUP BY `id_order`) AS product_number'; $this->_join = 'LEFT JOIN `'._DB_PREFIX_.'customer` c ON (c.`id_customer` = a.`id_customer`) LEFT JOIN `'._DB_PREFIX_.'order_history` oh ON (oh.`id_order` = a.`id_order`) LEFT JOIN `'._DB_PREFIX_.'order_state` os ON (os.`id_order_state` = oh.`id_order_state`) LEFT JOIN `'._DB_PREFIX_.'order_state_lang` osl ON (os.`id_order_state` = osl.`id_order_state` AND osl.`id_lang` = '.(int)($cookie->id_lang).')'; $this->_where = 'AND oh.`id_order_history` = (SELECT MAX(`id_order_history`) FROM `'._DB_PREFIX_.'order_history` moh WHERE moh.`id_order` = a.`id_order` GROUP BY moh.`id_order`)'; $statesArray = array(); $states = OrderState::getOrderStates((int)($cookie->id_lang)); foreach ($states AS $state) $statesArray[$state['id_order_state']] = $state['name']; $this->fieldsDisplay = array( 'id_order' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), //'new' => array('title' => $this->l('New'), 'width' => 25, 'align' => 'center', 'type' => 'bool', 'filter_key' => 'new', 'tmpTableFilter' => true, 'icon' => array(0 => 'blank.gif', 1 => 'news-new.gif'), 'orderby' => false), [u][color=#ff0000]'company' => array('title' => $this->l('Company'), 'width' => 100),[/color][/u] 'customer' => array('title' => $this->l('Customer'), 'widthColumn' => 160, 'width' => 140, 'filter_key' => 'customer', 'tmpTableFilter' => true), 'total_paid' => array('title' => $this->l('Total'), 'width' => 70, 'align' => 'right', 'prefix' => '<b>', 'suffix' => '</b>', 'price' => true, 'currency' => true), 'payment' => array('title' => $this->l('Payment'), 'width' => 100), 'osname' => array('title' => $this->l('Status'), 'widthColumn' => 230, 'type' => 'select', 'select' => $statesArray, 'filter_key' => 'os!id_order_state', 'filter_type' => 'int', 'width' => 200), 'date_add' => array('title' => $this->l('Date'), 'width' => 35, 'align' => 'right', 'type' => 'datetime', 'filter_key' => 'a!date_add'), 'id_pdf' => array('title' => $this->l('PDF'), 'callback' => 'printPDFIcons', 'orderby' => false, 'search' => false)); parent::__construct(); } Con la riga di codice che ho aggiunto (colore rosso) mi crea la colonna "Company" ma ovviamente non viene mostrato nessun valore [vedi anche immagine allegata] ringrazio in anticipo chi avrà la pazienza di aiutarmi
- 1 reply
-
- back office
- ordini
-
(and 1 more)
Tagged with: