Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    May 2011
    Location
    The Netherlands
    Posts
    4
    Plugin Contributions
    0

    Default [Duplicate] product name gone when editing a product

    I don't know if someone has already reported this bug yet but after a fresh install of version 1.3.9h the product name was not filled in when a product was updated.

    I was able to solve this by changing file admin/includes/modules/products/collect_info.php

    from (line 297 - 300):

    <tr>
    <td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_NAME; ?></td>
    <td class="main"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . zen_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (isset($products_name[$languages[$i]['id']]) ? htmlspecialchars(stripslashes($products_name[$languages[$i]['id']]), ENT_COMPAT, CHARSET, TRUE) : htmlspecialchars(zen_get_products_name($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE)), zen_set_field_length(TABLE_PRODUCTS_DESCRIPTION, 'products_name')); ?></td>
    </tr>

    into:

    <tr>
    <td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_NAME; ?></td>
    <?php
    if (isset($products_name[$languages[$i]['id']]))
    $p = htmlspecialchars(stripslashes($products_name[$languages[$i]['id']]), ENT_COMPAT, CHARSET, TRUE);
    else
    $p = htmlspecialchars(zen_get_products_name($pInfo->products_id, $languages[$i]['id']));
    ?>
    <td class="main"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . zen_draw_input_field('products_name[' . $languages[$i]['id'] . ']', $p, zen_set_field_length(TABLE_PRODUCTS_DESCRIPTION, 'products_name')); ?></td>
    </tr>

    regards,
    Rob Musquetier
    The Netherlands

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

    Default Re: [Duplicate] product name gone when editing a product

    .

    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.

 

 

Similar Threads

  1. Duplicate Item Name / Product name repeat Order Confirmation Email
    By jsarwar in forum Managing Customers and Orders
    Replies: 3
    Last Post: 21 Nov 2014, 02:57 PM
  2. Avoid duplicate product name in Cart
    By fawad123 in forum General Questions
    Replies: 10
    Last Post: 2 Dec 2010, 01:10 PM
  3. Replies: 3
    Last Post: 30 Sep 2010, 11:23 PM
  4. Symbols truncate Product Name and Description after editing
    By Sprainbrook in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 5 Mar 2010, 03:59 AM
  5. Duplicate Product when Searching?
    By SP09 in forum General Questions
    Replies: 2
    Last Post: 31 Jan 2010, 05:07 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