Page 3 of 10

Re: OpenCart 1.5.4 Bug Thread

Posted: Fri Sep 21, 2012 10:32 pm
by ADD Creative
While on the subject of catalog\model\checkout\order.php if you are missing the customer's comments from the HTML part of the email sent to the customer, there is a fix here.

https://github.com/opencart/opencart/pull/94/files

This has not made it into the next version of OpenCart so it's a fix you will have to apply yourself.

Re: OpenCart 1.5.4 Bug Thread

Posted: Fri Sep 21, 2012 10:43 pm
by ADD Creative
Alexisander wrote:Also i have found a but with the wishlist... same problem... when log in with customer from account...
I cannot figure it out how it works this bug... but there is... becoz if i log in with some customers from admin i see that they all have same wishlist...

LE: so if i login with a customer that has X items in wishlist, after that every customer i login with has the same X items in wishlist...
In catalog\controller\account\login.php find.

Code: Select all

			$this->customer->logout();
Replace with.

Code: Select all

			$this->customer->logout();
			$this->cart->clear();

			unset($this->session->data['wishlist']);
			unset($this->session->data['shipping_address_id']);
			unset($this->session->data['shipping_country_id']);
			unset($this->session->data['shipping_zone_id']);
			unset($this->session->data['shipping_postcode']);
			unset($this->session->data['shipping_method']);
			unset($this->session->data['shipping_methods']);
			unset($this->session->data['payment_address_id']);
			unset($this->session->data['payment_country_id']);
			unset($this->session->data['payment_zone_id']);
			unset($this->session->data['payment_method']);
			unset($this->session->data['payment_methods']);
			unset($this->session->data['comment']);
			unset($this->session->data['order_id']);
			unset($this->session->data['coupon']);
			unset($this->session->data['reward']);
			unset($this->session->data['voucher']);
			unset($this->session->data['vouchers']);

Re: OpenCart 1.5.4 Bug Thread

Posted: Fri Sep 21, 2012 11:27 pm
by Alexisander
Thank you,

Tell me plz, the problem with the stock, can be fix? The stocks are killing me, that is a big BUG...

Re: OpenCart 1.5.4 Bug Thread

Posted: Fri Sep 21, 2012 11:34 pm
by ADD Creative
What problem with the stock?

Re: OpenCart 1.5.4 Bug Thread

Posted: Sat Sep 22, 2012 12:00 am
by Alexisander
If i create an order from admin panel, when i add products and save the order, the products quantitys do not subtract...

If i edit an existing order and i delete a product or ad a product or change the quantity of a product, again the products quantitys do not subtract (if i add) or rise (if i delete).

A lot of customers call to change the orders, or some of the products we dont have in stock in the warehouse anymore so we need to modify the orders and add equavalent products...


So what i wanna say is that when u work ad the orders from admin the stocks do not change...

PS: some of my products have options and every option has its stock, so that must also subtract or rise...


Thank you, that is the last bug from opencart...

Belive me that this... minus, is killing me and us with big shops and lots of customers...

Re: OpenCart 1.5.4 Bug Thread

Posted: Sat Sep 22, 2012 10:56 pm
by ocismydj
I had the same problem in 1.5.3.

Open extension module: welcome. Add 2 modules. Fill them, and push save . So far, so good. Open welcome extension again, and you will see the two welcome modules added. Push the remove icon of module 2, and it will visually remove. Push the save button, and nothing happens. Not even a error message is shown. Push the save button again, and the changes will be saved.

I have the same problem in other extensions that can be bought. It has something to do with WYSIWYG fields that can be added and removed via Ajax.

Re: OpenCart 1.5.4 Bug Thread

Posted: Fri Sep 28, 2012 4:27 pm
by ADD Creative
philbydevil wrote:France, Metropolitan doesn't seem to have the correct country code set in order to calculate shipping:
Picture 21.png
I'm using this Australia Post extension:
http://forum.opencart.com/viewtopic.php?f=119&t=5638

But I have seen other people having a similar problem related to different extensions:
http://forum.opencart.com/viewtopic.php ... 06#p145151
http://forum.opencart.com/viewtopic.php?f=113&t=26257
This has been fixed in GitHub. To fix in your install in admin got to System -> Localisation -> Countries. Edit France Metropolitan and changed the country codes to FR and FRA. Then disable France.

Re: OpenCart 1.5.4 Bug Thread

Posted: Sun Sep 30, 2012 11:45 pm
by i2Paq
I just noticed that the Invoice has no Invoice date when generating and printing the Invoice.
This means that in a lot of country's this Invoice is NOT valid.

It does have the rest of the needed fields like Order date, Shipping and Payment -method.

This is a bug that needs to be fixt a.s.a.p.

Re: OpenCart 1.5.4 Bug Thread [FIXED]

Posted: Thu Oct 04, 2012 10:43 am
by mygameauctions
When I try to run a report for coupons that have been used it says No Results - however my customers are using the coupons successfully. I have tried filtering by date but when i do that it just redirects to the sales page. Are there any fixes for this?

UPDATE: PLEASE GO TO http://forum.opencart.com/viewtopic.php?f=161&t=65018

That will fix the issue

Re: OpenCart 1.5.4 Bug Thread

Posted: Thu Oct 04, 2012 3:18 pm
by jakuba

