request-new-quote.php Custom change
-
Hi there Pinal – what an excellent plugin! Honesly – really love it!
I reached out to you on social – so if you see a request that was me…Can I ask – new to this customisation of the Woo emails and after a day of struggling I finally got the edits added to the request-new-quote.php file.
Now – it works and looks perfect being sent – but the UNIT Price value does not format with a currency symbol (just shows number)
So questions I have:
1) Is how I’m doing the loop look ok? i.e. no leaving any resources open or should I have any other PHP code inserted after to close anything??
2) How to call the unit price in that will display it with the default currency symbol (in this case Euro)Once again – what an excellent little plugin and I can see alot of uses for this!
<?php foreach ( $order_obj->get_items() as $items ) { $productgd = $items->get_product(); // Get the WC_Product object ?> <tr> <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $productgd->get_sku() ); ?></td> <td style="text-align:left; border: 1px solid #eee;"><?php echo wp_kses_post( $items->get_name() ); ?></td> <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_attr( $items->get_quantity() ); ?></td> <td style="text-align:left; border: 1px solid #eee;"><?php echo wp_kses_post( $productgd->get_price() ); ?></td> <td style="text-align:left; border: 1px solid #eee;"><?php echo wp_kses_post( $order_obj->get_formatted_line_subtotal( $items ) ); ?></td> </tr> <?php } ?>
The topic ‘request-new-quote.php Custom change’ is closed to new replies.