ComicWisdom Posted August 30, 2006 Posted August 30, 2006 I would like to thank all of you who tried helping me find a way to put the shipping method in the order confirmation email. For those who are interested, I managed to solve the problem. These are the steps I took. In orders table Under ?payment_method? I added the field ?shipping_method? Type: varchar(25) maybe more than large enough Attributes: N/A Null: Null Default: N/A Extra: N/A In Invoice.php after <tr> <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td> <td class="main"><?php echo $order->info['payment_method']; ?></td> </tr> I added: <tr> <td class="main"><b><?php echo ENTRY_SHIPPING_METHOD; ?></b></td> <td class="main"><?php echo $order->info['shipping_method']; ?> </tr> Checkout_ process php after 'payment_method' => $order->info['payment_method'], I added 'shipping_method' => $order->info['shipping_method'], Now the order confirmation email indicates For Customer Pickup method: Pickup Rate (Customer Pickup): $0.00 Or For delivery: Flat Rate (Best Way): $0.00 I still need to hack or recreate the pickup.php and flat.php So that it the order confirmation email says: Shipping Method: Customer Pickup Or Shipping Method: Deliver Again thanks to all for all the helpful ideas and to those who work on the main program maybe this could be added to it. ComicWisdom Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!! Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience. The quickest way to learn is to forget to BACKUP!
ComicWisdom Posted August 30, 2006 Author Posted August 30, 2006 I would like to thank all of you who tried helping me find a way to put the shipping method in the order confirmation email. For those who are interested, I managed to solve the problem. These are the steps I took. In orders table Under ?payment_method? I added the field ?shipping_method? Type: varchar(25) maybe more than large enough Attributes: N/A Null: Null Default: N/A Extra: N/A In Invoice.php after <tr> <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td> <td class="main"><?php echo $order->info['payment_method']; ?></td> </tr> I added: <tr> <td class="main"><b><?php echo ENTRY_SHIPPING_METHOD; ?></b></td> <td class="main"><?php echo $order->info['shipping_method']; ?> </tr> Checkout_ process php after 'payment_method' => $order->info['payment_method'], I added 'shipping_method' => $order->info['shipping_method'], Now the order confirmation email indicates For Customer Pickup method: Pickup Rate (Customer Pickup): $0.00 Or For delivery: Flat Rate (Best Way): $0.00 I still need to hack or recreate the pickup.php and flat.php So that it the order confirmation email says: Shipping Method: Customer Pickup Or Shipping Method: Deliver Again thanks to all for all the helpful ideas and to those who work on the main program maybe this could be added to it. ComicWisdom I forgot this step: In order.php after: <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td> <td class="main"><?php echo $order->info['payment_method']; ?></td> </tr> I added: <tr> <td class="main"><b><?php echo ENTRY_SHIPPING_METHOD; ?></b></td> <td class="main"><?php echo $order->info['shipping_method']; ?> </tr> Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!! Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience. The quickest way to learn is to forget to BACKUP!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.