Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 41
  1. #31
    Join Date
    Jun 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: Add Product Description to Invoice/orders/emails ect;

    cont'd:

    step 2:

    in includes/classes/order.php find

    PHP Code:
      $sql_data_array = array('orders_id' => $zf_insert_id,
                                  
    'products_id' => zen_get_prid($this->products[$i]['id']),
                                  
    //'products_model' => $this->products[$i]['model'],
                                  
    'products_name' => $this->products[$i]['name'],
                                  
    'products_description' => zen_get_products_description($this->products[$i]['id']),
                                 
                                  
    'products_price' => $this->products[$i]['price'],
                                  
    'final_price' => $this->products[$i]['final_price'],
                                  
    'onetime_charges' => $this->products[$i]['onetime_charges'],
                                  
    'products_tax' => $this->products[$i]['tax'],
                                  
    'products_quantity' => $this->products[$i]['qty'],
                                  
    'products_priced_by_attribute' => $this->products[$i]['products_priced_by_attribute'],
                                  
    'product_is_free' => $this->products[$i]['product_is_free'],
                                  
    'products_discount_type' => $this->products[$i]['products_discount_type'],
                                  
    'products_discount_type_from' => $this->products[$i]['products_discount_type_from'],
                                  
    'products_prid' => $this->products[$i]['id']);
          
    zen_db_perform(TABLE_ORDERS_PRODUCTS$sql_data_array); 
    to this:

    PHP Code:
      $sql_data_array = array('orders_id' => $zf_insert_id,
                                  
    'products_id' => zen_get_prid($this->products[$i]['id']),
                                  
    //'products_model' => $this->products[$i]['model'],
                                  
    'products_name' => $this->products[$i]['name'],
                                  
    'products_description' => zen_get_products_description($this->products[$i]['id']),
                                  [
    COLOR="Red"][B]'products_url' => zen_get_products_url($this->products[$i]['id']),[/B][/COLOR]
                                  
    'products_price' => $this->products[$i]['price'],
                                  
    'final_price' => $this->products[$i]['final_price'],
                                  
    'onetime_charges' => $this->products[$i]['onetime_charges'],
                                  
    'products_tax' => $this->products[$i]['tax'],
                                  
    'products_quantity' => $this->products[$i]['qty'],
                                  
    'products_priced_by_attribute' => $this->products[$i]['products_priced_by_attribute'],
                                  
    'product_is_free' => $this->products[$i]['product_is_free'],
                                  
    'products_discount_type' => $this->products[$i]['products_discount_type'],
                                  
    'products_discount_type_from' => $this->products[$i]['products_discount_type_from'],
                                  
    'products_prid' => $this->products[$i]['id']);
          
    zen_db_perform(TABLE_ORDERS_PRODUCTS$sql_data_array); 
    and find the line:

    PHP Code:
    $this->products_ordered_attributes ''
    and change to this :

    PHP Code:
    //-----------$this->products_ordered_attributes = '';
          
    $this->products_ordered_attributes "\n\n" "Product Link: " zen_get_products_url($this->products[$i]['id']) . "\n\n" "Product Details: " 
    thats it. works perfect!!

  2. #32
    Join Date
    Jun 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: Add Product Description to Invoice/orders/emails ect;

    please remove the unnecessary "... "

    or this one. sorry for that:

    PHP Code:
     $sql_data_array = array('orders_id' => $zf_insert_id,
                                  
    'products_id' => zen_get_prid($this->products[$i]['id']),
                                  
    //'products_model' => $this->products[$i]['model'],
                                  
    'products_name' => $this->products[$i]['name'],
                                  
    'products_description' => zen_get_products_description($this->products[$i]['id']),
                                  
    'products_url' => zen_get_products_url($this->products[$i]['id']),
                                  
    'products_price' => $this->products[$i]['price'],
                                  
    'final_price' => $this->products[$i]['final_price'],
                                  
    'onetime_charges' => $this->products[$i]['onetime_charges'],
                                  
    'products_tax' => $this->products[$i]['tax'],
                                  
    'products_quantity' => $this->products[$i]['qty'],
                                  
    'products_priced_by_attribute' => $this->products[$i]['products_priced_by_attribute'],
                                  
    'product_is_free' => $this->products[$i]['product_is_free'],
                                  
    'products_discount_type' => $this->products[$i]['products_discount_type'],
                                  
    'products_discount_type_from' => $this->products[$i]['products_discount_type_from'],
                                  
    'products_prid' => $this->products[$i]['id']);
          
    zen_db_perform(TABLE_ORDERS_PRODUCTS$sql_data_array); 

  3. #33
    Join Date
    Jun 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: Add Product Description to Invoice/orders/emails ect;

    ok, i have this one up and running..

    maybe someone knows how to make 2 different confirmation emails to admin and customer...

    all i want for the admin is having the "Product URL" and for the customer would only be the standard format.

    so this way i can automatically forward the confirmation to the printer.

    any help is much appreciated..

  4. #34
    Join Date
    Nov 2007
    Location
    Huntington, Indiana
    Posts
    67
    Plugin Contributions
    0

    Default Re: Add Product Description to Invoice/orders/emails ect;

    golowenow,

    I've been wanting to add the product description to our docs for months (everytime the packing lists printed with the meaningless 'model'). I recently found your most thorough walk-through (perfect, i might add) on doing this. Granted, Dr. Byte helped jump start it with the database mod, but your tutorial above was really good.

    Thank you for taking the time to document this on-line for others.

    Matt

  5. #35
    Join Date
    Jun 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: Add Product Description to Invoice/orders/emails ect;

    your welcome.

  6. #36
    Join Date
    Nov 2007
    Location
    Huntington, Indiana
    Posts
    67
    Plugin Contributions
    0

    Default Re: Add Product Description to Invoice/orders/emails ect;

    I noted a formatting issue with the product description in my i pad emails where the product description will not wrap to the next line.

    Eventually, the solution that I implemented was to rem out the <nobr> and </nobr> tags on lines 899 and 901, respectively, of the \includes\classes\order.php file. It fixed the i pad email formatting by allowing the description to wrap. I have not found any unwanted side effects anywhere else...so far.

    Code:
          //'<nobr>' .
          '<small><em> '. nl2br($this->products_ordered_attributes) .'</em></small>' .
          //'</nobr>' .
    Thought I'd put this out there for anyone else to use.

    Matt

  7. #37
    Join Date
    Jan 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: Add Product Description to Invoice/orders/emails ect;

    Hi everyone!
    I have followed the steps written here below but i have no results:
    After i have insert the code mentioned when I click on buy button I have back a blank page. I use Zen-Cart 1.3.9e italian version.
    There's anyone that understand what I'm wrong??

    Thanks in advanced.

    Bye bye

  8. #38
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Add Product Description to Invoice/orders/emails ect;

    Quote Originally Posted by mercurioservice View Post
    ... I have back a blank page...
    https://www.zen-cart.com/tutorials/index.php?article=82
    .

    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.

  9. #39
    Join Date
    Jan 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: Add Product Description to Invoice/orders/emails ect;

    Thanks for reply!!! I just made it and it's working!!
    Now i have to insert the same field in online order that the customer can see after login. I see that the file maybe is tpl_account_history_info_default.php but i do know the code to insert to show the field 'products_description' .

    Thanks in advanced

  10. #40
    Join Date
    Nov 2008
    Posts
    93
    Plugin Contributions
    0

    Default Re: Add Product Description to Invoice/orders/emails ect;

    Is there an updated code for V151?

 

 
Page 4 of 5 FirstFirst ... 2345 LastLast

Similar Threads

  1. Add Product Image into orders emails
    By marknew in forum Managing Customers and Orders
    Replies: 1
    Last Post: 7 Oct 2010, 02:26 AM
  2. Order Invoice - Product Description
    By Failed_Attempt in forum Managing Customers and Orders
    Replies: 15
    Last Post: 8 Sep 2010, 04:41 PM
  3. Looking to add print invoice and shipp invoice from admin---> orders
    By r4fdud in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 15 Mar 2009, 11:21 PM
  4. adding product description to emails problem
    By golowenow in forum Managing Customers and Orders
    Replies: 9
    Last Post: 24 Apr 2007, 02:54 AM
  5. Add Product Description to Orders
    By DiZZ in forum General Questions
    Replies: 1
    Last Post: 8 Nov 2006, 04:08 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