Results 1 to 10 of 1125

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    this is kinda weird as for my first issue in the attributes drop down it states select size, but you can just byepass this and just click the add to cart button. which will add the product without attributes to the cart.

    then in the shopping cart it will state that something is out of stock at the top but in the product list in the cart i have nothing indicating which product is out of stock.
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  2. #2
    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 MB1 View Post
    this is kinda weird as for my first issue in the attributes drop down it states select size, but you can just byepass this and just click the add to cart button. which will add the product without attributes to the cart.
    This is not an SBA "issue" rather it's a Zen Cart attribute setup that makes this possible (required attributes). This FAQ article might help:
    https://www.zen-cart.com/tutorials/i...hp?article=190

    Do a forum search for required attributes. There are a few good threads that you might find useful.



    Quote Originally Posted by MB1 View Post
    then in the shopping cart it will state that something is out of stock at the top but in the product list in the cart i have nothing indicating which product is out of stock.
    When out of stock products are added to the cart, the cart looks like this:


    Note that you can clearly see which items are the ones out of stock
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #3
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by DivaVocals View Post
    This is not an SBA "issue" rather it's a Zen Cart attribute setup that makes this possible (required attributes). This FAQ article might help:
    https://www.zen-cart.com/tutorials/i...hp?article=190

    Do a forum search for required attributes. There are a few good threads that you might find useful.

    yeah i read that article can't make heads or tails of it now i'll do a search for required attributes and see what i can find thank you
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  4. #4
    Join Date
    Jul 2004
    Location
    UK
    Posts
    182
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    @creinold Just found a minor text display glitch. One of my products does not have an image. When displaying the product list the image field displayed TEXT_IMAGE_NONEXISTENT instead of an image.
    A search using the developers tool kit shows this term appearing in multiple define files.
    I figured this means with no common use defined I had to add it specifically to SBA (?)
    It worked :)

    In file:

    admin/includes/languages/english/extra_definitions/products_with_attributes.php

    add
    Code:
    define('TEXT_IMAGE_NONEXISTENT', 'No Image Exists');
    before php close tag.

    Also for consideration for improvement in the how to file:
    In the installation section it should read
    'There are five core Zen Cart files modified'
    because
    •admin/includes/stylesheet.css is no longer affected.

    hth

    Kevin

  5. #5
    Join Date
    Sep 2008
    Location
    North Highlands, California 95660
    Posts
    286
    Plugin Contributions
    1

    Default Re: Stocks by attributes

    Quote Originally Posted by profitshock View Post
    @creinold Just found a minor text display glitch. One of my products does not have an image. When displaying the product list the image field displayed TEXT_IMAGE_NONEXISTENT instead of an image.
    A search using the developers tool kit shows this term appearing in multiple define files.
    I figured this means with no common use defined I had to add it specifically to SBA (?)
    It worked :)

    In file:

    admin/includes/languages/english/extra_definitions/products_with_attributes.php

    add
    Code:
    define('TEXT_IMAGE_NONEXISTENT', 'No Image Exists');
    before php close tag.

    Also for consideration for improvement in the how to file:
    In the installation section it should read
    'There are five core Zen Cart files modified'
    because
    •admin/includes/stylesheet.css is no longer affected.

    hth

    Kevin
    Thanks for the update Kevin, will add that to the next update I am working on.
    http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
    creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creino...art_V1.5.0.zip

  6. #6
    Join Date
    Dec 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    I am having an issue with SBA, I would just like anyone to confirm they have or haven't the same behavior with the database.

    When adding SBA to a product, in the database in the 'stock_attributes' field SBA adds by the attributes by csv. If you add manually each attributes I am getting a pattern in the database for example:

    13228,14900
    4635,13228
    4636,13228
    4637,13228
    4638,13228

    As you will see the first value are reversed and then the rest are the same format and SBA works fine.

    But if I add using the 'All' option the database is populated like this:

    13228,14900
    13228,4635
    13228,4636
    13228,4637
    13228,4638

    And SBA does not work properly. If I then update stock levels SBA adds a duplicate Stock ID in the reverse order.

    I have creinold's installed I have also tried last night Numinix's version and get the same results.

  7. #7
    Join Date
    Dec 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Further to my last post I have found the problem,

    SBA adds the 'products_attributes_id' to the 'stock_attributes' field in products_attributes_id 'number order' (etc 1,2,3,4,5 ). So using 'ALL' seems to add in Attribute 'Sort' order not the ID order. So SBA will not see this 'stock_attributes' exist.

    In my example:

    13228,14900 -- 13228 is the colour and 14900 is the size
    4635,13228 -- 4635 is the size and 13228 is the colour
    4636,13228 -- 4636 is the size and 13228 is the colour
    4637,13228 etc
    4638,13228

    Any help would be appreciated, I am looking for the code for add 'ALL' to edit to sort in attribute order.
    Thanks
    Last edited by Scrat; 11 Aug 2010 at 10:35 PM.

  8. #8
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    god i love beyond compare i just took a peek at the code in creinoid's updated files and my files and i was missing the attributes code on the \includes\modules\pages\shopping_cart\header_php.php

    $flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity'],$attributes);
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

 

 

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