salvadorbiedma Posted July 14, 2010 Share Posted July 14, 2010 Buenas,Instalé un modulo llamado "cashondeliverywithfeeaural" para pago al transportista . Este módulo permite realizar el pago al transportista añadiendo un tanto por ciento más al precio total. Mi problema es que este modulo genera automaticamente factura y mi cliente no quiere que el pago al transportista genere factura para el cliente.En el código de dicho modulo me aparece lo siguiente: /* Join PDF invoice */ if (intval(Configuration::get('PS_INVOICE')) AND Validate::isLoadedObject($orderStatus) AND $orderStatus->invoice) { $fileAttachment['content'] = PDF::invoice($order, 'S'); $fileAttachment['name'] = sprintf('FAd.pdf', intval($order->id)); $fileAttachment['mime'] = 'application/pdf'; } else $fileAttachment = NULL; if ($orderStatus->send_email AND Validate::isEmail($customer->email)) Mail::Send(intval($order->id_lang), 'order_conf', 'Order confirmation', $data, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, $fileAttachment); $this->currentOrder = intval($order->id); return true; } return true; } else die(Tools::displayError('Order creation failed')); } else die(Tools::displayError('An order has already been placed using this cart')); } } ?> Pero lo borro y no me funciona. ¿Que puedo hacer para desactivar las facturas para pago al transportista?Gracias y un saludo!!! Link to comment Share on other sites More sharing options...
Ehinarr Posted August 17, 2010 Share Posted August 17, 2010 El estado del pedido es lo que determina la generación de la factura (Pedidos->Estados). Link to comment Share on other sites More sharing options...
Recommended Posts