Jump to content
Latest News: (loading..)
jhilgeman

NEW! Complete Order Editing Tool!

Recommended Posts

to implement the Quantity Price Break I think I'm on the right track and first would be to modify the cart file. So comparing the cart file with the modified cart file for quantity price break I have figured out what some of the functions are but here's one I'm not sure what it does.

 

    function count_contents() {  // get total number of items in cart 
       $total_items = 0;
       if (is_array($this->contents)) {
           reset($this->contents);
           while (list($products_id, ) = each($this->contents)) {
               $total_items += $this->get_quantity($products_id);
           }
       }
       return $total_items;
   }

 

Is this function the same as the function add_cart?

Share this post


Link to post
Share on other sites
to implement the Quantity Price Break I think I'm on the right track and first would be to modify the cart file. So comparing the cart file with the modified cart file for quantity price break I have figured out what some of the functions are but here's one I'm not sure what it does.

 

    function count_contents() {  // get total number of items in cart 
       $total_items = 0;
       if (is_array($this->contents)) {
           reset($this->contents);
           while (list($products_id, ) = each($this->contents)) {
               $total_items += $this->get_quantity($products_id);
           }
       }
       return $total_items;
   }

 

Is this function the same as the function add_cart?

 

looking at the code more I have to wonder if the following function isn't more inline with what the add_cart function in /catalog/includes/classes/shopping_cart.php

 

    function get_quantity($products_id) {
     if ($this->contents[$products_id]) {
       return $this->contents[$products_id]['qty'];
     } else {
       return 0;
     }
   }

Share this post


Link to post
Share on other sites

Hi, I just installed this contribution to my website that had been running for about a year now. I installed the latest update 5.0.6. Unfortunatly i cannot see the update button. Can someone help me please?

 

Thanks

Share this post


Link to post
Share on other sites
Hi, I just installed this contribution to my website that had been running for about a year now. I installed the latest update 5.0.6. Unfortunatly i cannot see the update button. Can someone help me please?

 

Thanks

 

 

Ok i arranged thanks great contrib

Share this post


Link to post
Share on other sites

Instead of updating when I move my cursor away from the text i've changed, it gets stuck in an endless loop of asking me for my admin password and I can't get it to do anything.

 

Also, some of the items I have in my order total list have html in them, and the order total box really hates that. The code isn't showing up inside editable text boxes, its showing outside.

Share this post


Link to post
Share on other sites

Is there any version of this that works with the gift voucher / credit class mod? Whenever I update an order that has a discount on it, the discount gets turned into a positive.

Share this post


Link to post
Share on other sites

I'm using the KGT Discount Coupon addon, which as been mentioned here before. I'm having a problem, the order editor isnt calculating the taxes properly.

 

Order Editor's tax formula:

Subtotal * TaxPercentage

 

Needed:

(Subtotal - DiscountCouponAmount) * TaxPercentage

 

Any idea how I can do this? I'm kinda new to php and struggling to figure out how to do this.

Share this post


Link to post
Share on other sites

I had a question about this contribution. Does it let you send some sort of notice to the customer to pay a pending order?

 

What I want to do is be able to edit a pending order, then send something that allows the customer to pay for the pending orders new price.

 

Does this module or a different module do that ?

 

Thanks

Share this post


Link to post
Share on other sites

Problem...

 

When i login as a different admin user without full access rights, i cannot edit the order, firefox says:-

 

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

 

And the address in the bar reads:-

 

http://**********.co.uk/catalog/admin/login.php?%2Fcatalog%2Fadmin%2Findex.php%3F%252Fcatalog%252Fadmin%252Findex.php%253F%25252Fcatalog%25252Fadmin%25252Findex.php%25253F%2525252Fcatalog%2525252Fadmin%2525252Findex.php%2525253F%252525252Fcatalog%252525252Fadmin%252525252Findex.php%252525253F%25252525252Fcatalog%25252525252Fadmin%25252525252Findex.php%25252525253F%2525252525252Fcatalog%2525252525252Fadmin%2525252525252Findex.php%2525252525253F%252525252525252Fcatalog%252525252525252Fadmin%252525252525252Findex.php%252525252525253F%25252525252525252Fcatalog%25252525252525252Fadmin%25252525252525252Findex.php%25252525252525253F%2525252525252525252Fcatalog%2525252525252525252Fadmin%2525252525252525252Findex.php%2525252525252525253F%252525252525252525252Fcatalog%252525252525252525252Fadmin%252525252525252525252Findex.php%252525252525252525253F%25252525252525252525252Fcatalog%25252525252525252525252Fadmin%25252525252525252525252Findex.php%25252525252525252525253F%2525252525252525252525252Fcatalog%2525252525252525252525252Fadmin%2525252525252525252525252Findex.php%2525252525252525252525253F%252525252525252525252525252Fcatalog%252525252525252525252525252Fadmin%252525252525252525252525252Findex.php%252525252525252525252525253F%25252525252525252525252525252Fcatalog%25252525252525252525252525252Fadmin%25252525252525252525252525252Findex.php%25252525252525252525252525253F%2525252525252525252525252525252Fcatalog%2525252525252525252525252525252Fadmin%2525252525252525252525252525252Findex.php%2525252525252525252525252525253F%252525252525252525252525252525252Fcatalog%252525252525252525252525252525252Fadmin%252525252525252525252525252525252Findex.php%252525252525252525252525252525253F%25252525252525252525252525252525252Fcatalog%25252525252525252525252525252525252Fadmin%25252525252525252525252525252525252Findex.php%25252525252525252525252525252525253F%2525252525252525252525252525252525252Fcatalog%2525252525252525252525252525252525252Fadmin%2525252525252525252525252525252525252Findex.php%2525252525252525252525252525252525253F%252525252525252525252525252525252525252Fcatalog%252525252525252525252525252525252525252Fadmin%252525252525252525252525252525252525252Findex.php%252525252525252525252525252525252525253FoID%252525252525252525252525252525252525253D2

 

 

 

