Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter marahman.b2b

    (@marahmanb2b)

    Hi
    Update on my reported issue.

    Issue # 2) Issue resolved after Woocommerce latest update.

    Issue # 1) Still persist with previous and latest version of woocommerce.

    Thread Starter marahman.b2b

    (@marahmanb2b)

    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’ ); ?>

    Thread Starter marahman.b2b

    (@marahmanb2b)

    Hi Friends,

    After spending an hour i got the below plugin culprit of creating dual header & Footer

    “WooCommerce PDF Invoices & Packing Slips”

    Need you fix.

    Plugin Contributor angelleye

    (@angelleye)

    Thanks for the updates. So to clarify, the only issue you’re having now is that with “WooCommerce PDF Invoices & Packing Slips” enabled then the Offer emails end up sending with two headers..??

    Thread Starter marahman.b2b

    (@marahmanb2b)

    Yes,

    if the plugin “WooCommerce PDF Invoices & Packing Slips” is enabled its ending up with Dual Header and footer for all email communications to admin as well as customers.

    https://prntscr.com/bxptky

    When we look at the email it looks its crating addition container with header and footer. Inside it, its creating again the complete email as per template.

    Plugin Contributor angelleye

    (@angelleye)

    Ok, thanks. I created an issue for this in our GitHub repo so we can get it addressed in the next update.

    Thread Starter marahman.b2b

    (@marahmanb2b)

    Thank you for your sweet plugin. it’s really my business.

    Plugin Contributor angelleye

    (@angelleye)

    We have resolved this issue and it will be included in the next update coming soon.

    If you would like to grab it early you can download it here: https://github.com/angelleye/offers-for-woocommerce/archive/dev.zip

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘2 Issue; New Offer with 2 header footer, PDF Invoice creation error.’ is closed to new replies.