Community Forums

OpenCart 1.5.0.5 Bug Thread

Bug reports here

Re: OpenCart 1.5.0.5 Bug Thread

Postby uksitebuilder » Sat Jul 09, 2011 6:03 pm

Sorry but I dont see iPod Classic repeated on the link you gave above ?
User avatar
uksitebuilder
 
Posts: 5602
Joined: Thu Jun 09, 2011 3:37 pm
Location: United Kindgom

Re: OpenCart 1.5.0.5 Bug Thread

Postby celestial » Sat Jul 09, 2011 6:14 pm

uksitebuilder wrote:Sorry but I dont see iPod Classic repeated on the link you gave above ?


Page 2
celestial
 
Posts: 1956
Joined: Fri Mar 19, 2010 8:19 pm

Re: OpenCart 1.5.0.5 Bug Thread

Postby uksitebuilder » Sat Jul 09, 2011 6:24 pm

Very weird behaviour.

I get different products each time I look, but I think I see what you are referring to.

Just tested by opening page 2 in a new tab and you are correct. Thanks for the heads-up
User avatar
uksitebuilder
 
Posts: 5602
Joined: Thu Jun 09, 2011 3:37 pm
Location: United Kindgom

Re: OpenCart 1.5.0.5 Bug Thread

Postby strigona » Sat Jul 09, 2011 10:09 pm

I found an inconsistency with regards to how a product is considered "Out of Stock".

In system/library/cart.php the getProducts() method checks if the product is in stock or not. There are 3 stock checks in this method, the first two are related to the stock of Product Options, the last one is for the Product. The Product Options checks ignore the Product Option's stock if "Subtract Stock" is false, however the Product check doesn't.

