Results 1 to 10 of 1873

Threaded View

  1. #11
    Join Date
    May 2013
    Posts
    8
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    Ok - I think I have come up with a solution to this now. I have done as I suggested and added an extra dimension to the front of the id array which is the $orders_products_id value.

    For example - Line 903 in edit_orders.php

    Code:
    echo '<textarea class="attribsTextarea" name="id[' .$optionID[$j] . '][value]" rows="' . $optionInfo['rows'] .
    	'" cols="' . $optionInfo['size'] . '" id="attrib-' .
    	$optionID[$j] . '" >' . $text . '</textarea>' . "\n";
    becomes

    Code:
    echo '<textarea class="attribsTextarea" name="id['.$orders_products_id.'][' .	$optionID[$j] . '][value]" rows="' . $optionInfo['rows'] .
    	'" cols="' . $optionInfo['size'] . '" id="attrib-' .
    	$optionID[$j] . '" >' . $text . '</textarea>' . "\n";
    and then, when this array is read from $_POST on line 276

    Code:
    zen_db_prepare_input($_POST['id']),
    becomes

    Code:
    zen_db_prepare_input($_POST['id'][$orders_products_id]),
    I have had a quick (but not thorough!) test of this, and it seems to work - can anyone see any reasons as to why this might cause problems elsewhere?


    I now seem to have a problem in that the Sub-Total and hence, the Total never update, and they can't be modified manually, so the order totals cannot be changed, only by adding additional total lines (but then these get removed again upon updating the order). Is this expected functionality, have I missed something or is this a bug?

    Cheers,
    Scott
    Last edited by Gadgit; 18 May 2013 at 03:03 PM. Reason: code formatting

 

 

Similar Threads

  1. v150 Super Orders v4.0 Support Thread for ZC v1.5.x
    By DivaVocals in forum Addon Admin Tools
    Replies: 804
    Last Post: 18 Apr 2025, 12:04 AM
  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

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