Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007
    Posts
    20
    Plugin Contributions
    0

    help question How do I modify the text in a 'checkout email'?

    I sell 16 digit 'Membership Numbers' and have found that the system cannot handle such things as 'normal' numbers [neither can most spreadsheets or databases!] so the system selects a (the next) 8 digit 'code' - the last 8 digits of the 16 required - from a look up list and this is presented as an "Activation Codes:" in the email.
    I have modified the wording from "Activation Codes:" to read "Membership Number:" (in /includes/languages/english/extra_definitions/absolute_product_pins.php) BUT I need to 'reconstruct'' my 16 digit code by adding the first (fixed) 8 digits as a text string immediately before the output of the 'code' so the new Subscriber gets the complete 16 digit code string he/she requires.... - still with me? - Help!

  2. #2
    Join Date
    Nov 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: How do I modify the text in a 'checkout email'?

    Re-reading my first post I see that I didn't express myself as precisely as I'd have liked, hopefully this will be clearer!

    I need to 'interrupt the output' or, if at all possible, edit the content of $PRODUCT_DETAIL so that the truncated (last 8 digits) code (stored/delivered as an 'Activation Code') can be restored to the full 16 digit one my subscribers need by my prefixing the first 8 digits I had to strip out (as Zen Cart, or possibly MySQL/pHp cannot handle a 16 digit number as a variable).

    I have, of course, been using the 'Developers Tool Kit' extensively while building my store. However, this file (email/email_template_checkout.html) is the one I want to modify but I can only get so far as I cannot find where the defines for the following files are set:

    $PRODUCTS_DETAIL
    $PRODUCTS_TITLE

    they do not produce 'Match Files' in the Tool Kit, all I get is: "Error: No matching Configuration Keys were found ..."

    Any help/hints gratefully received! (I have produced a work around for my site (http://www.benefizz.co.uk/join.html) but it's neither as satisfactory or as neat as I'd like.)

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do I modify the text in a 'checkout email'?

    Look in the /includes/classes/order.php file, in the send_order_email() function.
    The $PRODUCTS_DETAIL and $PRODUCTS_TITLE are variables built in the html['products_detail'] and html['products_title'] settings respectively.


    https://www.zen-cart.com/tutorials/i...hp?article=113
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Nov 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: How do I modify the text in a 'checkout email'?

    Many thanks! :)

 

 

Similar Threads

  1. How to change checkout email text?
    By bpitman in forum General Questions
    Replies: 2
    Last Post: 18 Jun 2010, 12:29 PM
  2. Modify Tax displayed in Checkout and email
    By peterdd in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 13 Aug 2008, 11:45 AM
  3. How do i modify the size of the text in the list of products in a category listing?
    By humbll in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 14 Jul 2007, 10:46 PM
  4. change checkout email text ? how ?
    By robyweb in forum General Questions
    Replies: 4
    Last Post: 4 Jun 2007, 11:05 AM
  5. modify text email to admin
    By 100asa in forum General Questions
    Replies: 1
    Last Post: 10 Jan 2007, 07:30 AM

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