The 3 checks in question are
1. Radio Options
Code: Select all
Line 66: if ($option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $quantity))) {

2. Select Options
Code: Select all
Line 111: if ($option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $quantity))) {

3. Product Stock
Code: Select all
Line 213: if (!$product_query->row['quantity'] || ($product_query->row['quantity'] < $quantity)) {


Personally for how I'm managing the stock in my store I want to be able to set an upper limit of the number of items to put into the cart but not decrease the stock so I will be changing the Product Options' conditions to look like the Product Stock condition.
In most cases I would imagine that if decrease stock is set to false, stock should be ignored.

Thanks,
Simon
strigona
 
Posts: 25
Joined: Thu Jul 07, 2011 3:31 pm

Re: OpenCart 1.5.0.5 Bug Thread

Postby Johnathan » Sun Jul 10, 2011 7:18 am

uksitebuilder wrote:Very weird behaviour.

I get different products each time I look, but I think I see what you are referring to.

Just tested by opening page 2 in a new tab and you are correct. Thanks for the heads-up

Yeah, I just noticed that it's a different duplicated product every time.
Image
ImageImageImageImageImageImageImageImageImage
User avatar
Johnathan
Global Moderator
 
Posts: 2841
Joined: Thu Dec 17, 2009 7:08 pm

Re: OpenCart 1.5.0.5 Bug Thread

Postby allenshea » Sun Jul 10, 2011 10:36 am

Set right, left with model, got info messed

return.jpg
return.jpg (78.56 KiB) Viewed 684 times


I think the CSS need to be make some revise.
I know nothing about PHP and SQL, but I still try my best to understand it.
User avatar
allenshea
 
Posts: 223
Joined: Mon Dec 14, 2009 2:01 pm

Re: OpenCart 1.5.0.5 Bug Thread

Postby allenshea » Sun Jul 10, 2011 10:43 am

I have already login account, but why the bottom still show
index.php?route=account/login


login.jpg
login.jpg (72.61 KiB) Viewed 680 times
I know nothing about PHP and SQL, but I still try my best to understand it.
User avatar
allenshea
 
Posts: 223
Joined: Mon Dec 14, 2009 2:01 pm

Re: OpenCart 1.5.0.5 Bug Thread

Postby Daniel » Sun Jul 10, 2011 12:51 pm

allenshea wrote:Set right, left with model, got info messed

return.jpg


I think the CSS need to be make some revise.



try removing the category box.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5173
Joined: Fri Nov 03, 2006 10:57 am

Re: OpenCart 1.5.0.5 Bug Thread

Postby Daniel » Sun Jul 10, 2011 12:52 pm

Johnathan wrote:
uksitebuilder wrote:Very weird behaviour.

I get different products each time I look, but I think I see what you are referring to.

Just tested by opening page 2 in a new tab and you are correct. Thanks for the heads-up

Yeah, I just noticed that it's a different duplicated product every time.



can not replicate. one is an ipod nqano and another is the ipod classic
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5173
Joined: Fri Nov 03, 2006 10:57 am

Re: OpenCart 1.5.0.5 Bug Thread

Postby Daniel » Sun Jul 10, 2011 1:27 pm

strigona wrote:I found an inconsistency with regards to how a product is considered "Out of Stock".

In system/library/cart.php the getProducts() method checks if the product is in stock or not. There are 3 stock checks in this method, the first two are related to the stock of Product Options, the last one is for the Product. The Product Options checks ignore the Product Option's stock if "Subtract Stock" is false, however the Product check doesn't.

The 3 checks in question are
1. Radio Options
Code: Select all
Line 66: if ($option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $quantity))) {

2. Select Options
Code: Select all
Line 111: if ($option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $quantity))) {

3. Product Stock
Code: Select all
Line 213: if (!$product_query->row['quantity'] || ($product_query->row['quantity'] < $quantity)) {


Personally for how I'm managing the stock in my store I want to be able to set an upper limit of the number of items to put into the cart but not decrease the stock so I will be changing the Product Options' conditions to look like the Product Stock condition.
In most cases I would imagine that if decrease stock is set to false, stock should be ignored.

Thanks,
Simon


this is a bug thread and not a thread for how you want opencart changed to suite your needs.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5173
Joined: Fri Nov 03, 2006 10:57 am

Re: OpenCart 1.5.0.5 Bug Thread

Postby strigona » Sun Jul 10, 2011 3:08 pm

Daniel wrote:
strigona wrote:I found an inconsistency with regards to how a product is considered "Out of Stock".

In system/library/cart.php the getProducts() method checks if the product is in stock or not. There are 3 stock checks in this method, the first two are related to the stock of Product Options, the last one is for the Product. The Product Options checks ignore the Product Option's stock if "Subtract Stock" is false, however the Product check doesn't.

The 3 checks in question are
1. Radio Options
Code: Select all
Line 66: if ($option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $quantity))) {

2. Select Options
Code: Select all
Line 111: if ($option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $quantity))) {

3. Product Stock
Code: Select all
Line 213: if (!$product_query->row['quantity'] || ($product_query->row['quantity'] < $quantity)) {


Personally for how I'm managing the stock in my store I want to be able to set an upper limit of the number of items to put into the cart but not decrease the stock so I will be changing the Product Options' conditions to look like the Product Stock condition.
In most cases I would imagine that if decrease stock is set to false, stock should be ignored.

Thanks,
Simon


this is a bug thread and not a thread for how you want opencart changed to suite your needs.

I would consider the inconsistency a bug. I mearly suggested the two possibile solutions and how each can be useful. I have made the changes that I want to my store already. I'm posting here so that the next person who comes across this bug doesn't waste an hour figuring out why the decrease stock feature acts completly different in two locations.

So for the sake of future opencart users please consider this a bug.

Thanks,
Simon
strigona
 
Posts: 25
Joined: Thu Jul 07, 2011 3:31 pm

Re: OpenCart 1.5.0.5 Bug Thread

Postby Daniel » Sun Jul 10, 2011 4:03 pm

you have not even reported what is actually not happening and what is supposed to happen.

its like playing a guessing game. read carefully what you have writen. it tells us nothing apart from you think there is inconsistency.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5173
Joined: Fri Nov 03, 2006 10:57 am

Re: OpenCart 1.5.0.5 Bug Thread

Postby strigona » Sun Jul 10, 2011 5:47 pm

Daniel wrote:you have not even reported what is actually not happening and what is supposed to happen.

its like playing a guessing game. read carefully what you have writen. it tells us nothing apart from you think there is inconsistency.


Sorry Daniel, I'll re-explain - sorry if I wasn't clear enough earlier.

The inconsistency is that for a Product if the "Decrease Stock" is set to "No", the cart quantity cannot exceed the product quantity. For Product Options if the "Decrease Stock" is set to "No", the cart quantity can exceed the product option quantity.
strigona
 
Posts: 25
Joined: Thu Jul 07, 2011 3:31 pm

Re: OpenCart 1.5.0.5 Bug Thread

Postby QNAP » Sun Jul 10, 2011 7:26 pm

Daniel

Any news regarding the Update issue?

Can we just upload the install folder and run through the installer again?
Or will that mess up the database? Are you planning on making an upgrade script from 1.5.0.5 to whatever the next version is you're planning on releasing?


It would be nice if you could clarify the position on that one, there is probably some users who have begun to enter a lot of products in the current OC release 1.5.0.5 and given that 1.5.0.6 is around the corner so you have to wonder how to upgrade and if it is safe. Hope you understand. Thank you!
QNAP
 
Posts: 124
Joined: Tue Jan 18, 2011 7:46 pm

Re: OpenCart 1.5.0.5 Bug Thread

Postby Daniel » Sun Jul 10, 2011 7:30 pm

i was thinking of releasing 1.5.1. there is one db change at the moment. it might be an idea to wait for Q to come back from his holidays.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5173
Joined: Fri Nov 03, 2006 10:57 am

Re: OpenCart 1.5.0.5 Bug Thread

Postby Johnathan » Sun Jul 10, 2011 9:23 pm

Daniel wrote:i was thinking of releasing 1.5.1. there is one db change at the moment. it might be an idea to wait for Q to come back from his holidays.

I think Q is back from his holiday now.

I'm glad you're going to number it 1.5.1 if there's a database change. It'll help those of us with extensions support entire point releases (such as 1.5.0.x) at once.
Image
ImageImageImageImageImageImageImageImageImage
User avatar
Johnathan
Global Moderator
 
Posts: 2841
Joined: Thu Dec 17, 2009 7:08 pm

Re: OpenCart 1.5.0.5 Bug Thread

Postby i2Paq » Sun Jul 10, 2011 9:43 pm

Daniel wrote:i was thinking of releasing 1.5.1. there is one db change at the moment. it might be an idea to wait for Q to come back from his holidays.


Yep, he is already back.

make sure you change the version in the \admin\index.php to reflect the correct version please.
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

First Things First: Opencart Check List.
Documentation: Our Documentation section.
BUGs?: Known BUGS for All OC Versions.

Problemen met de BTW?: [How to] BTW + Verzend & betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 9747
Joined: Mon Nov 09, 2009 11:00 am
Location: Winkel - The Netherlands

Re: OpenCart 1.5.0.5 Bug Thread

Postby QNAP » Mon Jul 11, 2011 8:04 am

i was thinking of releasing 1.5.1. there is one db change at the moment. It might be an idea to wait for Q to come back from his holidays.


Great! Given there is one db change at the moment, will you attach some upgrade instructions or is it safe to upgrade from 1.5.0.5 to 1.5.1 ?
QNAP
 
Posts: 124
Joined: Tue Jan 18, 2011 7:46 pm

Re: OpenCart 1.5.0.5 Bug Thread

Postby reynierpm » Mon Jul 11, 2011 4:07 pm

Sorry if this isn't a bug but also a problem. When I have a banner and I have content or modules enabled the banner image broken the design. See the image at this link http://www.dropmocks.com/mXL7a, Any solve this?
User avatar
reynierpm
 
Posts: 324
Joined: Tue Jan 12, 2010 1:51 pm

Re: OpenCart 1.5.0.5 Bug Thread

Postby Xsecrets » Mon Jul 11, 2011 4:18 pm

reynierpm wrote:Sorry if this isn't a bug but also a problem. When I have a banner and I have content or modules enabled the banner image broken the design. See the image at this link http://www.dropmocks.com/mXL7a, Any solve this?

umm make your banner smaller. I would not call that a bug. Images always push the design around if you make them too big.
Xsecrets
 
Posts: 5042
Joined: Sat Oct 24, 2009 7:51 pm
Location: FL US

PreviousNext

Return to Bug Reports

Who is online

Users browsing this forum: Google [Bot], Google Feedfetcher and 9 guests

Hosted by Arvixe Web Hosting