Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2018
    Posts
    4
    Plugin Contributions
    0

    Default Edit invoice with new product's names

    Hello,

    In my zen cart 1.5.5 shop, we've changed the products names and the store logo of course, so we need that our custommers retrieve their anterior invoices with the new product names instead of the old ones.

    After changing the product names.. I've seen that the invoices still preserve the same product names, any ideas to force the update?


    Thanks,

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

    Default Re: Edit invoice with new product's names

    The details of an order are recorded and "set in stone" with the customer and product details at that time. Subsequent changes do not update the order, nor should they. It is important that the facts are recorded at that moment to avoid confusion later if changes are made to customer details or products.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  3. #3
    Join Date
    Mar 2018
    Posts
    4
    Plugin Contributions
    0

    Default Re: Edit invoice with new product's names

    Thank you for your help !

    So is there any config to check up at the PHP level?

  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Edit invoice with new product's names

    To check your php version, there is a link on the right top of your admin screen called version (in the black bar). If you press this, all kinds of useful info is presented, including your php version.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: Edit invoice with new product's names

    I think the OP might be asking how he can use PHP to display the updated product name. If this is desired, it's not a hard change. Line numbers per 1.5.5f.

    Change admin/invoice.php line 167 from

    Code:
               '        <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
    to

    Code:
               '        <td class="dataTableContent" valign="top">' . zen_get_products_name($order->products[$i]['id']);
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Mar 2018
    Posts
    4
    Plugin Contributions
    0

    Default Re: Edit invoice with new product's names

    Thank you folks especially swguy for his precious help !

    I would just to know how to handle the "Model" row, because it doesn't take into consideration the new changes, and still shows the old "Model" data, so when i edit invoice.php the row result gives TestTest on all my invoices.


    Any idea?

    Thank you again !

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: Edit invoice with new product's names

    Same idea as above. Instead of

    Code:
    $order->products[$i]['model']
    use

    Code:
    zen_get_products_model($order->products[$i]['id'])
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Mar 2018
    Posts
    4
    Plugin Contributions
    0

    Default Re: Edit invoice with new product's names

    Hello,

    Thank you so much for precious help Mr. swguy

    I have an other 2 questions if i am not rude.

    1- The Tax area shows 0% even my configured tax is 5%, so is there any edit to force the tax to return 5%?
    2- The "Price with tax excluded" should return The (Price with tax included)/1.05, how this can be handled?


    Kind Regards,

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: Edit invoice with new product's names

    For #1, you might want to look at look at Edit Orders. I am not sure I understand #2.

    https://www.zen-cart.com/downloads.php?do=file&id=1513
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #10
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Edit invoice with new product's names

    I believe that item #2 relates to showing both the price with tax included and with it removed/excluded. Something that might have previously been possible with say the plugin Display Price with Vat/Tax and Ex Vat/Tax as found at this plugin download location: https://www.zen-cart.com/downloads.php?do=file&id=597
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v139h Bulk Edit Product Names & Descriptions
    By pinksparklegirl in forum General Questions
    Replies: 15
    Last Post: 17 Mar 2015, 12:44 PM
  2. Click......... Product edit options with New Tab
    By crixus in forum General Questions
    Replies: 5
    Last Post: 30 Mar 2014, 12:07 AM
  3. Dealing with Options Names, sort orders, when product share similar names?
    By printchic in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 15 Jun 2009, 01:53 PM
  4. Invoice - Balance due not calculating correctly with module "Edit Orders"
    By AATECH in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 25 Sep 2008, 07:40 PM
  5. Email invoice makes gap in product names
    By nanosafeguard in forum General Questions
    Replies: 0
    Last Post: 3 May 2007, 08:48 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