Page 103 of 359 FirstFirst ... 35393101102103104105113153203 ... LastLast
Results 1,021 to 1,030 of 3589
  1. #1021
    Join Date
    Dec 2008
    Posts
    14
    Plugin Contributions
    0

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

    Dear ChrisD24,

    I am having the same problem and after making the change as yo mentioned i still have the problem can you please post the code here so i can see if i am doing everything correct:

    PHP Code:
    // stock by attributes     
                    
    if ( STOCK_CHECK == 'true' ) {

                            
    // Added to allow individual stock of different attributes
                            
    unset($attributes);
                            if(
    is_array($products[$i]['attributes'])){
                                    
    $attributes $products[$i]['attributes'];
                            } else {      
                                    
    $attributes '';
                            }

                            
    $stock_check zen_check_stock($products[$i]['id'], $products[$i]['quantity'],$attributes);
                            if (
    zen_not_null($stock_check))
                            
    $flagStockCheck NULL
                            {
                                    
    $flagAnyOutOfStock true;
                                    
    $flagStockCheck $stock_check;
                              
    $stockAvailable zen_get_products_stock($products[$i]['id'], $attributes);           
                            }

                    }

        
    // end stock by attributes 
    this is wat i have and mine still shows out of stock error for item B if Item A is out of stock.

    Thank you

  2. #1022
    Join Date
    Jan 2011
    Posts
    37
    Plugin Contributions
    0

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

    Quote Originally Posted by harmeetsandhu View Post
    Dear ChrisD24,

    I am having the same problem and after making the change as yo mentioned i still have the problem can you please post the code here so i can see if i am doing everything correct:

    PHP Code:
    // stock by attributes     
                    
    if ( STOCK_CHECK == 'true' ) {

                            
    // Added to allow individual stock of different attributes
                            
    unset($attributes);
                            if(
    is_array($products[$i]['attributes'])){
                                    
    $attributes $products[$i]['attributes'];
                            } else {      
                                    
    $attributes '';
                            }

                            
    $stock_check zen_check_stock($products[$i]['id'], $products[$i]['quantity'],$attributes);
                            if (
    zen_not_null($stock_check))
                            
    $flagStockCheck NULL
                            {
                                    
    $flagAnyOutOfStock true;
                                    
    $flagStockCheck $stock_check;
                              
    $stockAvailable zen_get_products_stock($products[$i]['id'], $attributes);           
                            }

                    }

        
    // end stock by attributes 
    this is wat i have and mine still shows out of stock error for item B if Item A is out of stock.

    Thank you
    I have $flagStockCheck = NULL; above if (zen_not_null($stock_check))

    PHP Code:
                $stock_check zen_check_stock($products[$i]['id'], $products[$i]['quantity'],$attributes);
                
    $flagStockCheck NULL;
                if (
    zen_not_null($stock_check)) 

  3. #1023
    Join Date
    Dec 2008
    Posts
    14
    Plugin Contributions
    0

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

    I changed mine to exactly as yours but i still get this again:

    item A out of stock but Item B is in stock but get the out of stock message and the stock avilable is same as ITEM A.

    pulling my hair out now. You got any idea.

    Thanks

  4. #1024
    Join Date
    Dec 2008
    Posts
    14
    Plugin Contributions
    0

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

    Forgot to mention that ITEM B has no attribute attached to it though but if i add any other item so lets say item C with attributes.

    It works as expected.

    Not getting anywhere with this.

    Regards

  5. #1025
    Join Date
    Jan 2011
    Posts
    37
    Plugin Contributions
    0

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

    Quote Originally Posted by harmeetsandhu View Post
    Forgot to mention that ITEM B has no attribute attached to it though but if i add any other item so lets say item C with attributes.

    It works as expected.

    Not getting anywhere with this.

    Regards
    Exactly, I am still waiting on an answer for products without attributes.

  6. #1026
    Join Date
    Dec 2008
    Posts
    14
    Plugin Contributions
    0

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

    I read before that you tried uncommenting the

    PHP Code:
    /*
      if (STOCK_CHECK == 'true') {
        $flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);
        if ($flagStockCheck == true) {
          $flagAnyOutOfStock = true;
        }
      }
    */ 
    did that make any difference to you.

    Regards

  7. #1027
    Join Date
    Jan 2011
    Posts
    37
    Plugin Contributions
    0

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

    Quote Originally Posted by harmeetsandhu View Post
    I read before that you tried uncommenting the

    PHP Code:
    /*
      if (STOCK_CHECK == 'true') {
        $flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);
        if ($flagStockCheck == true) {
          $flagAnyOutOfStock = true;
        }
      }
    */ 
    did that make any difference to you.

    Regards
    Only if I want to have the attributes stock break. Hopefully someone out there can figure this bug out - glad I am not the only one!

  8. #1028
    Join Date
    Dec 2008
    Posts
    14
    Plugin Contributions
    0

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

    Removing the post as the change i mentioned doesnt work.
    Last edited by harmeetsandhu; 26 Jan 2011 at 03:34 PM.

  9. #1029
    Join Date
    Dec 2008
    Posts
    14
    Plugin Contributions
    0

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

    Actually wrote to soon:

    It doesnt work as the item i choose to test had an attribute. the one without attributes still have this problem

    will try and sort this out will let u know if i can find the bug.

  10. #1030
    Join Date
    Jan 2011
    Posts
    37
    Plugin Contributions
    0

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

    Quote Originally Posted by harmeetsandhu View Post
    Actually wrote to soon:

    It doesnt work as the item i choose to test had an attribute. the one without attributes still have this problem

    will try and sort this out will let u know if i can find the bug.
    Nope - I don't think it changed anything. It doesn't show the out of stock/low stock warning nor mark the product with ***. But I think it did that before I tried that code.

 

 

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR