Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: PhP question about a line of code in includes/classes/order.php

    Dr. Byte,

    Thanks for the update!

    Well, there is progress at least. The email now displays the formatted labels but it isn't passing the values.

    Payment Method
    Purchase Order
    with the following information:

    Account name: %s

    Account number: %s

    PO Number: %s
    just %s no values.

    This is using includes/modules/payment/po.php
    class constructor
    Code:
    $this->email_footer = MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER;
    per your suggestion above.

    If I use the old class constructor, I get blanks for values.
    Code:
    $this->email_footer = sprintf(MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER, 
    $this->info['account_name'], $this->info['account_number'], 
    $this->info['po_number']);
    MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER is defined thus, in includes/languages/english/modules/payment/po.php:
    Code:
      define('MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER', 'with the following 
    information:' . "\n" . '
      Account name:  %s' . "\n" . '
      Account number:  %s' . "\n" . '
      PO Number:  %s');
    Any suggestions? We're on the brink of success!

    ---Diana

  2. #12
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: PhP question about a line of code in includes/classes/order.php

    error in what I posted... please delete previous post.

    Dr. Byte,

    Thanks for the update!

    Well, there is progress at least. The email now displays the formatted labels but it isn't passing the values.

    Payment Method
    Purchase Order
    with the following information:

    Account name:

    Account number:

    PO Number:
    just labels, no values.

    This is using includes/modules/payment/po.php
    class constructor
    Code:
    $this->email_footer = sprintf(MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER, 
    $this->info['account_name'], $this->info['account_number'], 
    $this->info['po_number']);
    per your suggestion above.

    If I use the old class constructor, I get %s for values.
    Code:
    $this->email_footer = MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER;
    MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER is defined thus, in includes/languages/english/modules/payment/po.php:
    Code:
      define('MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER', 'with the following 
    information:' . "\n" . '
      Account name:  %s' . "\n" . '
      Account number:  %s' . "\n" . '
      PO Number:  %s');
    Any suggestions? We're on the brink of success!

    ---Diana

  3. #13
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: PhP question about a line of code in includes/classes/order.php

    hmm, I never look at the text versions of the order confirmation emails, but it does appear that the method I have been using does not work in text emails. The order information displays as
    Payment Method
    ------------------------------------------------------
    Purchase Order

    with the following information:
    Account name: %s
    Account number: %s
    PO Number: %s
    I'll probably be paying for custom code again to get this problem sorted out.

    I sure wish ZC had a purchase order payment module built in.

    ---Diana

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 1
    Last Post: 9 Oct 2011, 06:24 AM
  2. Replies: 1
    Last Post: 28 Jul 2011, 07:43 PM
  3. Version help with admin/includes/classes/order.php
    By Brent in forum General Questions
    Replies: 2
    Last Post: 4 Jan 2011, 03:25 PM
  4. Warning: Division by zero in /includes/classes/shipping.php on line 94
    By keycraze in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 21 Sep 2008, 09:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR