Page 1 of 2 12 LastLast
Results 1 to 10 of 1125

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Hello,

    I am having problems with this contribution and the shopping cart page.

    If a product is just priced as is, the stock level check works. On the other hand when I use attribute stock levels it always claims that the item is out of stock no matter what.

    I've looked in the database and the levels stored are correct. I have tried backing up the files the contribution uses and then re-installing unedited versions.

    I am using the product grid contribution (http://www.zen-cart.com/index.php?ma...roducts_id=876) and have edited it so that it indicates how much stock each attribute had, using traffic light images. When I add something to the basket and the shopping cart loads the correct attributes are listed in there, it is just the stock level that isn't working

  2. #2
    Join Date
    Mar 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by bencart View Post
    Hello,
    I am having problems with this contribution and the shopping cart page.
    I've tried using attribute without the product grid and it looks like its a problem with that rather than this contribution

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

    Default Re: Stocks by attributes

    Quote Originally Posted by bencart View Post
    I've tried using attribute without the product grid and it looks like its a problem with that rather than this contribution
    Knowing where that mod came from, I would be surprised if it didn't work. So the problem is most likely in how the two mods interact. But there's a hitch there, since they don't appear to! However, product attribute grid does tweak the shopping cart directly, so it's possible that whatever it does upsets or passes data that isn't available to stock by attribute.
    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
    Mar 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by bencart View Post
    Hello,

    I am having problems with this contribution and the shopping cart page.

    If a product is just priced as is, the stock level check works. On the other hand when I use attribute stock levels it always claims that the item is out of stock no matter what.

    I am using the product grid contribution (http://www.zen-cart.com/index.php?ma...roducts_id=876) and have edited it so that it indicates how much stock each attribute had, using traffic light images. When I add something to the basket and the shopping cart loads the correct attributes are listed in there, it is just the stock level that isn't working
    I am having the same problem as above again

    The cart owner is adding products and the table products_with_attributes_stock is showing that the stock_attributes column is being loaded with measurementID,quantityID where as the demo ones I put in where only being loaded with measurementID. None of the stock_by_attributes files have been modified from the original files, so I would have thought it should be working?

  5. #5
    Join Date
    Mar 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by bencart View Post
    I am having the same problem as above again

    The cart owner is adding products and the table products_with_attributes_stock is showing that the stock_attributes column is being loaded with measurementID,quantityID where as the demo ones I put in where only being loaded with measurementID. None of the stock_by_attributes files have been modified from the original files, so I would have thought it should be working?
    I have now fixed this so that Product Attribute Grid and Stock by Attributes work when the attribute grid is setup to use single attributes.

    The file admin/products_with_attributes_stock.php needs this modification:

    Original Code:
    PHP Code:
                foreach($product_attributes as $option_name => $options)
                {
                    echo 
    '<p><strong>'.$option_name.': </strong>';
                    echo 
    zen_draw_pull_down_menu('attributes[]',$options).'</p>'."\n";
                } 
    Fixed Code:
    PHP Code:
                foreach($product_attributes as $option_name => $options)
                {
                    
    // if the option isn't the attribute grids dummy quantity attribute
                    
    if($option_name != 'Quantity')
                    {
                        echo 
    '<p><strong>'.$option_name.': </strong>';
                        echo 
    zen_draw_pull_down_menu('attributes[]',$options).'</p>'."\n";
                    }

                } 

  6. #6
    Join Date
    Feb 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Hi all
    I need a little help to install SBA 4.7. I'm reading installation instructions and I'm using ZC 1.3.8(a).

    "Prepare the package for upload to your server by renaming the following folders to match your template name: includes/modules/YOUR_TEMPLATE and includes/templates/YOUR_TEMPLATE."

    In SBA 4.7 package I can find and rename includes/templates/YOUR_TEMPLATE but there isn't includes/modules/YOUR_TEMPLATE

    Incorrect instruction, or... ?

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

    Default Re: Stocks by attributes

    Quote Originally Posted by joystick View Post
    In SBA 4.7 package I can find and rename includes/templates/YOUR_TEMPLATE but there isn't includes/modules/YOUR_TEMPLATE

    Incorrect instruction, or... ?
    Left over from older versions. Changes have been made to minimise over-riding of files and over several releases, the number of files over-written and over-ridden has been reduced. The module file for which this instruction was originally written no longer needs to be changed, so you can safely ignore that part of the instructions.
    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
    Feb 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    I think that it's a good idea to update install instruction.

    Quote Originally Posted by kuroi View Post
    so you can safely ignore that part of the instructions.
    I don't understund if is necessary to rename includes/templates/YOUR_TEMPLATE

    (I'm using a template)

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

    Default Re: Stocks by attributes

    Quote Originally Posted by joystick View Post
    I think that it's a good idea to update install instruction.
    So do I. Please feel free to do so.

    Quote Originally Posted by joystick View Post
    I don't understund if is necessary to rename includes/templates/YOUR_TEMPLATE
    It is.
    Kuroi Web Design and Development | Twitter

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

  10. #10
    Join Date
    Sep 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by bencart View Post
    I have now fixed this so that Product Attribute Grid and Stock by Attributes work when the attribute grid is setup to use single attributes.

    The file admin/products_with_attributes_stock.php needs this modification:

    Original Code:
    PHP Code:
                foreach($product_attributes as $option_name => $options)
                {
                    echo 
    '<p><strong>'.$option_name.': </strong>';
                    echo 
    zen_draw_pull_down_menu('attributes[]',$options).'</p>'."\n";
                } 
    Fixed Code:
    PHP Code:
                foreach($product_attributes as $option_name => $options)
                {
                    
    // if the option isn't the attribute grids dummy quantity attribute
                    
    if($option_name != 'Quantity')
                    {
                        echo 
    '<p><strong>'.$option_name.': </strong>';
                        echo 
    zen_draw_pull_down_menu('attributes[]',$options).'</p>'."\n";
                    }

                } 
    Wow. I am sooooooo glad you posted your solution. I had the exact same problem and your fix worked, only the "echo '<p><strong>'.$option_name"... part was further under the foreach loop than I expected. After inserting your IF statement, the stock_attribute column stopped displaying the ",quantityID" and then stock started working correctly again.

    The weird thing is I could have sworn the two modules (Attributes by stock and product grid) were working fine together. I have no idea what would have stopped them from working though, so I'll assume I just overlooked the issue in the beginning.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Stocks of certain products disappearing automatically
    By Lowwi in forum General Questions
    Replies: 4
    Last Post: 11 Aug 2015, 09:09 PM
  2. Installing Stocks by Attribute
    By dragon03kf in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 26 Oct 2008, 07:42 PM
  3. Stocks by attributes
    By hcd888 in forum General Questions
    Replies: 1
    Last Post: 12 May 2008, 08:52 AM
  4. Multiple stocks per product
    By jaycode in forum General Questions
    Replies: 4
    Last Post: 5 Aug 2007, 11:55 AM
  5. Products with attribute stocks
    By Svanis in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 5 Jul 2006, 03:19 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