Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jul 2015
    Posts
    43
    Plugin Contributions
    0

    Default Stock by Attributes 4.7: Adds items to cart without stock

    Having spent two days looking for a similar thread to no avail, I'm starting one...

    Many of our products have attributes which may be out of stock. If we are out of stock, the customer can still add it to the shopping cart.

    We'd prefer not to let them add out of stock items. Should be simple. If the item has no attributes and zero stock, the "add to cart" button is disabled.

    NOTE that the download page for the plugin has no link to a forum thread for this plugin. The forum search function gives 100+ threads or zero while mixing terms appropriate to this plugin.

    Over the course of six months, I've worked with most plugins along this concept. I recall one (maybe this one, maybe another) that allowed display of the current stock inside the dropdown used to select the attribute...I'm not finding a setting that resembles this in Admin.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Stock by Attributes 4.7: Adds items to cart without stock

    Quote Originally Posted by michael_rebreathe View Post
    Having spent two days looking for a similar thread to no avail, I'm starting one...

    Many of our products have attributes which may be out of stock. If we are out of stock, the customer can still add it to the shopping cart.

    We'd prefer not to let them add out of stock items. Should be simple. If the item has no attributes and zero stock, the "add to cart" button is disabled.

    NOTE that the download page for the plugin has no link to a forum thread for this plugin. The forum search function gives 100+ threads or zero while mixing terms appropriate to this plugin.

    Over the course of six months, I've worked with most plugins along this concept. I recall one (maybe this one, maybe another) that allowed display of the current stock inside the dropdown used to select the attribute...I'm not finding a setting that resembles this in Admin.
    While not necessarily the "committed" or absolute page, the following is where the majority of "recent" SBA discussions have been had... As to the quantity in stock issue, may I suggest downloading/installing the latest as referenced in the below thread:

    https://www.zen-cart.com/showthread....r-v1-3-5-1-3-9
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jul 2015
    Posts
    43
    Plugin Contributions
    0

    Default Re: Stock by Attributes 4.7: Adds items to cart without stock

    From as far as I can tell, I am running the current versions (ZC 1.5.4, SBA 1.5.4)...

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Stock by Attributes 4.7: Adds items to cart without stock

    Quote Originally Posted by michael_rebreathe View Post
    From as far as I can tell, I am running the current versions (ZC 1.5.4, SBA 1.5.4)...
    As downloaded from where and when?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jul 2015
    Posts
    43
    Plugin Contributions
    0

    Default Re: Stock by Attributes 4.7: Adds items to cart without stock

    From Github (https://github.com/potteryhouse/stoc...ttribute_1.5.4)
    Just pulled current Zip and installed. No change (I do notice some changes, such as product images in the SBA list).

    I selected a product with four attributes. We have inventory for one of them. I can add all four to the cart, and only the shopping cart itself gives any indication that the item is out of stock. I get "Successfully added to the cart" at the top of the page.

    SBA shows a total qty of 13 linked to the product, and quantities of 0, 0, 13, 0 for the attributes (which is correct per inventory).

    Because our inventory turns over so fast, it is a nightmare to try and manage backorders, should a customer decide to try it...We don't want to hide out of stock attributes, because we may get those variants back in stock.

    I have tried DD on and off, running through every combination that makes a lick of sense...
    Last edited by michael_rebreathe; 31 Dec 2015 at 12:36 AM.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Stock by Attributes 4.7: Adds items to cart without stock

    Quote Originally Posted by michael_rebreathe View Post
    From Github (https://github.com/potteryhouse/stoc...ttribute_1.5.4)
    Just pulled current Zip and installed. No change (I do notice some changes, such as product images in the SBA list).

    I selected a product with four attributes. We have inventory for one of them. I can add all four to the cart, and only the shopping cart itself gives any indication that the item is out of stock. I get "Successfully added to the cart" at the top of the page.

    SBA shows a total qty of 13 linked to the product, and quantities of 0, 0, 13, 0 for the attributes (which is correct per inventory).

    Because our inventory turns over so fast, it is a nightmare to try and manage backorders, should a customer decide to try it...We don't want to hide out of stock attributes, because we may get those variants back in stock.

    I have tried DD on and off, running through every combination that makes a lick of sense...
    Not sure if I updated that repository with the latest changes yet or not. As referenced in the above thread to which a link was provided, SBA is now being managed as a group of files for "all" versions instead of multiple repositories. That is now at https://www.github.com/mc12345678/St...butes_Combined

    So I assume that your store is setup to stay on the product after add-to-cart is selected. I'll take a look at the "ditch-out" code to see what needs to be added to give a negative response about adding to the cart, but I think/thought it was something with how some changes were made in ZC 1.5.4 regarding how items were added to the cart and that there was a thread (somewhere) on how to rectify that response for ZC 1.5.4 which if I am correct would not specifically be a SBA issue as much as a ZC 1.5.4 issue (though is no excuse to not address it in some fashion in the plugin)...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Stock by Attributes 4.7: Adds items to cart without stock

    Fwiw, I just tried to add an attrbuted product that had zero in quantity but was defined in the SBA table both with Dynamic Dropdowns active and inactive and was denied the ability to add the product to the cart using the latest version of SBA that was originally rewritten by potteryhouse and jeking...

    I admit that with Dynamic Dropdowns inactive that the system response wasn't as desired (took me to the shopping cart and told me the cart was empty instead of a notification that the product was out-of-stock, which I thought also was a notification issue that came up in ZC 1.5.4, but regardless should be made better through this plugin.) And noticed that if Dynamic Dropdowns was active and javascript was disabled on the device the system response was also sub-optimal, not allowing further selection(s) after the first attribute... Need to fix that as well...

    If you're still having issues, then need to know about the settings you have for the dynamic dropdowns menu, as well as the stock menu in the configuration of your admin. Then also to know how your variant(s) are setup for the product. Just for starters... And of course, also suggest carrying the conversation on at the thread referenced above to help the maximum number of people and to get those that read that thread to also help....
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jul 2015
    Posts
    43
    Plugin Contributions
    0

    Default Re: Stock by Attributes 4.7: Adds items to cart without stock

    Quote Originally Posted by mc12345678 View Post
    Fwiw, I just tried to add an attrbuted product that had zero in quantity but was defined in the SBA table both with Dynamic Dropdowns active and inactive and was denied the ability to add the product to the cart using the latest version of SBA that was originally rewritten by potteryhouse and jeking...

    I admit that with Dynamic Dropdowns inactive that the system response wasn't as desired (took me to the shopping cart and told me the cart was empty instead of a notification that the product was out-of-stock, which I thought also was a notification issue that came up in ZC 1.5.4, but regardless should be made better through this plugin.) And noticed that if Dynamic Dropdowns was active and javascript was disabled on the device the system response was also sub-optimal, not allowing further selection(s) after the first attribute... Need to fix that as well...

    If you're still having issues, then need to know about the settings you have for the dynamic dropdowns menu, as well as the stock menu in the configuration of your admin. Then also to know how your variant(s) are setup for the product. Just for starters... And of course, also suggest carrying the conversation on at the thread referenced above to help the maximum number of people and to get those that read that thread to also help....
    Jumped over to that thread, provided the Stock and SBA settings there

 

 

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. Stock By Attributes allows out of stock items through checkout!
    By kazbryan in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 8 Dec 2011, 05:41 PM
  3. Stock By Attributes allowing sale of out of stock items
    By kazbryan in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 15 Aug 2011, 01:21 PM
  4. Replies: 5
    Last Post: 3 Aug 2011, 08:15 AM
  5. attributes WITHOUT stock????
    By neptun5 in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 8 May 2009, 04:31 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