Jump to content

insaini

Members
  • Content count

    207
  • Joined

  • Last visited

Everything posted by insaini

  1. insaini

    Canada Post shipping module v0.3: Please Help!

    I have been working on this for hours and cant get it.. same tried any cURL option i could and nothing seems to be working... anyone?
  2. insaini

    Seperate Pricing Per Customer v3.5

    Hi All, Wondering if someone can help me with a problem im having... I just installed SPPC 4.16 on RC1 .. everything seemed to be merged correctly.. however im having this problem.. all the products in my catalog are showing up without images and with prices 0.00 .. so I assumed that Im supposed to add the products in my catalog to the retail group ? .. well just how do I do that.. I am looking in the admin site and I dont see anywhere that I can set which customers_group I can set the product to .. can someone provide a screen show.. which file or where I would be able to specify which group the product belongs to .. other than the new customers_groups link under the customers link on the left column.. the admin site hasnt changed even after all the changes... J
  3. insaini

    NEW! Complete Order Editing Tool!

    there is no real-time payment processing in the uploaded version of 4.0.2 or 5.0 as far as I know.. i havent installed 5.0 yet.. but im sure you need to have a payment module installed.. then you just select it from the drop down.. your credit card information boxes should popup.. but djmonkey would know better
  4. insaini

    NEW! Complete Order Editing Tool!

    i have it working for order editor 4.0 but it will require some modification of payment modules.. for one each payment module needs to be copied over.. all the redirects in the payment modules need to point to the order editor.. and the main problem is when the information is submitted to the payment service.. where do they return to.. well the way to do this is just have them return to the checkout_process.php ... and modify order editor so that an extra value is forwarded identifying it as an admin payment submission.. when its returned to checkout_process.php .. then check to see if its an admin submission.. if it is do the work necessary.. and if not then continue as normal.. it works but im pretty sure im not going to bother releasing it with version 4.0.. v5 is better and once djmonkey comes out with the final version .. payment module support can be easily added in the same fashion that ive added it.. works just fine too..
  5. insaini

    NEW! Complete Order Editing Tool!

    I saw that.. im pretty sure your problem is with a missing </td> or </tr> etc.. your missing an end tag and thats whats causing this.. you may have deleted it by accident.. I dont know how many additional mods you have made to the order editor.. i suggest just replacing the file and see what it looks like.. then start reapplying any mods one at a time keeping an eye on the layout.. if it suddenly changes after an edit.. then the edit must have a missing tag or two..
  6. insaini

    NEW! Complete Order Editing Tool!

    heres the missing javascript function.. take a look at the post.. if you missed it http://forums.oscommerce.com/index.php?s=&...t&p=1111798
  7. insaini

    NEW! Complete Order Editing Tool!

    your missing a bug fix.. find this around line 568 $shipping = array('id' => $shipping, 'title' => ($quotes[$i]['module'] . ' (' . $quotes[$i]['methods'][$j]['title'] . ')'), 'cost' => $quotes[$i]['methods'][$j]['cost']); $Query = "UPDATE " . TABLE_ORDERS_TOTAL . " SET title = '" . $shipping['title'] . "' WHERE class = 'ot_tax' AND orders_id = '" . (int)$oID . "'"; tep_db_query($Query); see this line WHERE class = 'ot_tax' .. it should be WHERE class = 'ot_shipping' .. you may also be missing it a little further below around line 600 find if ($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping) { $shipping = array('id' => $shipping, 'title' => ($quotes[$i]['module'] . ' (' . $quotes[$i]['methods'][$j]['title'] . ')'), 'cost' => $quotes[$i]['methods'][$j]['cost']); $Query = "UPDATE " . TABLE_ORDERS_TOTAL . " SET title = '" . $shipping['title'] . "' WHERE class = 'ot_tax' AND orders_id = '" . (int)$oID . "'"; tep_db_query($Query); } change the same line as above either you have to change both or just one.. also make sure you added in the missing javascript function.. it was posted i believe on page 108 or 109 .. J
  8. insaini

    NEW! Complete Order Editing Tool!

    I didnt anticipate someone not using shipping modules .. that was my mistake and I didnt realize I just took that out.. there are the extra spaces for custom charges.. if you add in a value into any of those three fields.. the total should have been updated and the custom charge saved to the database... but if it wasnt then there must be an issue..
  9. insaini

    NEW! Complete Order Editing Tool!

    you only need to make those changes in shipping modules that need an iso code.. the flat rate module doesnt use the iso code.. so its not needed..
  10. insaini

    NEW! Complete Order Editing Tool!

    Hey you have made the necessary changes.. but look back around page 105 - 109.. there was a javascript function that was missing.. you need to add that javascript function to your edit_orders.php and it should get it work.. also if you are using only one shipping module.. then you need to delete some lines of code.. look for this around 2400 <?php } else { for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) { // set the radio button to be checked if it is the method chosen $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false); echo ' <tr >' . "\n"; ?> <td width="250"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td> <?php if ( ($n > 1) || ($n2 > 1) ) { ?> <td width="25"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td> <td width="10" align="right"><?php echo tep_draw_oe_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked, '','onClick="update_delivery_cost(\''.$quotes[$i]['module'].'\',\''. tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']). '\')"'); ?></td> <?php } else { ?> <td align="right" colspan="2"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></td> <?php } ?> </tr> <?php } } ?> and change it to <?php } else { for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) { // set the radio button to be checked if it is the method chosen $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false); echo ' <tr >' . "\n"; ?> <td width="250"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td> <td width="25"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td> <td width="10" align="right"><?php echo tep_draw_oe_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked, '','onClick="update_delivery_cost(\''.$quotes[$i]['module'].'\',\''. tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']). '\')"'); ?></td> </tr> <?php } } ?> Anyone using only one shipping module must make this change.. probably better to just do it ..
  11. insaini

    NEW! Complete Order Editing Tool!

    Sorry guys i havent been around for the last week.. been very busy.. it seems as if firefox doesnt want you to use any more dashes over two.. for example the comment is supposed to be <!-- --> well if you use anymore dashes over two on either side.. they will show up.. stupid but ah well
  12. Version 4.0 of Order Editor has had the Manual Order Maker 1.4.2 merged into it. 4.0.2 is the latest version.. there is also version 5.0.. im not sure if it has manual order entry.. however it is not an upgrade to 4.0 .. both 4.0 and 5.0 are upgrades to the 3.0 series.. but they are completely different.
  13. insaini

    NEW! Complete Order Editing Tool!

    as far as I know.. the discount has to be applied as a negative value .. if on the customer side its applied with a positive value and its reduced.. thats simply the math.. in 2.8.2 as well as in 4.0 I guess to be consistent.. a positive value should reduce the price .. however I know for sure that in 4.0 it does not.. but again this is just a simple fix.. you put a '-' where you see the '+' :thumbsup: J
  14. insaini

    NEW! Complete Order Editing Tool!

    is it possible there are 2 $cart session variables being declared? you said youre using a recover cart contribution.. did that happen to modify the shipping.php file? .. in edit_orders.php there is a $cart variable which is an object of the class order_cart.php .. just to check that there isnt another $cart variable being declared somewhere which is overwriting the $cart ive created and using with order_cart j
  15. insaini

    NEW! Complete Order Editing Tool!

    Do you have this being loaded else where? .. possibly in admin/includes/application_top.php .. check to see that.. if it is your fix is fine.. if not the problem is elsewhere.. what about the functionality? does it seem to be working?
  16. insaini

    NEW! Complete Order Editing Tool!

    I just realized there were two javascript functions I created that are used in 4.0.2 that I didnt include in the upgrade instructions.. these are necessary for the 'live quote' updating .. the other is for the payment method module fields.. This function is needed if you have upgraded to 4.0.2 open edit_orders.php and find the javascript function checkAllBoxes(box) { around line 1640 .. place the function below right above that function .. /** * Update the Shipping Field from the Real-Time Quote Selection * @access public * @return void **/ function update_delivery_cost(method, cost){ var delivery_field = document.getElementById("delivery_method"); var delivery_value = document.getElementById("delivery_value"); var i; for (i = 0; i < delivery_field.length; i++) { if (method.search(delivery_field.options[i].value) != -1) { delivery_field.selectedIndex = i; delivery_value.value = cost; } } }
  17. insaini

    NEW! Complete Order Editing Tool!

    which version of local delivery module do you have? the latest is 1.6 and thats what Im looking at right now.. there are 2 places where the module needs to be modified.. both are ['country']['id'] changes to ['country_id']
  18. insaini

    NEW! Complete Order Editing Tool!

    So what did you have to add.. was it the database fields? when you installed did you do all the steps in the install.txt and the upgrade.txt ? you didnt just replace the files right you actually did the edits?
  19. insaini

    NEW! Complete Order Editing Tool!

    Ah ok.. so it seems you have SPPC installed... is that correct? open your admin/includes/functions/general.php and find the tep_get_products_special_price() function.. if you have it there.. you wont need it in oe_functions.php .. so open admin/includes/functions/oe_functions.php and find the function.. compare the two they will probably be identical.. and just remove the one from oe_functions.php ..
  20. insaini

    NEW! Complete Order Editing Tool!

    Although Order Editor 5.0 has been released by djmonkey. I wanted to complete the version 4.0 line. The last thing pending was Payment Processing. Well im happy to say its done and has been added. I will release it tomorrow or day after once the documentation is done.. and if anyone wishes to use it I will support it with any bug fixes that may be necessary.. I am currently using it and will continue to use it until I am finish modifying 5.0 to suit my needs. You most likely wont use the payment processing feature unless you are creating orders on the admin side.. but its there..and it should work just fine. here are some screen shots.. payment module selected, enter card information hit update and retrieve card information after adding products and updating the shipping quote, finalize order finish the order by confirming
  21. insaini

    NEW! Complete Order Editing Tool!

    Did you update the database? and add the shipping field in? ALTER TABLE orders ADD handling_fee DECIMAL( 7, 4 ) DEFAULT '0.000' NOT NULL ; ALTER TABLE orders ADD shipping_method VARCHAR(255) ; if you already had the older 3.0.2.1 then you would have had a shipping tax field.. you would need to run this query instead of the one above ALTER TABLE orders CHANGE shipping_tax handling_fee DECIMAL( 7, 4 ) DEFAULT '0.000' NOT NULL ; ALTER TABLE orders ADD shipping_method VARCHAR(255) ; now open admin/includes/classes/oe_order.php and make sure the lines ### FIND near line: 51 'shipping_tax' => $order['shipping_tax'], ### REPLACE WITH: 'handling_fee' => $order['handling_fee'], 'shipping_method' => $order['shipping_method'], so make sure you have the handling_fee and shipping_method fields there.. if that still doesnt work.. then it could be something at the very top of edit_orders.php this is the top of my file.. // First things first: get the required includes, classes, etc. require('includes/application_top.php'); require('includes/classes/http_client.php'); require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); require(DIR_WS_FUNCTIONS . 'oe_functions.php'); require(DIR_WS_CLASSES . 'oe_order.php'); // include order cart class require(DIR_WS_CLASSES . 'order_cart.php'); // load all enabled shipping modules require(DIR_FS_CATALOG . 'includes/classes/shipping.php'); $shipping_modules = new shipping; // define the number of custom charge fields define(CUSTOM_FIELDS, 3); if (isset($_POST['total_order_weight'])) { $total_weight = $_POST['total_order_weight']; } else { $total_weight = 0; } // create the order cart & fix the cart if necesary if (tep_session_is_registered('cart') && is_object($cart)) { if (PHP_VERSION < 4) { $broken_cart = $cart; $cart = new orderCart((int)$_GET['oID']); $cart->unserialize($broken_cart); } else { $cart = new orderCart((int)$_GET['oID']); } } else { tep_session_register('cart'); $cart = new orderCart((int)$_GET['oID']); } //set a default tax class //shipping tax is added to the default tax class $default_tax_class = ORDER_EDITOR_DEFAULT_TAX_CLASS; //if your shipping tax is not being added to the proper tax component //most likely you need to change the setting of $default_tax_class //this is configurable in the My Store section of the admin panel // Then we get down to the nitty gritty $orders_statuses = array(); $orders_status_array = array(); $orders_status_query = tep_db_query("SELECT orders_status_id, orders_status_name FROM " . TABLE_ORDERS_STATUS . " WHERE language_id = '" . (int)$languages_id . "'"); // Get List of Order Status Levels while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_statuses[] = array('id' => $orders_status['orders_status_id'], 'text' => $orders_status['orders_status_name']); $orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name']; } // Get $action from _GET if its been set otherwise set to edit $action = (isset($_GET['action']) ? $_GET['action'] : 'edit'); // Update Inventory Quantity if (tep_not_null($action)) { switch ($action) {
  22. insaini

    NEW! Complete Order Editing Tool!

    do you have the file oe_functions.php in your admin/includes/functions folder ?
  23. insaini

    NEW! Complete Order Editing Tool!

    so you followed all procedures in install.txt and all procedures in the upgrade.txt file as well?
  24. insaini

    NEW! Complete Order Editing Tool!

    Kang, tell me .. is this what your edit case looks like in edit_orders.php case 'edit': if (isset($_GET['oID'])) { if (!tep_session_is_registered('order')) { tep_session_register('order'); } $oID = tep_db_prepare_input($_GET['oID']); $order = new oe_order($oID); if ($order->info['shipping_method'] == null) { $Query = "SELECT title FROM " . TABLE_ORDERS_TOTAL . " WHERE class = 'ot_shipping' AND orders_id = '" . (int)$oID . "'"; $result = tep_db_query($Query); $row = tep_db_fetch_array($result); $order->info['shipping_method'] = $row['title']; } if (!$order->exists) { $messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error'); } } break; //end case 4 (edit) this is my complete edit case .. you commented that section of code in the middle out..but make sure that it looks something similar to this.. if youre missing something then thats probably why it wasnt working.. J
  25. insaini

    NEW! Complete Order Editing Tool!

    Hey Scott, Actually that upgrade procedure was written by me.. if you already have Manual Order Maker 1.4.2 you still have to do a slight modification.. make sure you perform all the edits in the upgrade file also make sure you do all the steps in install.txt starting from step2 .. these are necessary as well..
×