Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Location
    Derbyshire, England
    Posts
    13
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Feb 2008
    Location
    Derbyshire, England
    Posts
    13
    Plugin Contributions
    0

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

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

    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?!

  3. #3
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default 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.
    Last edited by bigbadboy; 10 Nov 2008 at 01:31 AM.

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

    Quote Originally Posted by trentham View Post
    I'll take that as a "no" then!
    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.

    Quote Originally Posted by trentham View Post
    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).

    Quote Originally Posted by trentham View Post
    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)

 

 

Similar Threads

  1. v151 Using Stock By Attributes, In Stock Value Is Sum Of Attributes' Stock
    By y0ul053 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 29 Aug 2013, 04:23 PM
  2. HELP - ALL Attributes are showing up as "Text" for option value!
    By NWFAP in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 2 Jan 2012, 01:14 AM
  3. add stock quantity for all variants of a product
    By maryland in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 27 Jul 2010, 07:16 PM
  4. using the stock id value created by stock by attributes
    By misscotton in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 11 May 2009, 08:43 PM
  5. Add atrributes to ALL Products, Globally
    By drhiii in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 24 Nov 2008, 04:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg