Odpowiedź forum utworzona

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gilek555

    (@gilek555)

    Dzięki Ci wielkie 🙂

    „Order” udało mi się zmienić, to faktycznie w tym miejscu co napisałeś. Niestety przeszukałem resztę plików i nie znalazłem drugiej części tekstu.

    Tak samo nie udało mi się znaleźć pliku, który odpowiedzialny jest za taką samą treść tylko nie za pomocą maila, tylko po prostu po zakupie produktu na stronie internetowej, tam też mam taki problem że wszystko jest po polsku tylko zamiast nr zamówienia jest Order Number. Nie wiem nawet gdzie szukać tego pliku.

    Thread Starter gilek555

    (@gilek555)

    Rozumiem, jednak to też nie jest takie proste 😛
    Ponieważ treść maila wygląda mniej więcej tak:
    http://s24.postimg.org/4vnhaqz45/emailprob.jpg

    Chciałbym edytować zaznaczone na czerwono pola czyli główną treść (w pliku odnalazłem tylko pierwszy akapit a drugiego nie) oraz nazwe Order zmienić.

    Kod prezentuje się tak

    <?php do_action('woocommerce_email_header', $email_heading); ?>
    
    <p><?php _e( "Your order has been received and is now being processed. Your order details are shown below for your reference:", 'woocommerce' ); ?></p>
    
    <?php do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text ); ?>
    
    <h2><?php printf( __( 'Order #%s', 'woocommerce' ), $order->get_order_number() ); ?></h2>
    
    <table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee">
    	<thead>
    		<tr>
    			<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Product', 'woocommerce' ); ?></th>
    			<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
    			<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Price', 'woocommerce' ); ?></th>
    		</tr>
    	</thead>
    	<tbody>
    		<?php echo $order->email_order_items_table( $order->is_download_permitted(), true, $order->has_status( 'processing' ) ); ?>
    	</tbody>
    	<tfoot>
    		<?php
    			if ( $totals = $order->get_order_item_totals() ) {
    				$i = 0;
    				foreach ( $totals as $total ) {
    					$i++;
    					?><tr>
    						<th scope="row" colspan="2" 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><?php
    				}
    			}
    		?>
    	</tfoot>
    </table>
    
    <?php do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text ); ?>
    
    <?php do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text ); ?>
    
    <?php do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text ); ?>
    
    <?php do_action( 'woocommerce_email_footer' ); ?>
Viewing 2 replies - 1 through 2 (of 2 total)