Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
Dzy
Hi,
I am using Stock by Attribute mod, which is great because its for a store selling clothing so it obviously needs different sizes. I don't want to show the total amount of stock but the amount of stock of each size and to not show the sizes that are out of stock. How do I do that? I can do PHP editting and some MySQL so if you could tell me how to fetch it/which tables (no phpMyAdmin here) that would be great!
Thanks
Provided size is the only attribute that you are using this can be done using the method that has been discussed several times already in this thread. I'm afraid I can't be more specific as I've never actually done it myself.
If you have multiple attributes then it gets a lot more complicated and you would need to use javascript to dynamically display (or not) the attribute combinations that visitors are choosing.
Which tables you need to access would depend upon the complexity of your store setup and which approach you wanted to take to display this reduced information. There is a schema for the product tables that would include all those that you are likely to need.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
thehighlandsgroup
I've installed Stock by Attribute Module Version 4.6 and am running ZenCart Version 1.3.7 . After running SQL file. The admin portion of store is running correctly but customers are not able to check out they get the following error upon checkout:
Fatal error: Cannot redeclare class order in /var/www/vhosts/kasmarpro.com/httpdocs/smokejumpers/includes/classes/order.php on line 20
This error is one of the less opaque that PHP gives and means exactly what it says, that your site is trying to declare the same class twice.
Most likely this is because when you uploaded the stock by attribute mod you, or your FTP program, made a backup of the order.php class in the location quoted and left it there. Zen Cart can't tell the difference between files that are intended as backups and ones that it is supposed to load, so tries to load the same class twice.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
whitecliffs
1. Is it possible to use the Stock by Attribute in conjunction with Easy Populate Advanced in some way so that it is possible to mass upload products to Zencart and have the sizing attribute information, including the stock level on hand for each size, uploaded along with the rest of a products information when using Easy Populate Advanced.
I can't answer definitively for Easy Populate Advanced as I don't have it, but I doubt it. Easy Populate and Stock By Attributes are both add-ons to Zen Cart and know squat about each other (though their authors have exchanged pleasantries).
Quote:
Originally Posted by
whitecliffs
I hope I am not missing something obvious, as it seems a little odd to mass upload say 100 or more products just to have to log into the admin back end, and one by one, set up the stock levels for each size for each shirt.
I am also hoping that if it is possible to do this, or if anyone out there is doing this, that someone/they can post a description of what would be required. If MySQL or PHP are required then I should have the necessary skills to make and test modifications. I am just not familiar with the Zen Cart database structure.
There is a technical impediment in that Easy Populate uses product_model as it's index for linking to external information (assuming rightly, that the Zen Cart products_id will often not be available). However, there is no equivalent for product variants, i.e. product + specific combination of product option. This will be introduced in the next major release of Zen Cart.
2. Assuming that 1. above is possible. Is it then possible to display the stock level on hand in the shop when on a products page and on the category home page? Or if this is not possible is it possible to stop someone checking out if there is zero stock on hand for a particular sized shirt?[/QUOTE]Displaying stock levels for products with attributes has been done to death in this and other forum threads. It is possible but requires increasing degrees of technical knowledge to achieve as the number and complexity of attributes increases.
It is also possible to stop somebody checking out if there is insufficient stock to support the order. This is built into core Zen Cart, extended by Stock by Attributes and controllable via the Admin > Configuration > Stock menu.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Hi kuroi,
Thank you very much for your information.
Kind regards,
whitecliffs
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I am using Araxis Merge (araxis com) to verify the changes I have done yesterday.
Except for destroying the Google Cart payment module, I saw no changes as to the hand inserted lines I added yesterday.
So, I just confirmed following the directions.
Admin panel still is not working. Snapshot is the same.
I even added the stock_attributes style to the stylesheet.css. No change.
How do I uninstall the sql patch to retry?
Maybe there is something else wrong with the install?
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Thanks for the great add on, easy install and only took about 20 minutes for a newbie like me to get it working.
Two questions, neither of which are very important.
1: If I'm running a single database, does the sync quantities button do anything? Doesn't seem to matter if I click it or not after changing product counts.
2: Is it possible to display remaining quantity of a size to a customer, either when size is selected or at checkout?
I have it functioning for this item:
http://magneticbreeze.com/ZenCart/in...products_id=37
and in the unlikely event that someone should order 13 of the size 8 rings, it gives the backorder message without the customer knowing that only 12 are in stock.
These are very minor concerns, so no big deal if this 2 year old 'emergency fix' doesn't have the feature.
Thanks Kuroi for making life a bit easier.
eb
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I just tried upgrading...
What I am getting now is I can get into things on the back end.
But on the front end.
My main and product pages are not commng up. Just my left bar and the header...
What do I do to fix this??? I dont know where to begin.
www.nothingbutcostumes.com
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I made sure I renamed the folders. (both of em)
Hope I can get this solved. I really could use this mod.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
kuroi
This error is one of the less opaque that PHP gives and means exactly what it says, that your site is trying to declare the same class twice.
Most likely this is because when you uploaded the stock by attribute mod you, or your FTP program, made a backup of the order.php class in the location quoted and left it there. Zen Cart can't tell the difference between files that are intended as backups and ones that it is supposed to load, so tries to load the same class twice.
Kuroi - You were exactly right. I had renamed some old files such as order.php to order-old.php and such. ZenCart for some reason doesn't like that. I uploaded all new files and overwrote older files as you suggested. Stock by attribute module is now working like a charm. Thanks much for pointing me in the right direction.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Im not sure what's going on (I think Im just missing something), but the mod is working so far. On my test site in the admin, I setup the attributes and the stock for attributes on product "fred". Then I setup attributes for my next product, "p2" and went to setup the stock for attributes for "p2" but I cannot change products. I can only alter the stock for "fred".
What am I missing here?
thx