♥SCH_001 Posted April 22, 2020 Share Posted April 22, 2020 Yes same tax class I only have one setup And only 1 module installed Quote Link to comment Share on other sites More sharing options...
♥SCH_001 Posted April 22, 2020 Share Posted April 22, 2020 @BrockleyJohn Please disregard this, I deleted the test product after the sale which I thing screwed it up Leave this with me I think all is good Quote Link to comment Share on other sites More sharing options...
♥SCH_001 Posted April 22, 2020 Share Posted April 22, 2020 @BrockleyJohn Ok now I have found the issue that a customer advised me about It is to do with the freight options if I select them from the Shipping Quotes: section all is good But if I manually change the freight price then the GST does not get updated Quote Link to comment Share on other sites More sharing options...
♥BrockleyJohn Posted April 23, 2020 Share Posted April 23, 2020 @SCH_001 This appears to be a bug at all versions - perhaps it never worked! I'll have a look into it. hungryfrank 1 Quote Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
♥SCH_001 Posted April 23, 2020 Share Posted April 23, 2020 Thank you @BrockleyJohn Quote Link to comment Share on other sites More sharing options...
rupruprup Posted May 3, 2020 Share Posted May 3, 2020 @BrockleyJohn did you have a look at 1.0.5.9. what is to change in the orders_edit_orders.php hook ? Quote Link to comment Share on other sites More sharing options...
♥BrockleyJohn Posted May 3, 2020 Share Posted May 3, 2020 8 hours ago, rupruprup said: @BrockleyJohn did you have a look at 1.0.5.9. what is to change in the orders_edit_orders.php hook ? Here is a version of includes/modules/hooks/admin/orders_edit_order.php that works on 1.0.5.9 as well, but you are also going to have to deal with includes/database.php not being there - either add an include into edit_orders.php and edit_orders_ajax.php or go through and edit all the sql statements. orders_edit_order.php rupruprup 1 Quote Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
rupruprup Posted May 3, 2020 Share Posted May 3, 2020 thank you @john I changed the script to <script> $('.align-self-center').prepend('$button'); $script </script> I cleaned both files edit_orders.php and edit_orders_ajax.php a few weeks ago and it works fine Quote Link to comment Share on other sites More sharing options...
♥BrockleyJohn Posted May 3, 2020 Share Posted May 3, 2020 4 minutes ago, rupruprup said: thank you @john I changed the script to <script> $('.align-self-center').prepend('$button'); $script </script> I cleaned both files edit_orders.php and edit_orders_ajax.php a few weeks ago and it works fine That might work now but there's a good chance you'll get buttons popping up all over the place at some point in the future - it will add them to the start of every html element with the class align-self-center Quote Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
rupruprup Posted May 3, 2020 Share Posted May 3, 2020 yes, I used your solution now. Testing around with your file helped me a lot to learn understanding how this hook works Quote Link to comment Share on other sites More sharing options...
radhavallabh Posted May 5, 2020 Share Posted May 5, 2020 Hi; Thank you for this wonderful addon can you please help me with this error- I am using 1.0.5.9 Phoenix Notice: Undefined index: methods in /xxxxxx/admin/edit_orders.php on line 1857 Warning: sizeof(): Parameter must be an array or an object that implements Countable in /xxxxxx/adminedit_orders.php on line 1857 Awaiting your response; Thank you in advance Regds./ radhavallabh Quote Link to comment Share on other sites More sharing options...
♥BrockleyJohn Posted May 5, 2020 Share Posted May 5, 2020 @radhavallabh it needs a lot of changes to get rid of warnings and notices - you should turn them off by changing admin/includes/application_top.php error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED); It's my hope to get a lot more of them eliminated by the next release which will be to go with 1.0.6.0 radhavallabh 1 Quote Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
radhavallabh Posted May 6, 2020 Share Posted May 6, 2020 11 hours ago, BrockleyJohn said: @radhavallabh it needs a lot of changes to get rid of warnings and notices - you should turn them off by changing admin/includes/application_top.php error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED); It's my hope to get a lot more of them eliminated by the next release which will be to go with 1.0.6.0 Eagerly await the next release dear 👍👍😊 Regds./ radhavallabh Quote Link to comment Share on other sites More sharing options...
Supertex Posted May 21, 2020 Share Posted May 21, 2020 @djmonkey1 Seems like I would be able to find more information about using this mod in a v2.3.1 store with SPPC and Quantity Discounts, but I'm not having great luck. The Quantity Discounts mod works great on the front side. In fact, I duplicated it, using one version for Category Discounts, and the other for Line Item discounts. This way, both or either can be toggled on a customer group or customer id basis. Again...works -great- as a visiting customer. The problem comes when I try to edit an order. Let's say I have an order for which neither discount (line or category) is toggled on, for either account or customer group. If I edit the order and add enough product that the criteria for the discount is met, the discount applies itself. Or...if they'd purchased enough to meet one or all of the criteria, once I open it in the editor and change anything, the discounts apply. I can't even adjust shipping without having this happen. I'm at a loss. Quote osC v2.3.1 MySQL v8.0.32 PHP v5.6.40 Installed addons: . Attribute Sets Plus .. Create Account & Manual Order Maker .. Customer Testimonials 2.3.4 .. Customer Blacklist .. Dynamic Info Pages .. FedEx Web Svcs v9 .. Filtered Sales Report .. Generic Box .. Google XML Sitemap SEO .. Maximum Order Value .. Modular Front Page .. Monthly Sales & Tax Report .. Multiple Products Manager .. Must Accept Terms & Conditions .. Order Editior .. PDF Customer Invoice .. Price in Cart Only .. Product Sort/Order .. Product Sort in Cart .. Quantity Discounts .. Restrict Delivery Methods .. SEO Header Tags - Reloaded .. Separate Pricing Per Customer .. Simpler Admin Session Length Control .. Sitemap SEO .. Show Free Ship + Modules .. Specials by Category for SPPC .. Store Mode (open|closed|maintenance) .. Store Pickup Shipping .. Theme Switcher .. Ultimate SEO URLs 5 Pro .. UPS XML Rates & Svcs 1.4 .. USPS methods 7.3.1 .. Who's Online Dashboard . Fixes: Add to cart -> 'product not found' : FIX Login issues with IE 11 : FIX Tools: Incredibly Handy: osC Xref Link to comment Share on other sites More sharing options...
TomB01 Posted May 29, 2020 Share Posted May 29, 2020 I discovered recently that my "Edit" button has disappeared from my Order Details view in Admin, where the order's Summary, Products, and Status History are displayed. I checked by toggling the Edit button feature in the Order Editor configuration and the Order Editor is functioning correctly. I normally do not like to have that Edit button in the orders list view go directly to an order editing screen, but to the orders detail screen, instead. So, I typically have that feature disabled in the configuration. However, I get no "Edit" button at all in the order details view. I first noticed this because the Details box has the following characters displayed erroneously at the bottom left of each Summary, Products, and Status History box: " '); " I traced these three characters to this code in the HTML for orders.php when displaying the order details in Admin: Quote <script>$('h1.pageHeading + div').prepend('<span class="tdbLink"><a id="tdb5" href="https://www.mystore/catalog/admin/edit_orders.php?oID=3293" target="_blank">Edit</a></span><script>$("#tdb5").button({icons:{primary:"ui-icon-document"}}).addClass("ui-priority-secondary").parent().removeClass("tdbLink");</script>'); Sure enough, what little I can interpret is that string of script code controls the appearance of the "Edit" button in the order details view. I suspect those ending characters are invalidating the script code. I believe that script should end in only " </script> " instead of " </script>'); " Can anyone direct me to which file that script is developed, so that I can try to find the error? I've checked orders.php and edit_orders.php and it doesn't appear that any of that code is included in those files. My orders.php file was somehow modded, because I have it archived under a "FixEditButton" folder. Unfortunately, it doesn't appear that I commented the code and I can't remember what was done. 😕 Quote Link to comment Share on other sites More sharing options...
♥BrockleyJohn Posted May 29, 2020 Share Posted May 29, 2020 It comes from a file you're unlikely to have changed: catalog/includes/modules/hooks/admin/orders_edit_order.php What version of the shop are you running? It occurs to me I've not tested the latest version I posted to the thread on bs3 shops. Quote Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
♥BrockleyJohn Posted May 29, 2020 Share Posted May 29, 2020 If you view the source of the page where the script has been included, it looks likely that there is something extra in the string coming out of the draw button function. Quote Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
TomB01 Posted May 29, 2020 Share Posted May 29, 2020 Thanks for replying, John. I'm running Phoenix 1.0.5.0. You actually gave or told me how to modify the orders_edit_order.php file back on 12/24. I think you uploaded it all in your 1.2.8 version. Note that your later versions after Denkster still can't be found on the Apps Marketplace. I went searching earlier this morning and couldn't find anything. This worked at the time, when I installed this from you: Somewhere along the way to 1.0.5.0 and Supporters Code updates, I lost the Edit button again, but don't know when - or obviously, how. Quote Link to comment Share on other sites More sharing options...
ArtcoInc Posted June 10, 2020 Share Posted June 10, 2020 @BrockleyJohn (on Phoenix 1.0.1.4 (please don't judge)) I have Order Editor v1.2.6 installed and working. I also just installed Create Account and Order Maker for 0sC 2.3.1 v3.0 (yes, this is an old add-on, and required a lot of updating to get it to work with Phoenix). Create Account and Order Maker requires Order Editor in order to work. 1) I have customers with more than one address (one for ship to, one for bill to, etc). When a customer places an order (via phone or email), I enter the order through Order Maker, which drops me into Order Editor. Order Editor pulls in the default address into all three address blocks. What would it take to have a drop-down selector for each of the address blocks, so I could select one saved address for billing, and another one for shipping? 2) You added a hook into Order Editor, I suppose to avoid core changes (my core is so hacked up, it could probably qualify as original code!). However, when I hacked the buttons in /admin/orders.php (I moved the 'invoice' button to the first place, moving the 'edit' button down to the second row), the hook over-rode my 'Invoice' button, sending me to 'edit_orders.php' instead. When I commented out the hook, the problem when away. Any thoughts as to why that happened? TIA Malcolm Quote Link to comment Share on other sites More sharing options...
♥BrockleyJohn Posted June 11, 2020 Share Posted June 11, 2020 @ArtcoInc I guess you're talking about the buttons on the selected order in the list view. IIRC it just overrides the link of the first button - or the first yellow one, or something along those lines. There's a config setting for this which you can turn off instead of clobbering the hook. If you want it to pick a different button we'd need to work out a different jquery selector - if you copy the source code of the buttons section from your browser I can figure what it could be. I believe order editor does nothing with customers, addresses and so on, it simply manipulates the fields on an existing order and allows you to change the order products and totals. The place to do what you're asking would be the Order Maker addon which must be where the default address is getting pulled into all three when the order is created. ArtcoInc 1 Quote Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
ArtcoInc Posted June 11, 2020 Share Posted June 11, 2020 @BrockleyJohn Just for some clarification ... 1) The Order Maker add-on has the choice of adding a new customer, or selecting an existing customer. If I'm entering a new order for an existing customer, Order Maker fills in the default address into all three address blocks, and dumps me into Order Editor. Here, I get to add the products, shipping, comments, etc. What I am saying is, if an existing customer has more than one address in their address book, it would be useful to be able to have a drop-down selector for each of the address blocks. 2) In the stock /admin/orders.php screen, when you display the orders, there are 4 buttons on the right hand side of the screen. If you click on the 'Edit' button, it displays the order, but there is no way to actually edit it. After I installed Order Editor, the 'Edit' button takes you to /admin/edit_orders.php (the Order Editor screen). This is where I think you used the hook. This worked fine, until I hacked up the /admin/orders.php file, to move the buttons around. Since I moved the 'Invoice' button first, the Hook was redirecting it to /admin/edit_orders.php, instead of to /admin/invoice.php. When I commented out the Hook, the link worked fine. Like I said, I've already hacked up the core quite a bit. It just took me by surprise trying to figure out why the link wasn't working. Malcolm Quote Link to comment Share on other sites More sharing options...
yahalimu Posted June 11, 2020 Share Posted June 11, 2020 Hi, Probably not using the most up to date version, but on Phoenix 1.0.5.0 if there is a discount value (i.e. using a discount code addon) it doesn't seem to handle the tax/order total values correctly when re-calculating. Works perfectly if not. Might be worth catering for this for any future update. Quote Link to comment Share on other sites More sharing options...
vmn Posted November 22, 2020 Share Posted November 22, 2020 I think managed to port my OSC 2.3.4.1 BS heavily modified order editor to Phoenix 1.0.7.9. I haven't tested it thoroughly yet. At least taxes are correctly calculated. I only use the following modified hooks from this addon version 1.2.8. The only change to core is to add the 'orderList' hook call to admin/orders.php, as instructed in the readme. *********** includes/hooks/admin/siteWide/listOrders.php <?php /* $Id$ add edit orders to admin / orders.php author: John Ferguson @BrockleyJohn oscommerce@sewebsites.net osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2019 SE Websites Released under the MITc License without warranty express or implied Modified by vmn for 1.0.7.9 */ class hook_admin_siteWide_listOrders { function listen_injectSiteEnd() { global $PHP_SELF, $oInfo; if (basename($PHP_SELF) == 'orders.php') { $comment = '<!-- ' .__METHOD__ . ' -->'; if (isset($oInfo) && is_object($oInfo)) { $link = tep_href_link('edit_orders.php', 'oID=' . $oInfo->orders_id); return <<<EOD $comment <script> $(function() { $('a.btn-warning').attr('href','$link'); }); </script> $comment EOD; } } } } *********** includes/modules/ hooks/admin/orders_edit_order.php <?php /* $Id$ add edit orders to admin / orders.php author: John Ferguson @BrockleyJohn john@sewebsites.net osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2018 osCommerce Released under the GNU General Public License Modified by vmn for 1.0.7.9 */ class hook_admin_orders_edit_orders { function listen_orderTab() { $comment = '<!-- ' .__METHOD__ . ' -->'; $button = tep_draw_bootstrap_button(IMAGE_EDIT, 'fas fa-cogs', tep_href_link('edit_orders.php', tep_get_all_get_params(['oID', 'action']) . 'oID=' . $_GET['oID'] . '&action=edit'), null, null, 'btn-warning mr-2'); $output = <<<EOD $comment <script> $('a.btn-info:first').before('$button'); </script> $comment EOD; return $output; } } Quote Link to comment Share on other sites More sharing options...
♥BrockleyJohn Posted November 23, 2020 Share Posted November 23, 2020 There are no core code changes required on any Phoenix version since 1.0.4.0 Quote Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
♥SCH_001 Posted November 24, 2020 Share Posted November 24, 2020 @vmn @BrockleyJohn Hi Veli-Matti, is it an easy fix to get the taxes calculated correctly. For me this is if I change the shipping value manually it does not calculate the tax correctly after that change. Not sure of the version I am running but it won't be the latest as my shop is osCommerce Online Merchant v2.3.4.1 CE Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.