Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2007
    Posts
    73
    Plugin Contributions
    0

    Default Product Descriptions in emails

    Hi All,

    Is there a way I can get the Full Product Description in the emails. I have 15 of pretty much the same item but different descriptions and when I receive an order all I get is the title of the item and it kinda makes it hard to figure out what item is what.

    Thanks much in advance.
    RSprinkel

  2. #2
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Product Descriptions in emails

    Make a backup of your includes/classes/order.php file (and a very good one).

    Then. find:

    PHP Code:
    $orders_products_query "select orders_products_id, products_id, products_name,
                                     products_model, products_price, products_tax,
                                     products_quantity, final_price,
                                     onetime_charges,
                                     products_priced_by_attribute, product_is_free, products_discount_type,
                                     products_discount_type_from
                                      from " 
    TABLE_ORDERS_PRODUCTS "
                                      where orders_id = '" 
    . (int)$order_id "'";

        
    $orders_products $db->Execute($orders_products_query); 
    replace with:

    PHP Code:
    $orders_products_query "select tpo.orders_products_id, tpo.products_id, tpo.products_name,
                                     tpo.products_model, tpo.products_price, tpo.products_tax,
                                     tpo.products_quantity, tpo.final_price,
                                     tpo.onetime_charges,
                                     tpo.products_priced_by_attribute, tpo.product_is_free, tpo.products_discount_type,
                                     tpo.products_discount_type_from, tpd.products_description
                                      from (" 
    TABLE_ORDERS_PRODUCTS " tpo, " TABLE_PRODUCTS_DESCRIPTION " tpd)
                                      where tpo.orders_id = '" 
    . (int)$order_id "'";

        
    $orders_products $db->Execute($orders_products_query); 
    Then, find:

    PHP Code:
    'products_discount_type_from' => $orders_products->fields['products_discount_type_from']); 
    replace with:

    PHP Code:
    'products_discount_type_from' => $orders_products->fields['products_discount_type_from'],
    'products_description' => $orders_products->fields['products_description']); 
    Then, find:

    PHP Code:
    '<td>' $currencies->display_price($this->products[$i]['onetime_charges'], $this->products[$i]['tax'], 1) : '') .
    '</td></tr>'
    replace with:

    PHP Code:
    '<td>' $currencies->display_price($this->products[$i]['onetime_charges'], $this->products[$i]['tax'], 1) : '') .
    '</td></tr>' .
    '<tr><td>' TEXT_EMAIL_PRODUCTS_DESCRIPTION '</td></tr>' .
    '<tr><td>' $this->products[$i]['products_description'] . '</td></tr>'
    Then, in your includes/languages/english.php file,

    find:

    PHP Code:
    define('TEXT_ONETIME_CHARGES_EMAIL',"\t" '*onetime charges = '); 
    add right below:

    PHP Code:
    define('TEXT_EMAIL_PRODUCTS_DESCRIPTION''Products description'); 
    Test your order (as a test order at least) and see the results. ;)
    Last edited by TheOracle; 15 Apr 2007 at 12:42 AM.

  3. #3
    Join Date
    Feb 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: Product Descriptions in emails

    Sorry for the delay in getting back to this thread. I have just done all the above and all I am getting is just the Product name. I tried it 2 times and got the same thing in both emails.

    Thanks.
    RSprinkel

 

 

Similar Threads

  1. Replies: 3
    Last Post: 10 Jan 2013, 07:25 AM
  2. Show (small) product images to the left of product descriptions on Category pages
    By karine in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 May 2012, 03:39 AM
  3. truncated product descriptions in new product listings
    By discoverytdi in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 30 Jan 2012, 02:47 AM
  4. Link multiple product descriptions to one main product
    By gigabiter in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 7 May 2009, 02:26 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