Page 4 of 10 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 1125

Hybrid View

  1. #1
    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

  2. #2
    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)

  3. #3
    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?

  4. #4
    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";
                    }

                } 

  5. #5
    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... ?

  6. #6
    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)

  7. #7
    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.

  8. #8
    Join Date
    Dec 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    I just download this mod from the Zen-Cart site.
    On the admin/products_with_attributes_stock.php and the admin/functions/extra_functions/functions_qty_attribute.php files I had to fix the table calls. Instead of calling the defined tables, the scrips were calling the actual table names.

    Stock Attribute v3.01.1 is the version that was on Free Add On page. Obviously, this needs to be updated.

  9. #9
    Join Date
    Nov 2006
    Posts
    39
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    [FONT=Arial]Hi all,

    [/FONT] [FONT=Arial]I have installed the products with attributes stock mod on my fresh ZenCart install. When i try to select it form the Catalog Menu i get the follwing errors...[/FONT]
    [FONT=Arial][/FONT]
    [FONT=Arial][/FONT]
    [FONT=Arial]*Warning*: main(includes/classes/products_with_attributes_stock.php) [function.main (http://nutmegsjewellery.co.uk/newsto.../function.main)]: failed to open stream: No such file or directory in */home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php* on line *12*[/FONT]
    [FONT=Arial][/FONT]
    [FONT=Arial]*Warning*: main(includes/classes/products_with_attributes_stock.php) [function.main (http://nutmegsjewellery.co.uk/newsto.../function.main)]: failed to open stream: No such file or directory in */home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php* on line *12*[/FONT]
    [FONT=Arial][/FONT]
    [FONT=Arial]*Warning*: main(includes/classes/products_with_attributes_stock.php) [function.main (http://nutmegsjewellery.co.uk/newsto.../function.main)]: failed to open stream: No such file or directory in */home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php* on line *12*[/FONT]
    [FONT=Arial][/FONT]
    [FONT=Arial]*Fatal error*: main() [function.require (http://nutmegsjewellery.co.uk/newsto...nction.require)]: Failed opening required 'includes/classes/products_with_attributes_stock.php' (include_path='.:/usr/share/pear') in */home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php* on line *12[/FONT]
    [FONT=Arial]*[/FONT]
    [FONT=Arial]I followed the instructions ot the letter and I am using the latest release of the mod and a fresh install of the latest version of Zen Cart
    [/FONT]

  10. #10
    Join Date
    Jan 2009
    Posts
    59
    Plugin Contributions
    1

    Default Re: Stocks by attributes

    It could be that the user account used to deliver web pages to users on your server (typically IUSR_xxxxx on Windows) does not have read permissions to the folder/file

    public_html/newstore/admin/products_with_attributes_stock.php

    Login in to your server/control panel and check the permissions on this file/folder.

    Kev

 

 
Page 4 of 10 FirstFirst ... 23456 ... 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