Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Posts
    2
    Plugin Contributions
    0

    Default adding php statement ! please help

    In module checkout_process
    i want to add a if statement that will do :

    If the buyer choosed payment methode bank
    the mail should give him my bank account and he should enter
    the order number as message of the payment

    ex:
    if
    define('EMAIL_TEXT_PAYMENT_METHOD', 'Payment Method');
    if the payment method was "bank"
    My bank number is .......... and your id transfere should be
    'EMAIL_TEXT_ORDER_NUMBER

    I hope you can help me to add this statement in the beginning of that php




    define('EMAIL_TEXT_SUBJECT', 'Order Confirmation');
    define('EMAIL_TEXT_HEADER', 'Order Confirmation');
    define('EMAIL_TEXT_FROM',' from '); //added to the EMAIL_TEXT_HEADER, above on text-only emails
    define('EMAIL_THANKS_FOR_SHOPPING','Thanks for shopping with us today!');
    define('EMAIL_DETAILS_FOLLOW','The following are the details of your order.');
    define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');
    define('EMAIL_TEXT_INVOICE_URL', 'Detailed Invoice:');
    define('EMAIL_TEXT_INVOICE_URL_CLICK', 'Click here for a Detailed Invoice');
    define('EMAIL_TEXT_DATE_ORDERED', 'Date Ordered:');
    define('EMAIL_TEXT_PRODUCTS', 'Products');
    define('EMAIL_TEXT_SUBTOTAL', 'Sub-Total:');
    define('EMAIL_TEXT_TAX', 'Tax: ');
    define('EMAIL_TEXT_SHIPPING', 'Shipping: ');
    define('EMAIL_TEXT_TOTAL', 'Total: ');
    define('EMAIL_TEXT_DELIVERY_ADDRESS', 'Delivery Address');
    define('EMAIL_TEXT_BILLING_ADDRESS', 'Billing Address');
    define('EMAIL_TEXT_PAYMENT_METHOD', 'Payment Method');

    define('EMAIL_SEPARATOR', '------------------------------------------------------');
    define('TEXT_EMAIL_VIA', 'via');

    // suggest not using # vs No as some spamm protection block emails with these subjects
    define('EMAIL_ORDER_NUMBER_SUBJECT', ' No: ');
    define('HEADING_ADDRESS_INFORMATION','Address Information');
    define('HEADING_SHIPPING_METHOD','Shipping Method');
    ?>

  2. #2
    Join Date
    Apr 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: adding php statement ! please help

    to be more clear

    When the customer finish the order and press confirm


    a mail will be sent to him from the module order_checkout

    i want in the begining of the mail to be like this "invoice":

    dear .....

    You choosed to pay by bank:
    our bank number is : ............
    your ocr number is : ............. (it will be his order number so when i check the bank i know who payed)

    i want it in if statement cause if he choosed another payment methode it means he already paid and he dont need my bank info

 

 

Similar Threads

  1. v151 Help with a php statement
    By suportafaceri in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 6 Apr 2014, 09:43 AM
  2. PHP: Help Using If Statement To Check Category?
    By joomoo79 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Jan 2010, 08:22 AM
  3. Custom inventory query statement - Need help please
    By 0be1 in forum General Questions
    Replies: 11
    Last Post: 30 May 2008, 02:32 AM
  4. Adding statement to product heading
    By davek7 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Nov 2006, 01:00 AM
  5. Php Conditional Statement
    By zforrest in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Jun 2006, 01:07 AM

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