jhaxey Posted March 11, 2013 Share Posted March 11, 2013 Tengo un campo dentro de ps_order_details que es start_date con todos los demás campos tax_name , tax_rate ... lo mete en mail pero start_date no que puede ser? .. asi tengo el item table $itemsTable .= '<tr style="background-color:'.($key % 2 ? '#DDE2E6' : '#EBECEE').';"> <td style="padding:0.6em 0.4em;">'.$product['product_reference'].'</td> <td style="padding:0.6em 0.4em;"><strong>'.$product['product_name'].(isset($product['attributes_small']) ? ' '.$product['attributes_small'] : '').(!empty($customizationText) ? '<br />'.$customizationText : '').'</strong></td> <td style="padding:0.6em 0.4em;">'.$product['start_date'].'</td> <td style="padding:0.6em 0.4em; text-align:right;">'.Tools::displayPrice($unit_price, $currency, false).'</td> <td style="padding:0.6em 0.4em; text-align:center;">'.(int)($product['product_quantity']).'</td> <td style="padding:0.6em 0.4em; text-align:right;">'.Tools::displayPrice(($unit_price * $product['product_quantity']), $currency, false).'</td> </tr>'; } Link to comment Share on other sites More sharing options...
jhaxey Posted March 12, 2013 Author Share Posted March 12, 2013 he probado por codigo $sql = 'SELECT start_date FROM '._DB_PREFIX_.'order_detail WHERE id_order_detail='.$product['id_order_detail']; $startdate = Db::getInstance()->getValue($sql); y tambien me fecha .. cualquier otro campo de esa tabla ps_order_detail si me lo lee Nadie¿? Link to comment Share on other sites More sharing options...
jhaxey Posted March 12, 2013 Author Share Posted March 12, 2013 (edited) tiene que haber algo raro que se me pasa , .. $ord=(int)($product['id_order_detail']); $fecha ="SELECT `start_date`FROM `ps_order_detail` WHERE `id_order_detail` ='36'"; $startdate = Db::getInstance()->getValue($fecha); si ejecuto ese sentencia directamente .. si me devuelve el campo, .. en cambio si le paso $ord=(int)($product['id_order_detail']); $fecha ="SELECT `start_date`FROM `ps_order_detail` WHERE `id_order_detail` ='$ord'"; $startdate = Db::getInstance()->getValue($fecha); no me devuevlve ningun valor , aunque el valor de $ord si me lo arroja... Edited March 13, 2013 by jhaxey (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts