Page 94 of 155 FirstFirst ... 44849293949596104144 ... LastLast
Results 931 to 940 of 1545
  1. #931
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,081
    Plugin Contributions
    267

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by lat9 View Post
    OK, got one. Tried to add the "Big Linked" version of "A Bug's Life ..." entered all the attributes, clicked "Add" and came back to the same screen (with debug-logs generated). At this point, I've got something to work with and will report back when I've got a solution.
    If you do a view source on the 4th step (with the Add button), do you get

    name="id[1] value="Array"

    instead of

    name="id[1][value]" id="attrib-1"

    Because that means you're seeing the issue.
    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.

  2. #932
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,081
    Plugin Contributions
    267

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by lat9 View Post
    @swguy, you say you're using the demo products, but there's no option named "Mounting Options". If you could identify the specifics of the product and its attributes that you're trying to add to the order, I could probably help.
    Mounting Options is something from my database (which exhibits the problem).
    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.

  3. #933
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,560
    Plugin Contributions
    73

    Default Re: Edit Orders v4.0 Support Thread

    Reproduced using the demo products; see this posting.

  4. #934
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,560
    Plugin Contributions
    73

    Default Re: Edit Orders v4.0 Support Thread

    @swguy, would you apply the following update to your ADMIN/includes/extra_datafiles/eo_sanitization.php to see if that corrects your issue (it corrected the issue with the demo product)?
    Code:
    <?php
    // -----
    // Part of the Edit Orders plugin, v4.1.5 or later.  This file defines the level of "sanitization" required by the adminSanitizer function,
    // introduced in a patch-level of Zen Cart v1.5.5, so need to make sure that the "proper" version of the class is included.
    //
    if (defined ('PROJECT_VERSION_MAJOR') && version_compare (PROJECT_VERSION_MAJOR . '.' . PROJECT_VERSION_MINOR, '1.5.5', '>=') && class_exists ('AdminRequestSanitizer') && method_exists ('AdminRequestSanitizer', 'getInstance')) {
        $eo_sanitizer = AdminRequestSanitizer::getInstance();
        $eo_group = array (
            'update_products' => array (
                'sanitizerType' => 'MULTI_DIMENSIONAL',
                'method' => 'post',
                'pages' => array ('edit_orders'),
                'params' => array (
                    'update_products' => array ('sanitizerType' => 'CONVERT_INT'),
                    'qty' => array ('sanitizerType' => 'FLOAT_VALUE_REGEX'),
                    'name' => array ('sanitizerType' => 'PRODUCT_DESC_REGEX'),
                    'onetime_charges' => array ('sanitizerType' => 'FLOAT_VALUE_REGEX'),
                    'attr' => array (
                        'sanitizerType' => 'MULTI_DIMENSIONAL',
                        'params' => array (
                            'attr' => array ('sanitizerType' => 'CONVERT_INT'),
                            'value' => array ('sanitizerType' => 'PRODUCT_DESC_REGEX'),
                            'type' => array ('sanitizerType' => 'CONVERT_INT')
                        )
                    ),
                    'model' => array ('sanitizerType' => 'WORDS_AND_SYMBOLS_REGEX'),
                    'tax' => array ('sanitizerType' => 'FLOAT_VALUE_REGEX'),
                    'final_price' => array ('sanitizerType' => 'FLOAT_VALUE_REGEX'),
                )
            ),
            'id' => array (
                'sanitizerType' => 'MULTI_DIMENSIONAL',
                'method' => 'post',
                'pages' => array ('edit_orders'),
                'params' => array (
                    'id' => array ('sanitizerType' => 'CONVERT_INT'),
                    'type' => array ('sanitizerType' => 'CONVERT_INT'),
                    'value' => array ('sanitizerType' => 'PRODUCT_DESC_REGEX'),
                ),
                
            )
        );
        $eo_sanitizer->addComplexSanitization ($eo_group);
    }

  5. #935
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,081
    Plugin Contributions
    267

    Default Re: Edit Orders v4.0 Support Thread

    Will test as soon as I get home.
    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.

  6. #936
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,560
    Plugin Contributions
    73

    Default Re: Edit Orders v4.0 Support Thread

    Never mind; that worked on my test setup (1.5.5+sanitizer updated from 4/12/2016) but fails using the sanitizer that's delivered as part of ZC1.5.5a.

  7. #937
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,081
    Plugin Contributions
    267

    Default Re: Edit Orders v4.0 Support Thread

    ok -standing by.
    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.

  8. #938
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,879
    Blog Entries
    2
    Plugin Contributions
    2

    Default Re: Edit Orders v4.0 Support Thread

    The problem is this test
    if (defined ('PROJECT_VERSION_MAJOR') && version_compare (PROJECT_VERSION_MAJOR . '.' . PROJECT_VERSION_MINOR, '1.5.5', '>=') && class_exists ('AdminRequestSanitizer') && method_exists ('AdminRequestSanitizer', 'getInstance')) {

    1.5.5a will fail as version_compare("1.5.5a", "1.5.5") = -1

  9. #939
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,879
    Blog Entries
    2
    Plugin Contributions
    2

    Default Re: Edit Orders v4.0 Support Thread

    drbyte suggests

    (int)(PROJECT_VERSION_MAJOR . '.' . PROJECT_VERSION_MINOR <= '1.5.5');

  10. #940
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,081
    Plugin Contributions
    267

    Default Re: Edit Orders v4.0 Support Thread

    Post 934: https://www.zen-cart.com/showthread....51#post1310851
    was GOLD on vanilla 1.5.5. Worked like a champ.

    Wilt's point is well taken - that check will have to be beefed up for 1.5.5a.
    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.

 

 

Similar Threads

  1. v150 Super Orders v4.0 Support Thread (for ZC v1.5.x)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 726
    Last Post: 16 Mar 2020, 10:13 AM
  2. v150 Orders Status History -- Updated By [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 34
    Last Post: 29 Jul 2019, 07:05 PM
  3. Edit Orders v3.0 for ZC 1.3.9 [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 656
    Last Post: 18 Apr 2016, 06:28 PM
  4. v139h Super Orders v3.0 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1018
    Last Post: 28 Apr 2014, 11:38 PM
  5. RE: Super Orders v3.0 Support Thread
    By Johnnyd in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Jun 2011, 09:28 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