Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
01011010
Aside from hiring 3,000 third-world laborers to enter all these combinations, what are my options? I don't actually need (or even want) to track stock, I simply need to keep my customers from purchasing a few unavailable combinations.
Set the stock decrement flag in the Admin to false and then EITHER:
Write yourself a small SQL script to insert a line into the attributes stock table with more stock than is ever likely to be required for a single order, wrap your SQL script in a PHP script that loops to create a record for every conceivable option, delete those combinations that don't actually exist OR
Create a spreadsheet with all possible options, export it to a CSV file, use a database admin tool (e.g. phpMyAdmin) to import it to the attributes stock table.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Hi.
I am running zen cart 1.3.7, so I have installed version 4.6 of this contribution. Installation went smoothly, the admin side seems to be ok but when I make a test purchase and go to checkout, I get the following error.
Fatal error: Cannot redeclare class order in /var/www/html/shop/includes/classes/order.php on line 1037
Can someone please tell me what I have messed up?
Philip
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
philip24
I am running zen cart 1.3.7, so I have installed version 4.6 of this contribution. Installation went smoothly, the admin side seems to be ok but when I make a test purchase and go to checkout, I get the following error.
Fatal error: Cannot redeclare class order in /var/www/html/shop/includes/classes/order.php on line 1037
Are you keeping a backup files in your includes/classes folder, or elsewhere on your live site?
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
kuroi
Are you keeping a backup files in your includes/classes folder, or elsewhere on your live site?
Yes, thank goodness, I have. I learnt one thing at least!!
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
philip24
Yes, thank goodness, I have. I learnt one thing at least!!
Errrr. My point is that you shouldn't. See post #324 which explains the dangers and why this could be the reason that you are having this problem.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
kuroi
Errrr. My point is that you shouldn't. See post #324 which explains the dangers and why this could be the reason that you are having this problem.
Thanks very much Kuroi - that did the trick. Another valuable lesson learnt!!!
Philip
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Hi, thank you for the products with attributes stock mod:-) i was just wondering if you know where i am going wrong with something. apparently (randomly and not very often) an attribute will be set to 0 but the user can still buy it with that attribute - i have set my cart to not allow checkout on out of stock items and it works for the vast majority o the time but sometimes it doesnt.
also when an attribute goes out of stock most of the time it shows up as ":" as opposed to the attribute name and sometimes it still has a stock level (although it doesnt show up to the user)
just had a brand new problem - i had 1 item with an attribute stock of 1 but the user ordered it x2 and now the stock says -1..any clues?
hope that made sense!
thanks for any help you can give:-)
just let me know if you need any details.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
cosmicegg
(randomly and not very often) an attribute will be set to 0 but the user can still buy it with that attribute - i have set my cart to not allow checkout on out of stock items and it works for the vast majority o the time but sometimes it doesnt.
just had a brand new problem - i had 1 item with an attribute stock of 1 but the user ordered it x2 and now the stock says -1..any clues?
These are common issues. But in every case that I have investigated (quite a few now) it has turned out to be either an installation problem (see post #308) or a problem with keeping backup files in inappropriate places i.e. on a live site (see post #319).
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
kuroi
These are common issues. But in every case that I have investigated (quite a few now) it has turned out to be either an installation problem (see post #308) or a problem with keeping backup files in inappropriate places i.e. on a live site (see post #319).
looks good, thank you :smile:
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
Taipa
I get this same error too.
Is there a working fix for Zen 1.3.8 and Stock by Attributes v4.7 to make it mark the attributes that are sold out? Or remove from the drop down on the product page or something? It's very annoying for customers to add a product to their cart, and not find out it's sold out until later when they go to check out.
Ok, you're gonna hate me for this but ...
I had this mod installed in my site before i redid it all and haven't bothered with it again as it gave me an error message when deleting items for which I had to hit my back button and hit delete again for it to delete.
But I remember adding another mod which made it so that if an attribute was not in stock it wouldn't show up in the drop down menu. And if someone added more than the available stock of an attribute, on the shopping cart window it would come up in red (or whatever color you want it to be) that the amount in the cart is not available and it would actually say how many were available.
The bad news is I don't remember what the mod was. You'll have to read through the downloads section, that's how I found it.
Good luck.