Forums / All Other Contributions/Addons / Stock by Attributes failure on add value for *All* atrributes

Stock by Attributes failure on add value for *All* atrributes

Locked

Views: 890

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
7 Nov 2008, 1:46 PM
#1
trentham avatar

trentham

New Zenner

Join Date:
Feb 2008
Location:
Derbyshire, England
Posts:
13
Plugin Contributions:
0

Stock by Attributes failure on add value for *All* atrributes

I've installed Stock by Attributes (4.7) into my Zencart (1.3.8a) and mostly it's working fine except that when I click on 'Add quantity for product variant' and leave the attribute set to 'All', enter a stock value and then click on 'Submit' I get the error message

"Warning: Cannot modify header information - headers already sent by ..... functions/general.php on line 21"

The line which was sent (and so stopping headers being sent was something like "att: 467|482|497|512|451" (maybe a piece of debug information???).

It looks like this occurs in admin/products_with_attributes_stock.php on line 193.

The operation works correctly, it just can't get back to the proper page.

Does anyone know if this is indeed a remnant of development debugging and whether it can be safely removed?

9 Nov 2008, 10:22 PM
#2
trentham avatar

trentham

New Zenner

Join Date:
Feb 2008
Location:
Derbyshire, England
Posts:
13
Plugin Contributions:
0

Re: Stock by Attributes failure on add value for *All* atrributes

I'll take that as a "no" then! :wink:

I've commented out the line with no apparent problems. It simply works now.

I assume that it was simply never tested fully.

Mind you, I do think that this addon should be part of the core product. What;s the point of having stock levels if they can't be controlled at attribute level?!

10 Nov 2008, 12:27 AM
#3
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: Stock by Attributes failure on add value for *All* atrributes

I reported the exact same problem/ bug/ error but had no reply.

I'll try your solution and see if it works for me.

edit: yup, worked for me as well.
One thing to check - Have you got any read only attributes set, something like 'Please select' (so that it shows on the list)?
I noticed that this also gets added to and might be the problem.

10 Nov 2008, 12:54 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Stock by Attributes failure on add value for *All* atrributes

trentham:

I'll take that as a "no" then! :wink:Actually it's a yes, but you looked in the wrong place. There's a long support thread for the mod and the answer was in there. Posting away from the support threads for this type of module has a high risk that your question will get overlooked by the people who use and know the mod.

trentham:

I've commented out the line with no apparent problems. It simply works now. I assume that it was simply never tested fully.That's safe to do. You're actually using the 4.7MULTIADD variant, which did appear to be submitted in a rather raw form, in contrast to 4.7 and preceding versions, which were very heavily tested (I have to declare a bias on that).

trentham:

Mind you, I do think that this addon should be part of the core product. What;s the point of having stock levels if they can't be controlled at attribute level?!That has long formed an important part of the next major release of Zen Cart.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)