Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default How to show payment-phone in checkout success and order conf?

    Hi

    I am using PayByPhone module. It is working however I like to add some more informatio.

    How can I show show at the bottom, customer's phone number. I know in the emails >> email_template_checkout.html at the top of the received email it shows but I want it at the bottom where "We will call you on this Phone No.:" I am confirming number I'll be calling..

    an the includes/languages/english/modules/paym,ey/paybyphone.php file I have it as
    Code:
     // what the user sees 
      define('MODULE_PAYMENT_PBP_TEXT_TITLE', 'Pay by Phone');
      // what the admin sees in Modules Payment
      define('MODULE_PAYMENT_PBP_TEXT_DESCRIPTION', 'Pay by Phone');
      
      define('MODULE_PAYMENT_PBP_BUTTON_IMG', 'images/icons/paybyphone.jpg');
      define('MODULE_PAYMENT_PBP_TEXT_BUTTON_ALTTEXT', ' Pay by Phone logo');
      // Added by OAVS   
      define('MODULE_PAYMENT_PBP_TEXT_EMAIL_FOOTER', 
      "We will call you on this Phone No.:" . '$EMAIL_CUSTOMER_PHONE' . " once we process your order and calculate freight charges for your total order value.\n\n" . 
     
      '<p>Thanks for your order and your patients.</p>');
    I also would like to show the same customer number with some text at the Checkout Sucess Page /index.php?main_page=checkout_success

    Can you please sggest some solutions?

    Thank you guys
    Downunder QLD

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: How to show customer phone in checkout success and order conf

    The email content is generated in the includes/classes/order.php file, there are a few notifiers that can be used to incorporate your additional define and subsequently the variable replacement necessary to populate the html email with the additional content. To properly control, will want to identify the payment module that was used, if it is the paybyphone module then, to incorporate your additional content and use information from the order to finish the incorporation.

    For the checkout_success page, there is information that is captured in session data during the completion of checkout that can potentially be used to populate the screen. Note that in testing, most of the data is provided one time only unless some of the code is overridden to support testing. Recommend doing this testing only on a test site so that normal checkout is not affected nor in some way abused.

    I'm not personally familiar with this checkout method, so do not have specific guidance available at the moment to provide like if the module provides its own email template when it's in use or how it added the phone number to the to if provided in a way different than the standard checkout process. Basically would duplicate that revision, but with your own constant.

    Lastly, and unrelated to the request, unless this site deals with medical customers, the text of your added line should use the word 'patience' instead of 'patients'. They sound the same, but have two different meanings.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: How to show customer phone in checkout success and order conf

    I looked the file and tried afew things ('customers_telephone')
    Pay by Phone has only two files. On the other file at /includes/modules/payments/paybyphone.php , I added

    Code:
     	  // Added by me  for customer phone number
    $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Phone No.', 'MODULE_PAYMENT_PBP_PHONENUM', '01-2345 6789', 'Phone No.', '6', '1', now());");	 
    	  // eof Added by OAVS  for customer phone number
    ....but since I am novus I can't get it to show the phone number on the email.
    Downunder QLD

 

 

Similar Threads

  1. v155 Checkout Success message based on payment method / order status?
    By hairydog in forum General Questions
    Replies: 8
    Last Post: 21 Feb 2017, 11:11 PM
  2. v150 Check/Money Order module--show name/address on checkout success page?
    By WebKat in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 13 Apr 2012, 06:45 AM
  3. Replies: 6
    Last Post: 22 May 2010, 12:59 AM
  4. How to get Order Summary on checkout success?
    By jenbullfrog in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Jan 2010, 07:18 PM
  5. Show order history on Checkout Success Page
    By justabadguy in forum General Questions
    Replies: 0
    Last Post: 26 Sep 2007, 07:20 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