Re: [SOLVED] Customer group discount when create order from admin panel does not take effect
This does seem to work on 3.0.4.0 and I can edit existing orders and apply customer group discounts.
Here is an OCMOD file.
- General Support
- [SOLVED] Customer group discount when create order from admin panel does not take effect
- Wed Nov 27, 2024 7:27 am
- Replies 10
- Views 4174
Re: How to show the number of items sold
Corrected OCMod file
Jump to post- Wed Mar 13, 2024 6:00 am
- Replies 9
- Views 10720
Re: How to show the number of items sold
Actually.... it does not work perfectly :-) If you've not sold any of a product, then you'll get an entry in your error log as fredJ says. So I've changed my code to: $sold_count_query = $this->db->query("SELECT SUM(op.quantity) AS quantity FROM " . DB_PREFIX . "order_product op LEFT ...
Jump to post- Wed Mar 13, 2024 5:59 am
- Replies 9
- Views 10720
Re: How to show the number of items sold
The query you could use on the product page is $data['sold_count'] = $this->db->query("SELECT SUM(op.quantity) AS quantity FROM " . DB_PREFIX . "order_product op LEFT JOIN `" . DB_PREFIX . "order` o ON (op.order_id = o.order_id) WHERE o.order_status_id > '0' AND op.product_...
Jump to post- Wed Feb 07, 2024 2:04 am
- Replies 9
- Views 10720
Re: 2.1.0.2 - Warning: Shipping method required! - Account o
In Chrome the issue is not resolved, even with the vqmod cache fix.
I don't seem to be able to recreate it in 2.2.0.0 (a test shop I have running). Has anything related to this been changed between 2.1 and 2.2?
Thanks,
Gary
- Tue Apr 19, 2016 5:27 pm
- Replies 9
- Views 2369
Re: 2.1.0.2 - Warning: Shipping method required! - Account o
Burt65 - don't use the back button. The problem occurs if you get down to the payment method screen and then click on delivery address section above and work down again. Then click on billing and work down again. Keep doing this and eventually you will reproduce the problem. I found it when logged i...
Jump to post- Tue Apr 19, 2016 4:02 pm
- Replies 9
- Views 2369
Re: 2.1.0.2 - Warning: Shipping method required! - Account o
Hi Stefan, I seem to be seeing this issue as well with OC 2.1.0.1. Happens on iPhone and in Chrome (at least). I can recreate it if I set different addresses for shipping and billing and then go backwards and forwards a few times on the checkout page. Eventually it happens. I've had a quick test wit...
Jump to post- Tue Apr 19, 2016 7:01 am
- Replies 9
- Views 2369
Re: What is causing this error?
They have clearly configured the server to reject email that could be sent by spammers. It is very common for spammers to send emails with a different from address. It is far far less common for "normal" users to change the from address.
Gary
- Thu Dec 03, 2015 7:33 am
- Replies 8
- Views 2570
Re: What is causing this error?
You'll either need to change the opencart code to set the from email address to be one that the mail server will accept.
Or
You'll have to use a different mail server that is less fussy about the "from" address.
Gary
- Thu Dec 03, 2015 7:06 am
- Replies 8
- Views 2570
Re: What is causing this error?
Emails sent via the contact form are sent with the from address set to the customer's address. Your mail server may be complaining that the "from" address does not match the email address of the account the server is associated with. Try putting in an email address that is @the domain the ...
Jump to post- Thu Dec 03, 2015 6:40 am
- Replies 8
- Views 2570
Re: What is causing this error?
I've just noticed this problem.
The $reply code was empty when I reproduced the issue, so I increased the timeout from 5 seconds to 30 seconds (to match what I've got set on my other opencart shops) and I think the problem has gone away.
More testing will confirm.....
- Sat Nov 28, 2015 6:43 pm
- Replies 8
- Views 2570
Re: Error when updating an order status
Solved. It seems Chrome reports a different error to other browsers. In firefox the error is "SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data" That lead me to find the solution here: http://forum.opencart.com/viewtopic.php?f=181&t=133490#p542725 Gary
Jump to post- Mon Jun 08, 2015 12:31 am
- Replies 4
- Views 3136
Re: Error when updating an order status
Ah... I see how it is working... javascript is trying to parse php's error and failing. That suggests this if statement in order.php: if (isset($this->session->data['cookie']) && isset($this->request->get['api'])) { is returning false, and it's going via a path that does not set the $json va...
Jump to post- Sun Jun 07, 2015 5:34 am
- Replies 4
- Views 3136
Re: Error when updating an order status
Yes - VQmod installed.
Line 2221 in order.php is:
Code: Select all
$this->response->setOutput($json);
Gary Jump to post
- Sun Jun 07, 2015 5:23 am
- Replies 4
- Views 3136
[SOLVED] Error when updating an order status
I've just installed OC 2.0.2.0 and then upgraded it to 2.0.3.1. When I try and update an order status I get a javascript popup which basically says "Syntax Error: Unexpected token < in admin/controller/sale/order.php line 2221. Can anyone give me any pointers on what the problem could be? Thank...
Jump to post- Sun Jun 07, 2015 4:50 am
- Replies 4
- Views 3136
Re: Exploit allowing creation of random folders in httpdocs?
The folders appeared in the root of the server. On one server a modified version of Opencart 1.4.5 is installed in /shop. In the root there is some simple custom stuff. On the other server it's Unmodified Opencart 1.4.9.4 in the root with Global Mega Options plugin. It's odd, as I run many domains w...
Jump to post- Tue May 03, 2011 7:55 pm
- Replies 3
- Views 796
Exploit allowing creation of random folders in httpdocs?
Hi, I'm aware of the domPDF and fckeditor exploits and both my opencart websites have those file removed. However I've recently discovered a random folder on both my both my websites that use opencart (1.4.5 on one and 1.4.9.4 on the other). The folder seemed to be a modified version of my site that...
Jump to post- Mon May 02, 2011 11:59 pm
- Replies 3
- Views 796
eWay UK
Can someone give me advice on eWay UK payment solutions. I'm in the process of setting up an eWay account and I've just been trying to install their Opencart payment method (http://www.eway.co.uk/developer/shopping-carts/integrated-carts/opencart-integrated-payment-service-provider.aspx). The proble...
Jump to post- Thu Sep 23, 2010 3:21 am
- Replies 0
- Views 731
Re: Logging In to Admin - 406 Not Acceptable
Hi, I've just heard from my colleague that she could log in and process the order with no problem. Therefore it seems to be a disagreement between the webserver config and my Spanish 3G dongle internet connection. The reason I was concerned is because I can log in to my other shop (OC 1.4.5) with no...
Jump to post- Wed Apr 28, 2010 6:57 pm
- Replies 2
- Views 908
[Solved]Logging In to Admin - 406 Not Acceptable
Any ideas why I get "406 Not Acceptable" when I try to log in to the admin on my shop? It worked fine a few days ago, however last night I received an order and now I can't login. You can see for yourself by using some random login details at http://www.repair-ghds.co.uk/admin/ I recently ...
Jump to post- Wed Apr 28, 2010 3:55 pm
- Replies 2
- Views 908