hi,
iam trying to insert a product image name in order_products table custom1 field before sending orderconfirmation email and then in orderconfirmation
email iam trying to send product image.
In saveOrder below i boolean value i made it save false so orderconfirmation email is not going
but image name is successfully inserted in the order_products table custom1 field .
now how can i send only orderconfirmation email to the customer ....?
there is code below....!
int orderId = kkAppEng.getOrderMgr().saveOrder(
/* sendEmail */false);
System.out.println(" my orderId====" + orderId);
checkoutOrder.setPaymentMethod("Cheque or Cash Deposit");
checkoutOrder.setPaymentModuleCode("chequeorcash");
System.out.println("********image insertion **************");
int order_Id;
OrderDetailsDao orderDetailsDao_custom = new OrderDetailsDao();
List<OrderDetailsBean> orderDetailsList_custom = new ArrayList<OrderDetailsBean>();
orderDetailsList_custom = orderDetailsDao_custom.getOrderDetails();
ListIterator<OrderDetailsBean> lstitr_custom = orderDetailsList_custom.listIterator();
while (lstitr_custom.hasNext()) {
OrderDetailsBean orderDetailsBean_custom = new OrderDetailsBean();
orderDetailsBean_custom = (OrderDetailsBean) lstitr_custom.next();
order_Id = orderDetailsBean_custom.getOrders_id();
dao.updateProductImage(order_Id);
}
Any help is much appreciable
Thank you