i need it to work so office staff can edit orders without giving them full access to things they could tinker with and muddle up... where did i go wrong??

 

Claire :)

Share this post


Link to post
Share on other sites

Super Download Shop v1.0

for osCommerce 2.2 MS2 Update 060817 or later

 

Super Download Shop contribution is an enhancement of the osCommerce download module and download file management, including following features:

Secure download for pending orders based on DownLoads Controller v5.3 by Linda McGrath which was the best solution to secure downloads. Without similar control, customers could get their downloads before they actually pay.

Group files download per product which enable download shops to offer multiple files in a single product. With this ability, shop owners can:

Break a large download file into a group of files, to prevent problems like insufficient resource, time out errors...etc.

Bundle multiple downloads in one package to increase sells.

Store download files in sub folders under the download directory to improve the file management.

Built-in superior file management interface in admin panel.

Share this post


Link to post
Share on other sites

In ver 5.0.3 was this fixed.

-Fixed the shipping tax bug (shipping tax added twice to the order total on sites with Display Price with Tax set to 'true') as pointed out by EuroTimmy in the support thread

However with some Swedish models of shipping seams it still be there.

I did add a line after : if (!isset($shipping_quotes[$i]['tax'])) $shipping_quotes[$i]['tax'] = 0;

to solve the problem temporary.

$shipping_quotes[$i]['tax'] = 0;

 

This in both order_edit and order_edit_ajax.

At least on more in Sweden have the same problem with 5.0.6

Anyone else?

//Mattias

Share this post


Link to post
Share on other sites

Sorry for the double post. I asked this question in general conrtibutions as a new topic, with no help.

 

Please, someone help me with code.

 

I have a very heavily modified store. I am almost done installing this contribution. But I am stuck on admin/orders.php.

 

I have the following contributions added to my store that also changed the admin/orders.php file, so I am no sure how to incorporate this one with the others. (Email HTML order link, FEC 3.2, PrintOrder with store logo, usps labels)

 

The instructions say to replace line 321 with the following:

 

<td colspan="2" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS_EDIT, 'oID=' . $_GET['oID']) . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $_GET['oID']) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $_GET['oID']) . '" TARGET="_blank">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a> '; ?></td>

 

mine shows at line 359

<td colspan="2" align="right"><?php echo '<a href="java script:popupWindow(\'' . (HTTP_SERVER . DIR_WS_ADMIN . FILENAME_ORDERS_INVOICE) . '?' . (tep_get_all_get_params(array('oID')) . 'oID=' . $HTTP_GET_VARS['oID']) . '\')">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a><a href="java script:popupWindow(\'' . (HTTP_SERVER . DIR_WS_ADMIN . FILENAME_ORDERS_PACKINGSLIP) . '?' . (tep_get_all_get_params(array('oID')) . 'oID=' . $HTTP_GET_VARS['oID']) . '\')">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_USPS_SHIP, 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_labelshipping.gif', IMAGE_ORDERS_USPS_SHIP) .'</a><a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>

 

And also, instructions say to replace line 410 with the following:

 

$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . tep_image_button('button_details.gif', IMAGE_DETAILS) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');

$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_EDIT, 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');

 

Mine shows the following at line 449

$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');