Re: OpenCart 1.5.4 Bug Thread

Posted: Sat Oct 06, 2012 9:28 am
by philstix
I seem to have found a bug - and a solution to it - in the 'product tags' section in catalog/controller/product/product.php in OpenCart 1.5.4.1.

The bug causes an empty 'Tags:' section, including an empty link, to be created by product.tpl when there are no tags set for the product.

The bug lies in the use of the php 'explode' function to create the $tags array:

Code: Select all

$tags = explode(',', $product_info['tag']);
The problem is that the 'explode' function always returns at least one element - an empty string - if no tags are present.

So the $tags array may have an empty string element, producing the empty search link I referred to.

The solution is to replace this section:

Code: Select all

			
foreach ($tags as $tag) {
	$this->data['tags'][] = array(
		'tag'  => trim($tag),
		'href' => $this->url->link('product/search', 'filter_tag=' . trim($tag))
	);
}
with:

Code: Select all

			
foreach ($tags as $tag) {
	if (mb_strlen($tag)) { /* Test for empty string */
		$this->data['tags'][] = array(
			'tag'  => trim($tag),
			'href' => $this->url->link('product/search', 'filter_tag=' . trim($tag))
		);
	}
}
although a more efficient replacement (that has the added benefit of removing any tags containing only spaces before creating the final ouput) might be:

Code: Select all

foreach ($tags as $tag) 
{
	if (mb_strlen($tag = trim($tag))) 
	{
		$this->data['tags'][] = array(
			'tag'  => $tag,
			'href' => $this->url->link('product/search', 'filter_tag=' . $tag));
	}
}
Then the 'Tags:' section in the product page will only be created if there is at least one tag set for the product.

Re: OpenCart 1.5.4 Bug Thread

Posted: Sat Oct 06, 2012 7:29 pm
by ADD Creative
I believe this has been fixed here. https://github.com/opencart/opencart/co ... 71407d8c9b

Re: OpenCart 1.5.4 Bug Thread

Posted: Tue Oct 09, 2012 12:00 am
by dklnd
lowercase tags can also not be searched, I downloaded the 1.5.4.1 version 2 days ago.

Re: OpenCart 1.5.4 Bug Thread

Posted: Tue Oct 09, 2012 1:54 am
by sysiz
dklnd wrote:lowercase tags can also not be searched, I downloaded the 1.5.4.1 version 2 days ago.
Having same issue. For example, one tag has 13 characters with lowercase, does not work. Most tags works fine.

Re: OpenCart 1.5.4 Bug Thread

Posted: Tue Oct 09, 2012 1:57 am
by sysiz
dklnd wrote:lowercase tags can also not be searched, I downloaded the 1.5.4.1 version 2 days ago.
Having same issue. One tag with 12 lowercase characters does not works most tags works fine.

Re: OpenCart 1.5.4 Bug Thread

Posted: Tue Oct 09, 2012 2:52 pm
by bigal
What happened to this thread?
There were around 15 pages a few days ago. Now I only see 3 pages.

Re: OpenCart 1.5.4 Bug Thread

Posted: Tue Oct 09, 2012 8:06 pm
by ADD Creative
sysiz wrote:
dklnd wrote:lowercase tags can also not be searched, I downloaded the 1.5.4.1 version 2 days ago.
Having same issue. One tag with 12 lowercase characters does not works most tags works fine.
How many products does the tag appear on? If a tag is on more than 50% of the products it may be ignored due to the MySQL MATCH function.

Re: OpenCart 1.5.4 Bug Thread

Posted: Tue Oct 09, 2012 8:06 pm
by ADD Creative
bigal wrote:What happened to this thread?
There were around 15 pages a few days ago. Now I only see 3 pages.
See the first post.

Re: OpenCart 1.5.4 Bug Thread

Posted: Wed Oct 10, 2012 12:37 am
by ADD Creative
To revert the tag searching back to how it was in 1.5.3 try.

In catalog\model\catalog\product.php find both occurrences of

Code: Select all

				$sql .= "MATCH(pd.tag) AGAINST('" . $this->db->escape(utf8_strtolower($data['filter_tag'])) . "')";
And replace both with

Code: Select all

				$implode = array();

				$words = explode(' ', trim(preg_replace('/\s\s+/', ' ', $data['filter_tag'])));

				foreach ($words as $word) {
					$implode[] = "LCASE(pd.tag) LIKE '%" . $this->db->escape(utf8_strtolower($word)) . "%'";
				}

				if ($implode) {
					$sql .= " " . implode(" OR ", $implode);
				}
Other changes that could be made to return less products would be to change the OR to an AND so all terms must be found to match a product. Or removing the % symbols from the LIKE function so as to not do partial matches.

Re: OpenCart 1.5.4 Bug Thread

Posted: Wed Oct 10, 2012 1:00 am
by dklnd
ADD Creative wrote:
sysiz wrote:
dklnd wrote:lowercase tags can also not be searched, I downloaded the 1.5.4.1 version 2 days ago.
Having same issue. One tag with 12 lowercase characters does not works most tags works fine.
How many products does the tag appear on? If a tag is on more than 50% of the products it may be ignored due to the MySQL MATCH function.
This is probably the case, as I tested with just a few items instead of my whole stock.