Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I kept messing around and found the solution to my problem this morning, If anyone is having a similar problem to the one I posted about on page 48 of this thread try using FileZilla to add stock by attribute files to your zencart folder.
I'm still testing my site on localhost and downloaded the server and client for FileZilla...started the server for it..loaded the client..logged in..navigated to my Zencart folder..and just drug the Stock by attribute folders into the directory and it worked like a charm.
:bigups:
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Interesting problem, looking for answer. I love this addon, and thank the developer(s) for their hardwork.
I have been using this for a while, and worked perfectly. However, on one of my new products, I was going in to change the quantities of stock when it duplicated the variant. Now I have two variants for Green/Small. It seems to be only happening with this color, so I tried to delete the color and re-add the value (Luckily its localized to this one product :laugh:), but it still duplicates the variant when I try to go and edit the quantity.
Any thoughts?:wacko:
1 Attachment(s)
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I have been having trouble getting the additional mod by grayson so the stock level for each attribute shows up.
using the code from post 132 and post 110 mentioned in the wiki I have modified my includes/modules/attributes.php file and also added the
define('TEXT_ATTRIBUTES_PIECES','pieces');
to my product_info.php file in my template. The stock levels do not show up in my store, but my store still seems to work fine (thought I would get a php error or a html rendering error if I inserted the code incorrectly)
I used to have the dynamic stock dropdown mod that marked attributes oos, but to the best of my knowledge I have removed it.
I am running a test site served off of my computer as localhost so I can't point you towards the site, but I have attached the attributes.php file that I modified, please let me know if I made a mistake somewhere.
running zencart 1.38a
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I posted this in another post but I think this might be more appropriate for it.
If the quantity for the base item purchased is greater than what is in stock, the message that says these products are out of stock does come up. If a certain style of that base product is out of stock but the amount ordered is less that the total number of the base product in stock an out of stock message for those particular items does not show up.
For example, I tried ordering 6 of the same style/product shirts off my site, 3 in white and extra large, and 3 in black and small. Since I only have 1 of the small black in stock page 1 of the checkout process just cycles when you click checkout. No message will be shown to indicate which item is out of stock. If I try ordering 1 small black and 5 large white of shirt model AA and on the base product page I only enter 5 in stock the message that indicates products are out of stock will show up on both the large and small shirts.
Does anybody know how to fix this?
Also, I noticed if I provide a quantity box for a product (no attributes) and I only have one in stock (or the stock has been reduced to 1) and a buyer enters more than 1, the cart will notify them they need to change the amount ordered but the amount in inventory shown to them displays 0. It apparently removes the specific item the buyer put into their cart from stock. Is there a way to change this to 1. That way they will realize they can only buy one and not think the item is simply not in stock? Should I post this in another forum, prob.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I have added this mod into my zencart but when i go to catalog/products with attributes stock, i sellect all and put 100 (as i have 100 of all sizes) select submit i get the following error message on page at the top
"att: 138|139|140|141" then below it i get
"Warning: Cannot modify header information - headers already sent by (output started at /home2/fomausl/public_html/admin/products_with_attributes_stock.php:193) in /home2/fomausl/public_html/admin/includes/functions/general.php on line 21" when i hit back button and then re select products with attributes stock it shows me all quantity varients.
any help would be appreciated
thanks
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
jill8026
THANK YOU! This is the best thread that could have happened to me, and thanks for the link tot he thread that helps me define stock in the attributes for the customers to see what we actually have!
MY only question is formatting, how can I get the text for the attribute to sit as follows:
Name
Price
In-stock
As you only have one attribute there is a method for adding stock indicators (or quantities). The second question in this mod's wiki FAQ (about 2/3 of the way down) will help you with this.
Re-arranging the attributes layout is beyond the scope of this mod. But in essence you would need to over-ride the includes/modules/attributes.php file. This is one of the biggest and most complex files in Zen Cart, so the change would take quite a lot of work to identify (though will probably require only a handful of small changes when you get there).
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
Dan Lacey
Problem with MySQL -
Hi there, thanks for the great contribution, however Im having a problem in that on my customers site I have colours and sizes with stock for each of these attributes - if I leave the attrbutes set to 'all' and add a quantity, I get the following MySQL error message:
this only happens if i leave the attributes set to 'all' - if i chooses a specific colour and size and add the quantity and submit, it updates the stock levels with no problems....
Thanks in advance....
Dan.
Please remember to tell us which version of the mod you are using. from your problem I believe that you must be using the multi-add version. The error that you are getting is because that version of the mod uses a MySQL specific piece of syntax with which some versions of MySQL have problems. To get around this you would probably need to re-write the query to use normal SQL, or roll back to the supported 4.7 version (Dec 07) which uses only standard SQL.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
Bunkerage
I kept messing around and found the solution to my problem this morning, If anyone is having a similar problem to the one I posted about on page 48 of this thread try using FileZilla to add stock by attribute files to your zencart folder.
I'm still testing my site on localhost and downloaded the server and client for FileZilla...started the server for it..loaded the client..logged in..navigated to my Zencart folder..and just drug the Stock by attribute folders into the directory and it worked like a charm.
:bigups:
FileZilla is just one of many possible solutions to your problem and a sledgehammer to crack a nut for most people having this problem (though I use and like it greatly myself).
The underlying problem, which has been suffered by many people using this mod, is that some FTP clients seem not to over-write existing files and a server and don't tell you that they haven't done so, with the result that not all the stock by attributes files land safely. Anybody who has had this problem may have problems upgrading Zen Cart too.
So rather than changing FTP clients, for many people changing the default settings for the one that they're already using is enough.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
killertofu
Interesting problem, looking for answer. I love this addon, and thank the developer(s) for their hardwork.
I have been using this for a while, and worked perfectly. However, on one of my new products, I was going in to change the quantities of stock when it duplicated the variant. Now I have two variants for Green/Small. It seems to be only happening with this color, so I tried to delete the color and re-add the value (Luckily its localized to this one product :laugh:), but it still duplicates the variant when I try to go and edit the quantity.
Any thoughts?:wacko:
Which verision of the mod and which version of Zen Cart are you using?
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
jjgtrading
If the quantity for the base item purchased is greater than what is in stock, the message that says these products are out of stock does come up. If a certain style of that base product is out of stock but the amount ordered is less that the total number of the base product in stock an out of stock message for those particular items does not show up.
For example, I tried ordering 6 of the same style/product shirts off my site, 3 in white and extra large, and 3 in black and small. Since I only have 1 of the small black in stock page 1 of the checkout process just cycles when you click checkout. No message will be shown to indicate which item is out of stock. If I try ordering 1 small black and 5 large white of shirt model AA and on the base product page I only enter 5 in stock the message that indicates products are out of stock will show up on both the large and small shirts.
This sounds like a symptom of the mod not being installed properly and trying to execute a mixture of old and new code. I would recommend re-installing the files (the database patch doesn't need to be re-loaded) and checking that each files arrive safely, particularly those over-writing existing files.
Quote:
Originally Posted by
jjgtrading
Also, I noticed if I provide a quantity box for a product (no attributes) and I only have one in stock (or the stock has been reduced to 1) and a buyer enters more than 1, the cart will notify them they need to change the amount ordered but the amount in inventory shown to them displays 0. It apparently removes the specific item the buyer put into their cart from stock. Is there a way to change this to 1. That way they will realize they can only buy one and not think the item is simply not in stock? Should I post this in another forum, prob.
This is not standard behaviour and if your cart was working properly it would do exactly what you want. I suspect that this is another symptom of having incomptible bits of code in your store.