Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter dmor71

    (@dmor71)

    sorry for the late reply. I did roll it back to 2.12 and the problem went away. I will email you the error log. Thanks for your reply and help.

    Thread Starter dmor71

    (@dmor71)

    Update to this – I had to disable the Klarna payments plugin because customers couldn’t make any purchases with any payment option. I have created a staging copy for you to inspect with the plugin enabled.

    https://staging2.jadelsbeauty.com/checkout/

    Thread Starter dmor71

    (@dmor71)

    I’m still having issues with the settings. They don’t seem to have any affect. No matter what settings I choose in the admin the behavior on the front end stays the same.

    Thread Starter dmor71

    (@dmor71)

    Is this what you need?

    <?php
    /**
     * Order email to vendor.
     *
     * @version 2.1.0
     * @since 2.0.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    }
    
    if ( version_compare( WC_VERSION, '3.0.0', '>=' ) ) {
    	$order_date = $order->get_date_created();
    	$billing_first_name = $order->get_billing_first_name();
    	$billing_last_name = $order->get_billing_last_name();
    } else {
    	$order_date = $order->order_date;
    	$billing_first_name = $order->billing_first_name;
    	$billing_last_name = $order->billing_last_name;
    }
    ?>
    
    <?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
    
    <p><?php printf( esc_html__( 'You have received an order from %s. The order is as follows:', 'woocommerce-product-vendors' ), esc_html( $billing_first_name ) . ' ' . esc_html( $billing_last_name ) ); ?></p>
    
    <h2><?php printf( esc_html__( 'Order #%s', 'woocommerce-product-vendors' ), $order->get_order_number() ); ?> (<?php printf( '<time datetime="%s">%s</time>', date_i18n( 'c', strtotime( $order_date ) ), date_i18n( wc_date_format(), strtotime( $order_date ) ) ); ?>)</h2>
    
    <?php $email->render_order_details_table( $order, $sent_to_admin, $plain_text, $email, $this_vendor ); ?>
    
    <?php do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); ?>
    
    <?php do_action( 'wc_product_vendors_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); ?>
    
    <?php do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); ?>
    
    <h2>Billing Address</h2>
    <p><?php echo $order->get_formatted_billing_address();?></p>
    <p>Phone: <?php echo $order->get_billing_phone();?></p>
    <p>Email: <?php echo $order->get_billing_email();?></p>
    <?php do_action( 'woocommerce_email_footer', $email ); ?>
    Thread Starter dmor71

    (@dmor71)

    I’m adding some custom field content to the bottom of the emails. But when I deactivate your plugin that extra instance of the order number and date goes away.

    I’m using WC Product Vendors V 2.1.11

    I’m was thinking it was adding something to header of email via hook so somehow since your plugin isn’t overriding all the email templates it this piece of information was being added by two things hooking into the email header. Just guessing there. But the second instance does go away when your plugin is deactivated.

    Thread Starter dmor71

    (@dmor71)

    Thanks for the quick reply.

    I’m currently using the <img> tag for my images now and that works great but I need to somehow have that set as the featured image. I have looked for a plugin that will pull the image from the content but I cannot find one that will do that. If you can point me in the right direction I would appreciate it. Thanks.

    Thread Starter dmor71

    (@dmor71)

    Thanks for pointing that out. Works like a charm.

    Great info, i have a different theme and it worked with a little tweaking. However I now have a box around the logo not sure why or how, is there a way to make that go away? url to the blog i’m building is https://mygrillandsmoker.com/frontpage

Viewing 8 replies - 1 through 8 (of 8 total)