marahman.b2b on "[Plugin: Offers for WooCommerce] 2 Issue; New Offer with 2 header footer, PDF Invoice creation error."

ساخت وبلاگ

Find the template for your check. Does it has anything which creates dual header/container ?

Note: Does "Copy file to theme" creating issue. as in my case Woocommerece new order template set ""Copy file to theme", considering this i did the same for Offers for WooCommerce template to "Copy file to theme"

New offer ⤴
New Offer Notification emails are sent to the admin when customer submits offer
-----------------------------------
<?php
/**
* New Offer email
*
* @since 0.1.0
* @package public/includes/emails
* @author AngellEYE <[email protected]>
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>

<?php do_action( 'woocommerce_email_header', $email_heading ); ?>

<?php printf( '<p>' . __('New offer submitted on', 'offers-for-woocommerce') . ' %s.
' . __('To manage this offer please use the following link:', 'offers-for-woocommerce') . '</p> %s', get_bloginfo( 'name' ), '<span style="border-bottom:1px dotted #666; ">' . __( 'Manage Offer', 'offers-for-woocommerce') . '</span><span style="border-bottom:1px dotted #666; ">' . __( 'Decline Offer', 'offers-for-woocommerce') . '</span><span style="border-bottom:1px dotted #666; ">' . __( 'Approve Offer', 'offers-for-woocommerce') . '</span>' ); ?>

<h2><?php echo __( 'Offer ID:', 'offers-for-woocommerce') . ' ' . $offer_args['offer_id']; ?> (<?php printf( '<time datetime="%s">%s</time>', date_i18n( 'c', time() ), date_i18n( wc_date_format(), time() ) ); ?>)</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', 'offers-for-woocommerce' ); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Quantity', 'offers-for-woocommerce' ); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Price', 'offers-for-woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left; vertical-align:middle; border: 1px solid #eee; padding:12px;"><?php echo stripslashes($offer_args['product_title_formatted']); ?></td>
<td style="text-align:left; vertical-align:middle; border: 1px solid #eee; padding:12px;"><?php echo number_format( $offer_args['product_qty'], 0 ); ?></td>
<td style="text-align:left; vertical-align:middle; border: 1px solid #eee; padding:12px;"><?php echo get_woocommerce_currency_symbol() . ' ' . number_format( $offer_args['product_price_per'], 2, '.', '' ); ?></td>
</tr>
</tbody>
<tfoot>
<tr>
<th scope="row" colspan="2" style="text-align:left; border: 1px solid #eee; border-top-width: 4px; "><?php _e( 'Subtotal', 'offers-for-woocommerce' ); ?></th>
<td style="text-align:left; border: 1px solid #eee; border-top-width: 4px; "><?php echo get_woocommerce_currency_symbol() . ' ' . number_format( $offer_args['product_total'], 2, '.', '' ); ?></td>
</tr>
</tfoot>
</table>
<?php if( !$offer_args['is_anonymous_communication_enable'] ) { ?>
<h4><?php echo __('Offer Contact Details:', 'offers-for-woocommerce'); ?></h4>
<?php echo (isset($offer_args['offer_name']) && $offer_args['offer_name'] != '') ? '' . __('Name:', 'offers-for-woocommerce') . ' '.stripslashes($offer_args['offer_name']) : ''; ?>
<?php echo (isset($offer_args['offer_company_name']) && $offer_args['offer_company_name'] != '') ? '
' . __('Company Name:', 'offers-for-woocommerce') . ' '.stripslashes($offer_args['offer_company_name']) : ''; ?>
<?php echo (isset($offer_args['offer_email']) && $offer_args['offer_email'] != '') ? '
' . __('Email:', 'offers-for-woocommerce') . ' '.stripslashes($offer_args['offer_email']) : ''; ?>
<?php echo (isset($offer_args['offer_phone']) && $offer_args['offer_phone'] != '') ? '
' . __('Phone:', 'offers-for-woocommerce') . ' '.stripslashes($offer_args['offer_phone']) : ''; ?>
<?php } ?>
<?php do_action('make_offer_email_display_custom_field_after_buyer_contact_details', $offer_args['offer_id']); ?>
<?php if(isset($offer_args['offer_notes']) && $offer_args['offer_notes'] != '') { echo '<h4>'. __( 'Offer Notes:', 'offers-for-woocommerce' ) .'</h4>'. stripslashes($offer_args['offer_notes']); } ?>
<?php do_action( 'woocommerce_email_footer' ); ?>

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 313 تاريخ : چهارشنبه 6 مرداد 1395 ساعت: 5:06