Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Shipping Modules / Stamps.com integration - Couple small bugs need addressing

Stamps.com integration - Couple small bugs need addressing

16 May 2012, 1:24 AM
#201
zartoo avatar

zartoo

New Zenner

Join Date:
Jan 2012
Posts:
9
Plugin Contributions:
0

Post #201 by zartoo

has anyone figured out how to automatically send out email to customer from Zen Cart once shipping lable printed out? I tried to change $customer_notified to '1', didn't work. and tried to add some code into ShippingZZencart.php, but still not working. Any suggestion?

$message =
EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n\n" .
EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n\n" .
EMAIL_TEXT_DATE_ORDERED . ' ' . zen_date_long($check_status->fields['date_purchased']) . "\n\n" .
strip_tags($notify_comments) .
EMAIL_TEXT_STATUS_UPDATED . sprintf(EMAIL_TEXT_STATUS_LABEL, $orders_status_array[$status] ) .
EMAIL_TEXT_STATUS_PLEASE_REPLY;

        $html_msg['EMAIL_CUSTOMERS_NAME']    = $check_status->fields['customers_name'];
        $html_msg['EMAIL_TEXT_ORDER_NUMBER'] = EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID;
        $html_msg['EMAIL_TEXT_INVOICE_URL']  = '<a href="' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') .'">'.str_replace(':','',EMAIL_TEXT_INVOICE_URL).'</a>';
        $html_msg['EMAIL_TEXT_DATE_ORDERED'] = EMAIL_TEXT_DATE_ORDERED . ' ' . zen_date_long($check_status->fields['date_purchased']);
        $html_msg['EMAIL_TEXT_STATUS_COMMENTS'] = $notify_comments;
        $html_msg['EMAIL_TEXT_STATUS_UPDATED'] = str_replace('\n','', EMAIL_TEXT_STATUS_UPDATED);
        $html_msg['EMAIL_TEXT_STATUS_LABEL'] = str_replace('\n','', sprintf(EMAIL_TEXT_STATUS_LABEL, $orders_status_array[$status] ));
        $html_msg['EMAIL_TEXT_NEW_STATUS'] = $orders_status_array[$status];
        $html_msg['EMAIL_TEXT_STATUS_PLEASE_REPLY'] = str_replace('\n','', EMAIL_TEXT_STATUS_PLEASE_REPLY);

        zen_mail($check_status->fields['customers_name'], $check_status->fields['customers_email_address'], EMAIL_TEXT_SUBJECT . ' #' . $oID, $message, STORE_NAME, EMAIL_FROM, $html_msg, 'order_status');
        $customer_notified = '1';
16 May 2012, 2:13 AM
#202
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Post #202 by rixstix

zartoo:

has anyone figured out how to automatically send out email to customer from Zen Cart once shipping lable printed out?

I find it easier to customize the email be transmitted by Stamps.com from within their application.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

16 May 2012, 3:38 AM
#203
zartoo avatar

zartoo

New Zenner

Join Date:
Jan 2012
Posts:
9
Plugin Contributions:
0

Post #203 by zartoo

interesting, so is it possible to customize it to be the same format as it is sent from zen cart? and customers won't realize it's from stamps.com?

If so, could you share how to do it?

Many thanks!

16 May 2012, 6:01 AM
#204
zartoo avatar

zartoo

New Zenner

Join Date:
Jan 2012
Posts:
9
Plugin Contributions:
0

Post #204 by zartoo

Never mind, I figured it out, however, it's still not good enough.

23 Sep 2012, 12:29 PM
#205
thegoofyone avatar

thegoofyone

New Zenner

Join Date:
Jul 2012
Posts:
8
Plugin Contributions:
0

Post #205 by thegoofyone

This is just a FYI for anyone who may have had a similar problem.

I have everything working, but I had to change order status 3 from DELIVERED to SHIPPED in ShippingZSettings.php and ShippingZZencart.php, as zencart's default order status 3 is SHIPPED, not DELIVERED.