Thanks a lot man! i thought what it means by tracking orders is like a search order. :D
Printable View
Thanks a lot man! i thought what it means by tracking orders is like a search order. :D
DivaVocals,
Thanks for all the Work and Support you have done and still do to patch up Super Orders 2.0 along with everyone else that has contributed. I think this is a Great Mod by BlindSide.
I noticed that starting in REV 48, you took out ( I think it was you) the modify button and left these comments in it's place.
So, here is a fix for those that are interested.Quote:
<!-- The following line has been commented out and replaced with the line below it. The modify/update function is not working so I removed the "Modify" button.
proper accounting rules should not really allow "modifying" of Payments/refunds/POs. An adjustment is the correct way to "modify" a payment/refund/PO. I left the original code in place
in case anyone wants to fix and reactivate this feature. I suggest that if you fix this that you should also share the fix in the Super
Orders support thread.-->
<!--td align="right"><?php $so->button_update('payment', $so->payment[$a]['index']); $so->button_delete('payment', $so->payment[$a]['index']);?></td-->
<td align="right"><?php $so->button_delete('payment', $so->payment[$a]['index']);?></td>
The reason MODIFY does not work is because of a Security PatchIt removes the ability to use the word update in a $_GET statement.Code:admin/includes/init_includes/init_security_patch_v138
I agree, adjustments are the way to go, but what if you entered a check number incorrectly or something similar, I myself would rather Modify the payment.
That being said, There is a way to make Modify work again. You will need to edit two files. They are:
Change the word update in both files to anything you want to use as long as you use the same word in both files.Code:admin/includes/classes/super_order.php
Look around Line # 358 for:
// Displays a button that will open a popup window to update an existing payment entry
// This code assumes you have the popupWindow() function defined in your header!
// Valid $payment_mode entries are: 'payment', 'purchase_order', 'refund'
function button_update($payment_mode, $index) {
echo ' <a href="javascript:popupWindow(\'' .
zen_href_link(FILENAME_SUPER_PAYMENTS, 'oID=' . $this->oID . '&payment_mode=' . $payment_mode . '&index=' . $index . '&action=update', 'NONSSL') . '\', \'scrollbars=yes,resizable=yes,width=400,height=300,screenX=150,screenY=100,top=100,left=150\')">' .
zen_image_button('btn_modify.gif', sprintf(ALT_TEXT_UPDATE, str_replace('_', ' ', $payment_mode))) . '</a>';
}
and
/admin/super_payments
Look around Line# 450 for:
case 'update':
$index = $_GET['index'];
echo ' ' . zen_draw_form('update', FILENAME_SUPER_PAYMENTS, '', 'get', '', true) . NL;
echo ' ' . zen_draw_hidden_field('action', $action) . NL;
echo ' ' . zen_draw_hidden_field('process', 1) . NL;
echo ' ' . zen_draw_hidden_field('payment_mode', $payment_mode) . NL;
echo ' ' . zen_draw_hidden_field('oID', $so->oID) . NL;
Remember to change the lines back in
starting around line #'s 477, 495, 539, 564, 582 and 637. (This is in REV 48a of Super Orders 2.0 and Zen-Cart 138a)Code:admin/super_orders.php
Copy your updated files to your store and Modify will now work.
REMEMBER: Always have a BACKUP of ANY file that you change.
I did indeed comment out the modify function.. IMO there was no point in leaving in a feature which did not work. I left the comments about why I disabled the feature, and I'm so glad you followed my suggestion and shared the fix with the rest of the class.. :clap:
I'll try and get some time soon to test, and if all goes well with testing, I'll bundle this up with and submit it to the downloads section..
Batch Shipping Charges
Anyway to add a column to see the Shipping Charges when using the Batch functions?
Either add a column or create a function to see just the shipping charges of the orders. This would be good to use to forecast shipping trends or simple accounting.
I am able to import the batch data to the application Numbers and to keep my accounting up to date on a monthly basis.
I'm getting an HTML validation error on the shipping label page. The error message is:
The offending line seems to be:Quote:
Line 4, Column 73: end tag for "meta" omitted, but OMITTAG NO was specified
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Originally it didn't have the "/" before the ">" so I added it, but am getting the same error. Any ideas?Code:<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
Thanks.
I assume you didn't mean to imply I should remove the "/>" at the end.
Thanks for the suggestion, but it didn't seem to fix it.
Yes, you are correct, I didn't mean to have omit anything, just add the quotes.
What are you using to Validate the code?
I'm using whatever happens to be built into developer...I believe it's http://validator.w3.org.
Do you suspect the validator might be errant?