WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Add shipping costs email (1 post)

  1. philcl
    Member
    Posted 1 year ago #

    Hey guys,

    i make a new email layout for my wordpress shop. Now i use my own definitions to show the taxes and prices. I can't show the shipping costs.

    Can anyone help me?

    <tfoot>
    		<?php
    			if ( $totals = $order->get_order_item_totals() ) {
    				$i = 0;
    					?><!--<tr>
    						<th scope="row" colspan="4" style="text-align:left; border: 1px solid #eee; <?php if ( $i == 1 ) echo 'border-top-width: 4px;'; ?>"><?php echo $total['label']; ?></th>
    						<td style="text-align:left; border: 1px solid #eee; <?php if ( $i == 1 ) echo 'border-top-width: 4px;'; ?>"><?php echo $total['value']; ?></td>
    					</tr>-->
    
    				<tr class="cart-subtotal">
    					<th scope="row" colspan="2"><strong><?php _e( 'Nettowarenwert', 'woocommerce' ); ?></strong></th>
    					<td><strong><?php echo $woocommerce->cart->get_cart_subtotal(); ?></strong></td>
    				</tr>
    
                    <tr class="shipping">
    					<th scope="row" colspan="2" style="text-align:left";><?php _e( 'Fracht-/ und Versandkosten Netto', 'woocommerce' ); ?></th>
    					<td><?php echo $total['value']; ?></td>
    				</tr>
    
                    <tr class="tax">
    					<th scope="row" colspan="2" style="text-align:left";><?php _e('Tax', 'woocommerce'); ?></th>
    					<td><?php echo $woocommerce->cart->get_cart_tax(); ?></td>
    				</tr>
    
    							<?php
    				}
    
    		?>
    	</tfoot>

    http://wordpress.org/extend/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.