$contents[] = array('align' => 'center', 'text' => '<a href="java script:popupWindow(\'' . (HTTP_SERVER . DIR_WS_ADMIN . FILENAME_ORDERS_INVOICE) . '?' . (tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '\')">' . tep_image_button('button_invoice.gif', IMAGE_ORDERs_INVOICE) . '</a><a href="java script:popupWindow(\'' . (HTTP_SERVER . DIR_WS_ADMIN . FILENAME_ORDERS_PACKINGSLIP) . '?' . (tep_get_all_get_params(array('oID')) . 'oID=' . $oInfo->orders_id) . '\')">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERs_PACKINGSLIP) . '</a>');

 

Thank you in advance for any help.

 

Beth

Share this post


Link to post
Share on other sites
I had a question about this contribution. Does it let you send some sort of notice to the customer to pay a pending order?

 

What I want to do is be able to edit a pending order, then send something that allows the customer to pay for the pending orders new price.

 

Does this module or a different module do that ?

 

Thanks

 

Hi,

 

I didnt recieve a response to the question I posted.

 

This module seems perfect to edit an order that has been placed, but can the customer pay for the orders edited ammount after the order has been edited?

 

For example I edit the order, send them an email with the edited order, and they can pay for it?

 

Thanks

Share this post


Link to post
Share on other sites
I had a question about this contribution. Does it let you send some sort of notice to the customer to pay a pending order?

 

What I want to do is be able to edit a pending order, then send something that allows the customer to pay for the pending orders new price.

 

Does this module or a different module do that ?

 

Thanks

 

Hi,

 

I didnt recieve a response to the question I posted.

 

This module seems perfect to edit an order that has been placed, but can the customer pay for the orders edited ammount after the order has been edited?

 

For example I edit the order, send them an email with the edited order, and they can pay for it?

 

Thanks

Share this post


Link to post
Share on other sites

I've read the last 25 pages of this thread but I can't seem to find if this contribution will work with the Ian's GV add-on?

 

If you add a manual discount, i.e. a new order_total row with a negative value, how is the tax affected? What tax class will be used for the discount amount?

 

TIA,

Fred

Edited by Fred

Share this post


Link to post
Share on other sites

Hi,

 

I haven't gotten a response yet. My questions is does this module allow you to edit the order, then send a notification to the customer showing the changes and letting the customer click on a link where they can pay for the orders new price?

 

I want to make sure on this before installing this contribution on my oscommerce installation.

 

Thanks!

Share this post


Link to post
Share on other sites

I answer my own question in order to help anyone else with the same question. If you add a discount (a negative) order total value the tax calculation will not be correct. At lest in my case with "show prices incl tax" but there is a workaround. You do get the correct tax calculation if you add a "MISC" product to the order. You can then alter the text, model and tax for your discount to fit your need.

 

Hope this will help somebody out there ...

 

/Fred

 

I've read the last 25 pages of this thread but I can't seem to find if this contribution will work with the Ian's GV add-on?

 

If you add a manual discount, i.e. a new order_total row with a negative value, how is the tax affected? What tax class will be used for the discount amount?

 

TIA,

Fred

Share this post


Link to post
Share on other sites

Shipping is not recalculating on large orders with many items.

It starts to recalulate when the order returns the shiiping and total box are missing.

 

 

It works fine on smaller orders.

 

Any ideas most welcome.

Share this post


Link to post
Share on other sites
Hi,

 

I haven't gotten a response yet. My questions is does this module allow you to edit the order, then send a notification to the customer showing the changes and letting the customer click on a link where they can pay for the orders new price?

 

I want to make sure on this before installing this contribution on my oscommerce installation.

 

Thanks!

 

Can no one answer my question? Anyone that uses this module should be able to answer this question?

 

Thanks

Share this post


Link to post
Share on other sites
Hi,

 

I haven't gotten a response yet. My questions is does this module allow you to edit the order, then send a notification to the customer showing the changes

yes

 

and letting the customer click on a link where they can pay for the orders new price?

no, no special link unless you code it


-Dave

Share this post


Link to post
Share on other sites
Hi DJ, and thankyou for a great contribution! I'm in the middle of testing it on my dummy store and have encountered this problem as well. All I've done here is removed an item from the order. Here's a before and after screenshot.

 

Now you see it:

now_you_see_it_reduced.JPG

 

Now you don't:

now_you_dont_reduced.JPG

 

The shipping quote part disappears, as do the subtotals and the ability to add a product. I know sweet bugger-all about AJAX, so have no idea where to start troubleshooting.

 

Cheers,

Max.

 

I am having this same problem. It happens with the shipping update and on long orders when a product quantity changes

 

I would really appreciate any help you could give me.

 

Cheers

Kes

Share this post


Link to post
Share on other sites

I'm facing the same problem. The problems seems indeed that no tax class is admitted to the manual discounts or other custom fields (As indicated by Fred).

Does anybody know where in the code the tax class can be added?

 

I answer my own question in order to help anyone else with the same question. If you add a discount (a negative) order total value the tax calculation will not be correct. At lest in my case with "show prices incl tax" but there is a workaround. You do get the correct tax calculation if you add a "MISC" product to the order. You can then alter the text, model and tax for your discount to fit your need.

 

Hope this will help somebody out there ...

 

/Fred

Share this post


Link to post
Share on other sites

Hello all,

 

I just intalled this great module (order_editor_5_0_6), but have folowing bug:

When I add product to order in selection popup window I have categories, names in my lithuanian language, but after I submit "add to order" - on order is english product name.

It's ok with english language on admin - all in english on popup selection, on order.

I have 2 languages on my store.

 

How resolve it?

I know, I can manualy rename product, but...


Kestas

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×