Results 1 to 10 of 1916

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Edit Orders v4.0 Support Thread

    OK, I can repro the issue. What's happening is that on the 4th step (Add Now), on the default database with test products, I get correct attributes and options:

    <input type='submit' value='Add now'><input type="hidden" name="id[3][value]" value="8"><input type="hidden" name="id[3][type]" value="0">

    but on my database, these fields have been damaged:

    <input type='submit' value='Add now'><input type="hidden" name="id[26]" value="Array"><input type="hidden" name="id[27]" value="Array">

    (which creates empty values in orders_products_attributes.

    So going back a step, on the default database in step 3, I get

    <label class="attribsSelect" for="attrib-3">Model</label><select rel="dropdown" name="id[3][value]" id="attrib-3">

    and on my database, I get

    <label class="attribsSelect" for="attrib-27">Mounting Orientation:</label><select rel="dropdown" name="id[27][value]" id="attrib-27">

    which looks the same to me.

    Gets into init_sanitize fine, but goes from ./includes/classes/AdminRequestSanitizer.php into filterSimpleAlphanumPlus which clobbers the array (line 335).

    It looks like on my side, the ParameterDefinitions array does not include the entry for MULTI_DIMENSIONAL.
    Last edited by swguy; 13 May 2016 at 12:20 PM.
    That Software Guy. My Store: Zen Cart Support
    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.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Edit Orders v4.0 Support Thread

    @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.

    I'm also not sure what you mean by:
    Code:
    It looks like on my side, the ParameterDefinitions array does not include the entry for MULTI_DIMENSIONAL.
    ... although, in reviewing the sanitization array (in /ADMIN/includes/extra_datafiles/eo_sanitization.php) there's an entry for the update_order path, but not one for the add_prdct one.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Edit Orders v4.0 Support Thread

    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.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    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 Support
    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.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by swguy View Post
    OK, I can repro the issue. What's happening is that on the 4th step (Add Now), on the default database with test products, I get correct attributes and options:

    <input type='submit' value='Add now'><input type="hidden" name="id[3][value]" value="8"><input type="hidden" name="id[3][type]" value="0">

    but on my database, these fields have been damaged:

    <input type='submit' value='Add now'><input type="hidden" name="id[26]" value="Array"><input type="hidden" name="id[27]" value="Array">

    (which creates empty values in orders_products_attributes.

    So going back a step, on the default database in step 3, I get

    <label class="attribsSelect" for="attrib-3">Model</label><select rel="dropdown" name="id[3][value]" id="attrib-3">

    and on my database, I get

    <label class="attribsSelect" for="attrib-27">Mounting Orientation:</label><select rel="dropdown" name="id[27][value]" id="attrib-27">

    which looks the same to me.

    Gets into init_sanitize fine, but goes from ./includes/classes/AdminRequestSanitizer.php into filterSimpleAlphanumPlus which clobbers the array (line 335).

    It looks like on my side, the ParameterDefinitions array does not include the entry for MULTI_DIMENSIONAL.
    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.
    Morning lat9. Looks like a comparison of operation is being performed between a default zc store and a "live" store, which is the "my database" version. Considering the timing of the discussion and issues, should also note that there appears to be something amiss with the products_attributes table or related with that database as a change to another plugin was required to address sort orders of attributes. That change required not using the sort order provided by routine query to the products_attributes table and instead to use the sort order provided by the products_options_values table. A suggestion was made to correct the issue with the products_attributes table, the status of which is unknown, but alternate software (for more than one reason) was sought.

    Or perhaps it *is* something else as the issue can occur in the default database.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    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 Support
    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.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Edit Orders v4.0 Support Thread

    Reproduced using the demo products; see this posting.

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    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);
    }

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Edit Orders v4.0 Support Thread

    Will test as soon as I get home.
    That Software Guy. My Store: Zen Cart Support
    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
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    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.

 

 

Similar Threads

  1. v150 Super Orders v4.0 Support Thread for ZC v1.5.x
    By DivaVocals in forum Addon Admin Tools
    Replies: 817
    Last Post: 29 Apr 2026, 07:53 PM
  2. v150 Orders Status History -- Updated By [Support Thread]
    By lat9 in forum Addon Admin Tools
    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

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