Totally Zenned
- Join Date:
- Jun 2006
- Posts:
- 565
- Plugin Contributions:
- 0
Stocks by attributes
yeah i'm giving up on this i how version 1.4 will have all this covered for us
Views: 251,333
Totally Zenned
yeah i'm giving up on this i how version 1.4 will have all this covered for us
New Zenner
Does anyone know when version 1.4 will come out? I can't release my online store until the stocks is displayed by attribute, so I'm really anxious to make this work.
Zen Follower
I think I heard 2008. I doubt you will get a more specific answer than that until the day it is released. Unless of course they revise 2008 to 2009:cry:
Totally Zenned
I too doubt that you will get an answer more specific than 2008.
Also a word of caution. Although the integration of stock by attributes into core code in 1.4 will be a major step forward, it won't suddenly deliver the many additional approaches to setting and displaying stock that are frequently asked for in this thread.
What it will do is make the development of these additional requirements as add-ons much more worthwhile.
Zen Follower
Hi there
I would like some practical examples of how to set up option names values and attributes, is there any threads that explain this in examples way?
Thanks for your help
Franco
Totally Zenned
francocauter:
Hi there
I would like some practical examples of how to set up option names values and attributes, is there any threads that explain this in examples way?
Thanks for your help
FrancoThis is the definitive FAQ entry. I don't know of anything more illustrative than this.
New Zenner
Am I being stoopid?
Hi
I read the Wiki for this and was looking to add the values to each option - from the archive it suggests a post by grayson to amend
includes/modules/pages/product_info/main_template_vars_attributes.php
well... I can't find that file? has it been superceded... ? or is my install missing it?
Christine
New Zenner
Ok - I was being stoopid - the file has been superceded by attributes.php.
Have to say though it has taken me hours to find this out... guess I should have realised when the Wiki pointed to such an old thread.
Christine
New Zenner
When I run the SQL file to install this mod, I get this error:
1062 Duplicate entry 'STOCK_SHOW_LOW_IN_CART' for key 2
in:
[INSERT INTO zen_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Show available stock level in cart when less than order', 'STOCK_SHOW_LOW_IN_CART', 'false', 'When customer places more items in cart than are available, show the available amount on the shopping cart page:', '9', '6', NULL, now(), NULL, "zen_cfg_select_option(array('true', 'false')," );]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
...not exactly sure what's causing this, or what I can do to fix it. Any help would be appreciated!
Totally Zenned
@aesthetics
There's nothing to fix. It means that the configuration table entry is already there, so there's no need to run the SQL.
New Zenner
Maybe I'm missing something horribly obvious then...
The Readme file says to use the mod to click on Catalog/Products --> Products With Attributes.
...I don't have a "products with attributes" selection in that dropdown. Just my normal "categories/products" section.
Am I missing something?
Totally Zenned
aesthetics:
The Readme file says to use the mod to click on Catalog/Products --> Products With Attributes.Are you sure that it's "Stock by Attributes" that you're using and not one of the earlier versions upon which this was built, as none of the readme files since it's inception have said that. They all say that it's in the Catalog -> Products With Attributes menu.
If you are using this mod specifically, but it doesn'ty show in the Admin > Catalog menu, that means that the files have been put in the wrong place. I'd recommend starting by checking the extra box file as that's the one that causes it to be shown up in the Admin menu system.
New Zenner
Sorry, it is Catalog --> Products With Attributes. It's most definitely Stock By Attributes.
When I uploaded the files, I uploaded the includes and admin files straight to the root directory (unless I mis-read, that's what the readme says to do to install the mod), so I'm not sure how they would have gotten in the wrong place.
Where is the extra box file so I can check it?
Sorry if these questions are way basic/vague. I'm new to this program. I really appreciate the help though!
New Zenner
Okay, sorry, I'm an idiot, hahaha.
When I copied the files into my root directory, I copied them into the root directory for the website, rather than the store. Oops!
Thanks for the help! I think I'm set!
Totally Zenned
aesthetics:
Okay, sorry, I'm an idiot, hahaha.
When I copied the files into my root directory, I copied them into the root directory for the website, rather than the store. Oops!
Thanks for the help! I think I'm set!Easy mistake and one that <cough, cough, embarassed look> I've made myself before now. :blush:
New Zenner
I have read through everything I could find on negative stock problems in the forum, but I am still having trouble.
I am using Stock By Attributes 4.6 on ZenCart 1.3.7.1
I have config>stock>allow checkout set to false, and I set each stock quantity through catalog>products with attributes.
For example, I will have a T-shirt with the following attributes & stock:
T-Shirt Design #1
Small - 5
Medium - 2
Large - 1
X-Large - 8
Someone will be able to checkout with 2 Large t-shirts in their cart and stock goes to -1.
I don't know why this is happening. When I go to test it (on the same product that was just checked out) I am unable to checkout myself. So, it seems very inconsistent.
I have even had times when a certain size was set to zero (0), and they could still check out!
Any clue to why this might be happening? Possibly I have something configured incorrectly.
Any help is appreciated as this is driving me (and my customers) crazy.
Totally Zenned
New Zenner
New Zenner
I just went through my entire site and I don't have any duplicate copies of any files. So, I guess that is not causing the problem. I also have line 8 on orders.php showing up fine. Any other ideas?:(
New Zenner
Sorry for all the posts... I thought I would re-install the the stock by attributes mod again just to see if that would clear things up, but when I tried to install the stock_attribute.sql it gave me this error:
Would this have anything to do with my problem? I'm not sure why this is coming up.
Fields marked required must be completed.
Tell staff why this post should be reviewed.