At file admin/controller/common/header.php
The line:
Code: Select all
$this->data['text_report_product_purchased'] = $this->language->get('text_report_product_purchased');
Hilde
Code: Select all
$this->data['text_report_product_purchased'] = $this->language->get('text_report_product_purchased');
Commercial Contributions:Bulk Specials| Bulk Update Prices|Search Tyre Pro
Free Contributions: Youtube video (oc 1.5.x) | Search History Report (oc 1.5.x) | Product Filter by Category (oc 1.5.x)|Youtube Popup
More Free & commercial mods: www.fpress.com
Code: Select all
public function createInvoiceNo($order_id) {
$order_info = $this->getOrder($this->request->get['order_id']);
if ($order_info && !$order_info['invoice_no']) {
$query = $this->db->query("SELECT MAX(invoice_no) AS invoice_no FROM `" . DB_PREFIX . "order` WHERE invoice_prefix = '" . $this->db->escape($order_info['invoice_prefix']) . "'");
if ($query->row['invoice_no']) {
$invoice_no = $query->row['invoice_no'] + 1;
} else {
$invoice_no = 1;
}
$this->db->query("UPDATE `" . DB_PREFIX . "order` SET invoice_no = '" . (int)$invoice_no . "', invoice_prefix = '" . $this->db->escape($order_info['invoice_prefix']) . "' WHERE order_id = '" . (int)$order_id . "'");
return $order_info['invoice_prefix'] . $invoice_no;
}
}
fixedgob33 wrote:File: OPENCART-1.5.4\upload\admin\model\sale\order.php
First line should be:Code: Select all
public function createInvoiceNo($order_id) { $order_info = $this->getOrder($this->request->get['order_id']); if ($order_info && !$order_info['invoice_no']) { $query = $this->db->query("SELECT MAX(invoice_no) AS invoice_no FROM `" . DB_PREFIX . "order` WHERE invoice_prefix = '" . $this->db->escape($order_info['invoice_prefix']) . "'"); if ($query->row['invoice_no']) { $invoice_no = $query->row['invoice_no'] + 1; } else { $invoice_no = 1; } $this->db->query("UPDATE `" . DB_PREFIX . "order` SET invoice_no = '" . (int)$invoice_no . "', invoice_prefix = '" . $this->db->escape($order_info['invoice_prefix']) . "' WHERE order_id = '" . (int)$order_id . "'"); return $order_info['invoice_prefix'] . $invoice_no; } }
$order_info = $this->getOrder($order_id);
to use the parameter of the function.
OpenCart®
Project Owner & Developer.
That does work for the category module under settings I see now but I believe that is a bug as the category module has its own setting to enable or disable product counts in the module edit. The enable counts under settings should be for header categories only as that is what it says it is for and has always been that way. The way it is now you either have the counts enabled for both module and header or you don't and that makes the product count enable/disable in the category module edit a useless setting.Daniel wrote:did you enable it under settings?
I had this problem. Link in email brought me to the admin login with a "Invalid token session. Please login again." message.nec2 wrote:I try with new fresh install and problem persist, this is my step :Daniel wrote:admin password reset seems to work fine for me.
- Click forgotten password and fill admin email address.
- Go to admin email inbox
- Click on the reset pass link which opencart sent like :
http://www.thedomain.com/opencart/admin ... 812894801d
This link brought me to normal admin login page, not to new create password page.
Code: Select all
$header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
I know nothing about PHP and SQL, but I still try my best to understand it.
Daniel wrote:you need to remove the change:
'=?UTF-8?B?' . base64_encode($this->sender) . '?='
to
$this->sender
try to find out what your setup is.
apache version, php version, mail server version, os
Code: Select all
$header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
Code: Select all
$header .= 'Reply-To: ' . $this->sender . '<' . $this->from . '>' . $this->newline;
I know nothing about PHP and SQL, but I still try my best to understand it.
Code: Select all
<!--[if lt IE 9]>
<script type="text/javascript">var co = this.co = $.fn.colorbox; var cv; $.fn.colorbox = function(v) { cv = v; return; }; $(document).ready(function() { $.fn.colorbox = co; $('.colorbox').colorbox(cv) });</script>
<![endif]-->
I can confirm that I am able to recreate this problem. The steps I took were with a clean browser (deleted all cookies).Alexisander wrote:i2Paq ... the thing with the :
================
AND, one more bug,
1. sometimes lets say, customer Y makes an order.
Product Qty Price
M 1 6$
N 2 3$
O 3 20$
-----
Total: 29$
2. i do to Edit the order.
3. i add a product, any product any quantity
4. after i add it, all the quantitys DOUBLES and becomes:
Product Qty Price
M 2 12$
N 4 6$
O 6 40$
W G P$
-----
Total: 48$ + P$
I use W G P to simbolise that is any product quantity or price that i add.
================
It is also in 1.5.4.1... Same bug... I have check it now...
It's not random. The double cart quantity only happens if the customer (or the admin logging in as a customer) did not logout.Alexisander wrote:So... the problem with the: double cart quantity IF login as customer. And the problem with editing order and messing up the qtys by doubleing them is radom, not always happening...
But this bugs are really bad. And also if u can... please fix the stock problem: if you add a product or delete a product, or fi you create an order from admin panel, the stocks DO NOT change... Stocks change only if u buy from front page and only if u delete an order from admin.
Thank you guy! With this bugs repaired, opencart should become perfect!
What I meant to say is the order editing problem occurs if the customer logged in and out on a different machine and the same machine as the admin.ADD Creative wrote:I did tests with the admin and customer on different machines and on same machines.
Code: Select all
$this->customer->logout();
Code: Select all
$this->cart->clear();
Code: Select all
$this->customer->login($customer_info['email'], '', true);
Code: Select all
$this->customer->login($customer_info['email'], '', true);
$this->cart->clear();
That worked like a charm !!ADD Creative wrote:Maybe this problem affects IE 8 as well. http://forum.opencart.com/viewtopic.php?f=161&t=61800
As a test try adding the following to your theme's template\common\header.tpl just before </head>.
Code: Select all
<!--[if lt IE 9]> <script type="text/javascript">var co = this.co = $.fn.colorbox; var cv; $.fn.colorbox = function(v) { cv = v; return; }; $(document).ready(function() { $.fn.colorbox = co; $('.colorbox').colorbox(cv) });</script> <![endif]-->
Users browsing this forum: No registered users and 37 guests