Page 2 of 2 FirstFirst 12
Results 11 to 20 of 3609

Hybrid View

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

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Using 1.3.8a and latest SbA and have a small error.

    Admin > catalog > products with attributes stock
    Click > 'Add quantity for product variant'
    Size (only attribute) - 'All'
    Quantity - Any number

    Hit 'Submit'

    I then get this error:
    att: 41|42|43|44|45|46

    Warning: Cannot modify header information - headers already sent by (output started at /home/path/to/products_with_attributes_stock.php:193) in /home/path/to/admin/includes/functions/general.php on line 21

    Line 193 - echo "att: $attributes<bR>\n";
    Line 21 - header('Location: ' . $url);

    I thought maybe the R in bR was wrong (line break?) but changing it made no difference.

    Thing is, although this error occurs hitting back button and accessing 'Admin > catalog > products with attributes stock' again shows the options updated correctly.

    Other than that everything works perfect.

    Any suggestions to get rid of the error before I show to the client?

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

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Just as an update ...
    I think the error might be caused by the fact that I have an attribute:
    'Size: Select Size:' <- This attribute is read only but still gets assigned a stock level.

    Just a thought.

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

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Quote Originally Posted by bigbadboy View Post
    Using 1.3.8a and latest SbA and have a small error.

    Admin > catalog > products with attributes stock
    Click > 'Add quantity for product variant'
    Size (only attribute) - 'All'
    Quantity - Any number

    Hit 'Submit'

    I then get this error:
    att: 41|42|43|44|45|46

    Warning: Cannot modify header information - headers already sent by (output started at /home/path/to/products_with_attributes_stock.php:193) in /home/path/to/admin/includes/functions/general.php on line 21
    Answered a little earlier in this thread.
    Kuroi Web Design and Development | Twitter

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

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

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    thanks kuroi I missed that reply.

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

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Quote Originally Posted by bigbadboy View Post
    thanks kuroi I missed that reply.
    Easy to do given the length of the thread. I find that searching via Google on error messages is a quick way of cutting through the tons of info to finding answers when there are error messages.

    The trick is to identify information that is specific to the problem, but not your setup. In this case the following search string would take you there very quickly
    site:zen-cart.com products_with_attributes_stock.php:193
    Kuroi Web Design and Development | Twitter

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

  6. #6
    Join Date
    Nov 2007
    Location
    Los Angeles, CA
    Posts
    1
    Plugin Contributions
    0

    help question Re: Stock by Attribute v4.0: Hide Out-of-Stock Items

    I was hoping there was a simple solution to what I hope is a simple problem.

    1. "Stock by Attribute" module is installed and working fine on a Zen-Cart clothing store site.
    2. We'd like it if a products out-of-stock options were not displayed on the product page -- we'd like the customer to not see a temporarily out of stock option listed.


    I believe the option stock check would happen during the option array formation.

    Any suggestions would be very appreciated!

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

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Quote Originally Posted by jdimaging View Post
    I am trying to do my first custom adon and when I import in the mysql file into phpmyadmin it is naming the table using the database name (c-Panel), not just zen_ and therefore I am getting this error.

    1146 Table 'sabrina_zc1.zen_products_with_attributes_stock' doesn't exist
    in:
    [select * from zen_products_with_attributes_stock where products_id="7"]
    It's absolutely normal for the database name to be used as well as the table name, otherwise your MySQL server would be unable to differentiate between Zen Carts on the same server.

    The problem would be either than your configure files point to a non-existent database (which seems unlikely) or that you didn't edit your database prefix into the installation SQL before running it as per the installation instructions, so that the table has been created with the wrong name. You will be able to see and correct this via phpMyAdmin.
    Kuroi Web Design and Development | Twitter

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

  8. #8
    Join Date
    Dec 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    I'm working with Zen Cart version 1.3.9f and have the first add-on of StockByAttributes_WITH-Table-Filter1.6 installed for that version. Then I got this error below and have tried to change the sql file following your forum reco but it is not working, I believe I might have made some mistakes here. I’ve searched high and low and for days but couldn’t figure this out.


    Error:
    1146 Table 'babynkid_zenc375.zen_products_with_attributes_stock' doesn't exist
    in:
    [select * from zen_products_with_attributes_stock where products_id = 1 and stock_attributes="1"]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.



    Changes made on sql file highlighted in red:
    CREATE TABLE zen_products_with_attributes_stock (
    stock_id INT NOT NULL AUTO_INCREMENT ,
    products_id INT NOT NULL ,
    stock_attributes VARCHAR( 255 ) NOT NULL ,
    quantity FLOAT NOT NULL ,
    PRIMARY KEY ( `stock_id` )
    );

    INSERT INTO configuration (configuration_title, configuration_key, configuration_value,
    configuration_description, configuration_group_id, sort_order,
    last_modified, date_added, use_function, set_function)
    VALUES ('Show available stock level in cart when less than order', 'STOCK_SHOW_LOW_IN_CART', 'false',
    'When customer places more items in cart than are available, show the available amount on the shopping cart page:',
    '9',
    '6',
    NULL,
    now(),
    NULL,
    "zen_cfg_select_option(array('true', 'false'),"
    );
    /****************************Additional Databse command BELOW ********************************************************
    michael mcinally <[email protected]>
    heavily modified version BELOW to allow inserting "ALL" attributes at once
    also should probably run this SQL command as well:
    ******************************************************************************** *****/
    ALTER TABLE `zen_products_with_attributes_stock` ADD UNIQUE `products_id_stock_attributes` (`products_id`, `stock_attributes`);

    Appreciate very much on your help

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Problems with addon: Dynamic Drop Downs for Stock By Attribute
    By Dunk in forum All Other Contributions/Addons
    Replies: 56
    Last Post: 30 Apr 2014, 07:55 PM
  2. MySQL Problem with Product with Attribute Stock addon
    By rtwingfield in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 20 Sep 2011, 03:35 PM
  3. Hide Zero Quantity Attributes with attribute-stock addon
    By leevil123 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Feb 2010, 05:06 PM
  4. Replies: 4
    Last Post: 22 Jan 2010, 10:43 PM
  5. Price Products in the grid by 'Stock by Attribute' addon?
    By Salixia in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 Oct 2009, 06:03 PM

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