Page 82 of 113 FirstFirst ... 3272808182838492 ... LastLast
Results 811 to 820 of 1125
  1. #811
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by philip937 View Post
    Posted via Mobile Device
    I have just tested again to make sure I wasn't being stupid..

    My attributes most definitely DO disappear when the stock of the particular attribute hits zero.

    So for example I have:

    S = 4
    M= 0
    L = 10

    When I look at the product info page and select the drop down, I currently get:
    Please Select
    Small
    Large

    It has hidden the Medium..

    Now just to test there was no glitch, I then wen and changed the value of Small to = 0. the drop down now shows:
    Please Select
    Large

    So it works perfectly how I want it to, but I merely want to change the threshold of these attributes dissapearing from zero to 30..

    I hope someone can help

    Phil

  2. #812
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by philip937 View Post
    I have just tested again to make sure I wasn't being stupid..

    My attributes most definitely DO disappear when the stock of the particular attribute hits zero.

    So for example I have:

    S = 4
    M= 0
    L = 10

    When I look at the product info page and select the drop down, I currently get:
    Please Select
    Small
    Large

    It has hidden the Medium..

    Now just to test there was no glitch, I then wen and changed the value of Small to = 0. the drop down now shows:
    Please Select
    Large

    So it works perfectly how I want it to, but I merely want to change the threshold of these attributes dissapearing from zero to 30..

    I hope someone can help

    Phil
    My bad, found the solution.

    I had already been over this before.. Just forgot!

    To make your attributes turn off when stock for attribute hits zero, you have to do this:
    http://www.zen-cart.com/forum/showth...=34977&page=65
    I had already done this!! Durrr im so stupid..

    so quite clearly where the replaced code says to put:
    (pwas.quantity > 0 or pwas.quantity IS NULL)

    Ive changed mine to say
    (pwas.quantity > 30 or pwas.quantity IS NULL)

    sorted.

  3. #813
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Stocks by attributes

    Quote Originally Posted by philip937 View Post
    Diva,

    I'm confused. You say the answer is NO to hiding attributes? Mine does hide the attributes when stock is 0. What I was asking is how to change this from 0 to 30.
    For the attributes to hide at stock 0 they must be being told to do this somewhere?
    Out the box this behavior isn't there.. Looks like you must've modified it to do this..

    ETA: okay.. looks like that's what you confirmed you did.. I knew I wasn't crazy either!

    And so this is clear for anyone reading this, you never said which version of SBA you are using.. It makes a HUGE difference if you are pointing people to solutions.. The link you posted looks like this refers to the MultiAdd version.. I haven't looked at the code in the Kuroi version, but if here are differences, a solution meant to work with one version may not apply to other versions of this mod..

    Another thing I wanted to point out that this solution only appears to work for SINGLE attribute variants. It doesn't appear to be a solution for variants with multiple attributes (Small shirt versus Small, Blue shirt)

    Quote Originally Posted by philip937 View Post
    My bad, found the solution.

    I had already been over this before.. Just forgot!

    To make your attributes turn off when stock for attribute hits zero, you have to do this:
    http://www.zen-cart.com/forum/showth...=34977&page=65
    I had already done this!! Durrr im so stupid..

    so quite clearly where the replaced code says to put:
    (pwas.quantity > 0 or pwas.quantity IS NULL)

    Ive changed mine to say
    (pwas.quantity > 30 or pwas.quantity IS NULL)

    sorted.
    Last edited by DivaVocals; 10 Oct 2009 at 04:51 PM.

  4. #814
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by DivaVocals View Post
    Out the box this behavior isn't there.. Looks like you must've modified it to do this..

    ETA: okay.. looks like that's what you confirmed you did.. I knew I wasn't crazy either!

    And so this is clear for anyone reading this, you never said which version of SBA you are using.. It makes a HUGE difference if you are pointing people to solutions.. The link you posted looks like this refers to the MultiAdd version.. I haven't looked at the code in the Kuroi version, but if here are differences, a solution meant to work with one version may not apply to other versions of this mod..

    Another thing I wanted to point out that this solution only appears to work for SINGLE attribute variants. It doesn't appear to be a solution for variants with multiple attributes (Small shirt versus Small, Blue shirt)
    Hey,

    Sorry, yes for clarification, I have only tested this on my scenario, i.e 1 set of attributes.

    I am using Kuroi's 4.7 version.

    So where as it works perfectly for what I need, be warned it may not work for everyones requirements.


  5. #815
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Stocks by attributes

    Quote Originally Posted by philip937 View Post
    Hey,

    Sorry, yes for clarification, I have only tested this on my scenario, i.e 1 set of attributes.

    I am using Kuroi's 4.7 version.
    The original is still the best!!!

    The admin stylesheet from the MultiAdd version is the only improvement I would suggest.. The MultiAdd admin stylesheet really visually helps distinguish the parent product from the variants..

  6. #816
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by DivaVocals View Post
    The original is still the best!!!

    The admin stylesheet from the MultiAdd version is the only improvement I would suggest.. The MultiAdd admin stylesheet really visually helps distinguish the parent product from the variants..
    oh really, cool I shall give that one a try and see what it looks like

  7. #817
    Join Date
    Dec 2008
    Posts
    70
    Plugin Contributions
    0

    red flag Re: Stocks by attributes

    Help!!!!!!

    Latest update
    version 4.7 stocks by attrribute....

    if I add anything to the shopping cart I get:

    1146 Table 'XXdatabasenamexx.TABLE_EF_PRODUCTS_WITH_ATTRIBUTES_STOCK' doesn't exist


    but the table does exist...

    Now what?!?!?!?!?!?!

  8. #818
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Stocks by attributes

    Sounds like you didn't run the SQL file which creates the SBA tables..
    Quote Originally Posted by exeter_acres View Post
    Help!!!!!!

    Latest update
    version 4.7 stocks by attrribute....

    if I add anything to the shopping cart I get:

    1146 Table 'XXdatabasenamexx.TABLE_EF_PRODUCTS_WITH_ATTRIBUTES_STOCK' doesn't exist


    but the table does exist...

    Now what?!?!?!?!?!?!

  9. #819
    Join Date
    Dec 2008
    Posts
    70
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Yep...sure did...

    first thing

  10. #820
    Join Date
    Dec 2008
    Posts
    70
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Restored a backup,
    re-did the whole upgrade....

    store working,
    but a bit hesitant to run this mod again...

 

 
Page 82 of 113 FirstFirst ... 3272808182838492 ... 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

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