WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[resolved] [Plugin: WP e-Commerce] Attach Packing Slip to Purchase Report (9 posts)

  1. casper14209
    Member
    Posted 2 years ago #

    Hey there guys and gals, I'm working with trying to attach the packing slip to the purchase report that is sent my email address when a client makes a purchase in the cart.
    Was wondering if anyone else has made this happen or has been tinkering with the idea.
    Any info/assistance would be much appreciated.

    Thanks,
    Vince

    WP e-Commerce Version 3.8.7.5

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. casper14209
    Member
    Posted 2 years ago #

    ight, so in a past hack there was a method to add the shipping method and shipping option to the purchase report by adding the following lines to wp-content/plugins/wp-e-commerce/wpsc-theme/functions/wpsc-transaction_results_functions.php

    $report = str_replace( '%shipping_method%', $purchase_log['shipping_method'], $report );
    $report = str_replace( '%shipping_option%', $purchase_log['shipping_option'], $report );

    So I'm testing to see if I can just have the packing slip included in the purchase report by adding the following to the same file

    $report = str_replace( '%packing_slip%', 'wpsc_display_invoice', $report );

    based on what I see in wp-content/plugins/wp-e-commerce/wpsc-admin/ajax-and-init.php and wp-content/plugins/wp-e-commerce/wpsc-admin/display-sales-logs.php

    Any input as to whether I'm on the right track or not would be awesome.

    Thanks

  3. indiacharleston
    Member
    Posted 2 years ago #

    Hi Vince, I think your idea sounds great. I'll look into it too. I'm currently hacking up my e-commerce for some customization, I'll let you know if I get anywhere!

  4. casper14209
    Member
    Posted 2 years ago #

    Cool, as an update my trial above didn't work out. :-(

  5. analogrithems
    Member
    Posted 2 years ago #

    Hey Vince you question is a little confusing. Please give a bit more detail. What would you want to automatically send the packing slip with the purchase confirmation if it hasn't been sent yet?

    -Analog

  6. casper14209
    Member
    Posted 2 years ago #

    Hey Vince you question is a little confusing. Please give a bit more detail. What would you want to automatically send the packing slip with the purchase confirmation if it hasn't been sent yet?

    -Analog

    At what point is this confusing? The system doesn't send the packing slip with the purchase report. We would like to have it included.

    I did change the code added to the wp-content/plugins/wp-e-commerce/wpsc-theme/functions/wpsc-transaction_results_functions.php file to:
    $report = str_replace( '%packing_slip%', $purchase_log['wpsc_display_invoice'], $report );
    and now the system appears to try and perform the action but is not actually executing the task.

    Thanks,
    Vince

  7. analogrithems
    Member
    Posted 2 years ago #

    but if you haven't shipped the item yet, you shouldn't send a packing slip. What if you are out of stock on something and you must follow up with the user?

    Does your purchase confirmation email not already include what they purchased?

  8. casper14209
    Member
    Posted 2 years ago #

    We don't use the cart to track inventory, we have a CRM that is used.
    What we would like is for the cart to send us the packing slip with the email so we can print it for our packaging personal with less steps. We would also like to attach the packing slip to there account in the CRM.
    Just trying to appease our sales department.

    Thanks,
    Vince

  9. analogrithems
    Member
    Posted 2 years ago #

    ok, gotcha, sorry I was confused, I thought you wanted to send the customer the packing slip before you shipped.

    Did you want the packing slip attached to the email as a pdf or csv or just in the contents of the email? I'm sure you've seen that you can modify the template that gets emailed to the admin (or the crm i assume in your case) to include the product list.

    Just to verify you are looking for something that is an actual attachment.

    Also does your CRM have any sort of API to feed data into it? I have a plugin http://wordpress.org/extend/plugins/ecommerce-feeder/ that can export orders to xml. I also write custom extensions for people who need it to import directly into their CRM on a scheduled basis.

    -Analog

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic