• Resolved Michael Boldin

    (@michael-boldin)


    I’m running both woocommerce subscriptions and order #’s pro. When a new subscription order with manual payment renewal is created, the order # in the backend follows what has been set under the settings for the pro order # plugin.

    But, the order number on the email to the customer is not.

    Current example:

    Subscription order 2232 renewed today and is on hold awaiting payment. The order # is 2237.

    The email to the customer asking for payment shows order #313.

    Is there a specific setting for this that I overlooked, something that needs to be done in functions.php, or is it an update that needs to be fixed on the plugin?

    http://wordpress.org/plugins/woocommerce-sequential-order-numbers/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author SkyVerge

    (@skyverge)

    Hey Michael,

    Just to clarify, are you using the free sequential order numbers http://wordpress.org/plugins/woocommerce-sequential-order-numbers/ or the premium one from the WooThemes shop? http://www.woothemes.com/products/sequential-order-numbers-pro/

    Thread Starter Michael Boldin

    (@michael-boldin)

    Thank you for asking.

    I’m using the premium plugin.

    Plugin Author SkyVerge

    (@skyverge)

    Thank you very much for reporting this Michael, I was able to recreate the issue and fix, this will be available in version 1.5.4 which should be released today or early this week

    — Justin

    Thread Starter Michael Boldin

    (@michael-boldin)

    Thanks, Justin – I appreciate your follow up.

    Just to add – I did make some changed to the customer-renewal-order.php file on woocommerce subscriptions, but kept the function in there to get_order_number

    Do you think that maybe I caused the conflict? Or, is the fix going to handle this?

    Here’s what my file looks like:

    <?php if ( ! defined( ‘ABSPATH’ ) ) exit; ?>

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

    <?php if ( $order->status == ‘pending’ ) : ?>
    <p><?php printf( __( ‘Your membership has expired. You can renew today online – payments via Credit Card, Check, Paypal, and Bitcoin. Please use the following link: Renew Now »‘, WC_Subscriptions::$text_domain ), get_bloginfo( ‘name’ ), $order->get_checkout_payment_url() ); ?></p>
    <?php endif; ?>

    <?php do_action( ‘woocommerce_email_before_order_table’, $order, false ); ?>

    <h2><?php echo __( ‘Order:’, WC_Subscriptions::$text_domain ) . ‘ ‘ . $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’, WC_Subscriptions::$text_domain ); ?></th>
    <th scope=”col” style=”text-align:left; border: 1px solid #eee;”><?php _e( ‘Quantity’, WC_Subscriptions::$text_domain ); ?></th>
    <th scope=”col” style=”text-align:left; border: 1px solid #eee;”><?php _e( ‘Price’, WC_Subscriptions::$text_domain ); ?></th>
    </tr>
    </thead>
    <tbody>
    <?php echo $order->email_order_items_table( false, true, false ); ?>
    </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, false ); ?>

    <?php do_action( ‘woocommerce_email_footer’ ); ?>

    Plugin Author SkyVerge

    (@skyverge)

    Nah, the change you made would not cause any issue with the order number, this will work for you once 1.5.4 is released and you’ve updated

    — Justin

    Thread Starter Michael Boldin

    (@michael-boldin)

    excellent, thank you! I’ll follow up with you after the update to let you know one way or the other. Should be a few days.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Generating different order numbers for subscriptions.’ is closed to new replies.