Page 36 of 360 FirstFirst ... 2634353637384686136 ... LastLast
Results 351 to 360 of 3600
  1. #351
    Join Date
    Sep 2006
    Posts
    78
    Plugin Contributions
    1

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

    I have installed this contribution and it works very well,
    i have 2 questions.

    i have a slight problem, on my test site i have a product which has around 10 attributes, some are in stock and some are out of stock,
    when i go to the product on the cart as a customer, if i select one which is in stock on the drop down and click add to cart all is fine,

    if i select one which is not in stock and then hit add to cart it goes to the cart and says out of stock which i guess i also fine,

    however is it possible to update the page when each attribute is selected by the customer to display the add to cart or to display out of stock,

    another way would be to have (In Stock) or (Out Of Stock) after the attribute name in the drop down.

    are the above possible?

    2nd question.

    Is it possible to update more than one stock level at once, currently you have to select each product to update the stock level, is it possible to list the products to update all at once?

    Thanks in advance
    Rob

  2. #352
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

    Quote Originally Posted by flobster View Post
    I have installed this contribution and it works very well,
    i have 2 questions.
    Both of your questions have been asked and answered repeatedly in the thread above. The answers can be boiled to "it depends" and "no". There's much more detail and explanation in the earlier posts.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #353
    Join Date
    Sep 2006
    Posts
    78
    Plugin Contributions
    1

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

    Ok i will have a good look through, sorry about that.

  4. #354
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

    Quote Originally Posted by flobster View Post
    Ok i will have a good look through, sorry about that.
    No problem. Tips - use the search this thread facility for localised searches. For the first question, search on "Grayson" or look in the Wiki, where I think there may be a link to the specific post from which to start. Also, for historic reasons, this mod has two support threads, so some of what you want may be covered in the other one too.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #355
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

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

    Thanks Kuroi, I think I get the basic ideas now:

    1. first we need to get the attribute id by using the products_id, option name and value (we dont want to use option id here for a specific reason) from the orders_products_attributes table

    2. then we need to check if the TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK exists (in case users are not using this mod), if it is we check if the stock info for that attribute is there. If not, we then assuming it is using the product stock instead.

    3. the problem is with product associated with multiple attributes tho. Since my test site is not using any product with more than 1 attribute, I dont know how it is stored in TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK and orders_products_attributes tables.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  6. #356
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

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

    Kuroi,

    There is a problem with searching for the "string" as you suggested here:
    "So, your first step would be to work backwards from the products_options_values to get the relevant products_options_values_ids in the products_options_values table, then concatenate them as a common-separated string and search for that string in the stock_attributes field of the products_with_attributes_stock table."

    How would we get the exact order of the ids in the string? 19,29,30 and 29,19,30 contains the same ids but the string are different.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  7. #357
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

    Quote Originally Posted by yellow1912 View Post
    How would we get the exact order of the ids in the string?
    I don't recall having ever seen them in any order other than sorted by numerical value from low to high.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #358
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    347
    Plugin Contributions
    0

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

    Quote Originally Posted by vivaraquel View Post
    Thanks Kuroi, that did it. I had left the original order.php file ther just renamed it order1.php. Sounds absurd but hey, such are these things sometimes.
    Ok, I had this fixed. But as I was checking on other stuff I went to my cart and hit the checkout button and got this error message again;

    Fatal error: Cannot redeclare class order in /home/cheechab/public_html/includes/classes/order.php on line 20

    However, I don't have any backed up order.php files in that folder now, just the one. I uploaded it fresh but it still does it.

    Also, does the fix on post 46 work on ZC v.1.3.7.1 with this mod v.4.7? I need to figure out why when I try to add an attribute with 0 stock to the cart, no message comes up to say it's out of stock and if i go to checkout, the shopping cart page simply reloads.

    The site I'm working on is http://www.cheechababy.com.au
    Thank you.

  9. #359
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

    Quote Originally Posted by vivaraquel View Post
    I don't have any backed up order.php files in that folder now, just the one. I uploaded it fresh but it still does it.
    If a class is instantiated twice that either means that there are two instances of it, or the code that instantiates it is being called twice. So where else might you have left backup files ......
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  10. #360
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    347
    Plugin Contributions
    0

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

    hehe Thanks Kuroi, I had a couple more blasted things. Now the out of stock is working as well.

    Have a good night,
    Raquel.

 

 

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