Page 1 of 5 123 ... LastLast
Results 1 to 10 of 49
  1. #1
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Need urgent help- to inc order atrib in email subject line

    Hi

    I need to know find out how this can be done please.

    I have two options when customer is choosing their options during order.
    1. Images can be uploaded using their own images <Uploaded image>.
    OR
    2.Images can be used from the files 'we' have on file <Use image on file>.

    So when I receive the order confirmation, I want to be able to distinguish from the the subject line of the email if the order -
    1. Uploaded image OR 2. Use image on file

    I have created the options already within attributes and currently working all fine but I need this functionality to be in place for the email subject line.

    Thank you

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need urgent help- to inc order atrib in email subject line

    You would need to customize the order.php class ...

    What happens when they make an order with both possiblities or multiple possibilities on several products in the order, 7 one way and 4 another?

    Or, do you need something to capture:
    Upload
    On File
    Both
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

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

    Default Re: Need urgent help- to inc order atrib in email subject line

    Thank you for responding Ajeh.

    There is only tow possibilities. Either they upload their own image from their own home computer OR they submit their Image number which we have on our records. We do ask them to make this choice. Incase they do end up with both choices (my mistake) then I guess it could display both results in the subject line.

    There are no other possibilities. If they take the latter option which they need to insert their photo number in the field with some other fields provided then then subject line should read <Image Reference Number:<inserted number_here>>. I still need rest of the form with its contents to be included as is with the order confirmation. Only change I want is the inclusion of the subject line with this information of the email.

    I'll need some novus help please as I have limited knowledge of php

    Thank you
    See : http://www.advancedlifedvds.com.au/i...&products_id=2
    Last edited by oavs; 14 Sep 2008 at 05:51 AM. Reason: Additional info added

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need urgent help- to inc order atrib in email subject line

    I order Turbo Kid with my files and I order Snow White with your file ...

    Now what happends? What goes in the email subject as I have mixed and matched the choices ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

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

    Default Re: Need urgent help- to inc order atrib in email subject line

    There can only be one option.

    Either upload your file or provide the order number. You can not mix products within the same order. In order to order Snow White then customer has to order another instance of her order.

    Unlike your typical shopping cart where one person in the same session can order more then one product at a time. This is only specific to the this site.

    Anotherwords we only sell to our existing customers we have already on our files. We send mail outs (not through zencart) to let them know about the website. We specialized in school photography. So we already have them on our files. Its in the instance where they may choose their own images where they may upload otherwise one or the other.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need urgent help- to inc order atrib in email subject line

    You could catch the options_id and options_values_id and have it add something from those into the subject ...

    If there is only 1 Product per order, then this should be easier to manage and can be done in the order.php class where the email is built ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

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

    Default Re: Need urgent help- to inc order atrib in email subject line

    Thanks again,

    so in my case, those values would be down as shown is that correct?

    name="id[TEXT_PREFIX5]" and id="attrib-5-0"

    I haven't looked that the orders.php yet but I assume it goes 'somewhere' where it would mention about the subject_line.

    Now thats fine what happens if they take the other option (upload option), since there will be no Image Reference Number: entered, is that mean there will be nothing posted in the subject line (which I would want).

    And lastly, how can it be conditional so that subject line can display -

    If upload file used > display this > Uploaded file
    If Image Reference Number: used > display this > Image Reference Number:#####

    I don't want to complicate things. So as long as my option number 2 (Image Reference Number:) will not cause any problems in the subject line when its not used.


    <div class="wrapperAttribsOptions">

    <h4 class="optionName back"><label class="attribsInput" for="attrib-5-0">Image Reference Number:</label></h4>

    <div class="back">
    <input type="text" name="id[TEXT_PREFIX5]" size="32" maxlength="32" value="" id="attrib-5-0" />

    </div>

    <br class="clearBoth" />

    </div>

    I really appreciate this Ajeh, as I have being chasing the solution for a long time.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need urgent help- to inc order atrib in email subject line

    I'd really have to sit down and go through this when I have more time but the idea is to capture when the upload is made for the order and if made add it to the email ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

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

    Default Re: Need urgent help- to inc order atrib in email subject line

    It's more important to us to capture when the Image Reference Number: is used. If its not used then we don't want to see any refernce to Image Reference Number: in the subject line. Rest of it as as normal as Zencart.

    I hope to hear from you may be this week some time? any solution would be great news Ajeh.

    Thank you again.

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need urgent help- to inc order atrib in email subject line

    You need to edit the:
    /includes/classes/order.php

    and add the following code above:
    PHP Code:
        // send additional emails 
    PHP Code:
    // add note to email subject
    global $db;
    $check_attributes $db->Execute("SELECT products_options, products_options_values from " TABLE_ORDERS_PRODUCTS_ATTRIBUTES " where products_options_id = 1 and products_options_values_id = 16");
    if (
    $check_attributes->RecordCount() > 0) {
      
    $add_subject ' ' 'Note Text Here';
    }

        
    // send additional emails 
    Next, you can add the $add_subject on this line:
    PHP Code:
          zen_mail(''SEND_EXTRA_ORDER_EMAILS_TOSEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT ' ' EMAIL_TEXT_SUBJECT $add_subject EMAIL_ORDER_NUMBER_SUBJECT $zf_insert_id
    I placed it right after the main portion of the subject before the order number ... but you can move that around ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. v150 Customize order status email subject line to include status name
    By ShopVille in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Oct 2015, 09:24 PM
  2. v138a Append "Order Status" to the end of the Order Update Email Subject Line
    By kamokid in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jun 2013, 10:18 AM
  3. How can I place Atribute in the order confirmation email subject line?
    By oavs in forum Managing Customers and Orders
    Replies: 1
    Last Post: 29 Aug 2008, 07:30 AM
  4. [NEW ORDER] - Need to change that part of subject line
    By minson in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 Mar 2007, 11:04 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