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

    Default Need help with PHP...Please...

    I was changing the order confirmation email so that I could enter Item number against each Items. Here is what I mean. The existing email order confirmation looks like this -

    Products
    ------------------------------------------------------
    1 x Cotton Short Sleeve = $17.00
    Color : White
    Size : Small
    Print Layout : Front Only
    1 x Cotton Short Sleeve = $17.00
    Color : White
    Size : Small
    Print Layout : Front Only
    ------------------------------------------------------


    I wan to change it to something like this -

    Products
    ------------------------------------------------------
    Item # 1
    1 x Cotton Short Sleeve = $17.00
    Color : White
    Size : Small
    Print Layout : Front Only

    Item # 2
    1 x Cotton Short Sleeve = $17.00
    Color : White
    Size : Small
    Print Layout : Front Only
    ------------------------------------------------------


    The line that I have identified is in /includes/classes/orders.php (// build output for email notification)

    // $this->products_ordered .= $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . ($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') . ' = ' .


    I have changed it to :

    $this->products_ordered .= 'Item # ' . $i . "\n" . $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . ($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') . ' = ' .

    But I cant get the $i to increment. I tried changing $i to $++i but that gives a parse error. I am a little new to PHP, so

    1. Am I changing the right piece of code to achieve the above
    2. If so how do I increment the value of $i

    Thanks a lot !
    ZenRajan
    dotnet programmers, checkout my new forum - www.dotnetworld.net

  2. #2
    Join Date
    Apr 2005
    Posts
    56
    Plugin Contributions
    0

    Default Re: Need help with PHP...Please...

    Dont worry, solved it....
    ZenRajan
    dotnet programmers, checkout my new forum - www.dotnetworld.net

 

 

Similar Threads

  1. v150 Need help with module php coding please. Short and Sweet
    By VBE-1 in forum General Questions
    Replies: 2
    Last Post: 2 Oct 2012, 01:29 AM
  2. v150 I need help with my product listing please help im going insane!!
    By Darion in forum General Questions
    Replies: 1
    Last Post: 10 Sep 2012, 02:12 AM
  3. PHP or SQL Issue - Need help please
    By netwiser in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 17 Feb 2010, 11:19 PM
  4. Need *URGENT* HELP please!! Fatal Error order_total.php
    By gizmo_girl in forum General Questions
    Replies: 4
    Last Post: 1 Feb 2008, 07:12 PM
  5. Need Help w/PHP Live Please...
    By janeciab in forum Addon Sideboxes
    Replies: 0
    Last Post: 20 Oct 2007, 09:41 PM

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