Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2004
    Location
    Finland
    Posts
    488
    Plugin Contributions
    3

    Default [Fixed v1.5.1] empty profile names

    Version: ZenCart 1.5RC2

    In profile manager, you can't add a new profile with an empty name.

    But the rename function in the profile list lets you set an empty string as a new name for a profile.
    Working with Zen Cart since 2003 :: www.prr.fi
    Author of the original Finnish language pack for Zen Cart since 2004

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

    Default Re: 1.5RC2 empty profile names

    In final v1.5.0 I can't replicate this problem.
    If you can, please list specific steps to make it happen.
    .

    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.

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

    Default Re: 1.5RC2 empty profile names

    I take that back. I see what you're talking about now. I was looking at the wrong place
    .

    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
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 1.5RC2 empty profile names

    While it's not necessarily problematic to have a blank profile name, it can certainly be a bit confusing.

    Here's a simple workaround "fix":
    /admin/profiles.php
    around line 83 is this section of code; simply insert the lines shown:
    Code:
      case 'update_name':
        if (trim($_POST['profile-name']) == '') {
          $messageStack->add_session(ERROR_INVALID_PROFILE_NAME, 'error');
          zen_redirect(zen_href_link(FILENAME_PROFILES));
        }
        zen_update_profile_name($profile, $_POST['profile-name']);
        $messageStack->add_session(SUCCESS_PROFILE_NAME_UPDATED, 'success');
        zen_redirect(zen_href_link(FILENAME_PROFILES));
        break;
    .

    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.

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

    Default Re: 1.5RC2 empty profile names

    Fix updated in v1.5.1
    .

    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. Replies: 3
    Last Post: 19 Sep 2012, 04:13 AM
  2. Product Downloads: Attribute Names vs File Names
    By SgtPepper in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 Jun 2011, 09:01 PM
  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. Icon to show if cart is empty/not empty
    By karl19 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Oct 2007, 10:23 AM
  5. FIXED Muliple Quantities at FIXED Prices per Multiple Quantity???
    By awarrior in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 4 Apr 2007, 09:42 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